comparison mcabber/mcabber/main.c @ 1744:38103f4213c0

Clean up useless variable
author Mikael Berthe <mikael@lilotux.net>
date Tue, 09 Mar 2010 22:41:34 +0100
parents 5093b5ca1572
children 6e856c5858c3
comparison
equal deleted inserted replaced
1743:dcbf31f99fa3 1744:38103f4213c0
59 # define WAIT_ANY -1 59 # define WAIT_ANY -1
60 #endif 60 #endif
61 61
62 static unsigned int terminate_ui; 62 static unsigned int terminate_ui;
63 GMainContext *main_context; 63 GMainContext *main_context;
64
65 static gboolean update_screen = TRUE;
66 64
67 static struct termios *backup_termios; 65 static struct termios *backup_termios;
68 66
69 char *mcabber_version(void) 67 char *mcabber_version(void)
70 { 68 {
293 scr_DoUpdate(); 291 scr_DoUpdate();
294 scr_Getch(&kcode); 292 scr_Getch(&kcode);
295 293
296 while (kcode.value != ERR) { 294 while (kcode.value != ERR) {
297 process_key(kcode); 295 process_key(kcode);
298 update_screen = TRUE;
299 scr_Getch(&kcode); 296 scr_Getch(&kcode);
300 } 297 }
301 scr_CheckAutoAway(FALSE); 298 scr_CheckAutoAway(FALSE);
302 299
303 return TRUE; 300 return TRUE;
465 while(!terminate_ui) { 462 while(!terminate_ui) {
466 if (g_main_context_iteration(main_context, TRUE) == FALSE) 463 if (g_main_context_iteration(main_context, TRUE) == FALSE)
467 keyboard_activity(); 464 keyboard_activity();
468 if (update_roster) 465 if (update_roster)
469 scr_DrawRoster(); 466 scr_DrawRoster();
470 if(update_screen) 467 scr_DoUpdate();
471 scr_DoUpdate();
472 } 468 }
473 469
474 g_source_destroy(mc_source); 470 g_source_destroy(mc_source);
475 g_source_unref(mc_source); 471 g_source_unref(mc_source);
476 } 472 }