Commit d68da4e561ce3006ae87f8445b9979cef4fcd8bc

Authored by Perry Werneck
1 parent e0363d1e
Exists in master and in 1 other branch develop

Melhorando apresentação do timer.

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
oia.c
... ... @@ -136,7 +136,7 @@ static void setup_cursor_position(GdkRectangle *rect, v3270FontInfo *metrics, ca
136 136 }
137 137 }
138 138  
139   -static void setup_timer_position(GdkRectangle *rect, v3270FontInfo *metrics, cairo_t *cr, H3270 *host, int cols, GdkRGBA *color)
  139 +static void setup_ticking_position(GdkRectangle *rect, v3270FontInfo *metrics, cairo_t *cr, H3270 *host, int cols, GdkRGBA *color)
140 140 {
141 141 char buffer[7];
142 142 cairo_text_extents_t extents;
... ... @@ -546,7 +546,7 @@ void v3270_draw_oia(cairo_t *cr, H3270 *host, int row, int cols, v3270FontInfo *
546 546 } right[] =
547 547 {
548 548 { V3270_OIA_CURSOR_POSITION, setup_cursor_position },
549   - { V3270_OIA_TIMER, setup_timer_position },
  549 + { V3270_OIA_TIMER, setup_ticking_position },
550 550 { V3270_OIA_SPINNER, setup_spinner_position },
551 551 { V3270_OIA_LUNAME, setup_luname_position },
552 552 #ifdef HAVE_PRINTER
... ... @@ -1042,6 +1042,8 @@ void v3270_start_timer(GtkWidget *widget)
1042 1042 info->terminal = terminal;
1043 1043 info->start = time(0);
1044 1044  
  1045 + update_timer(info);
  1046 +
1045 1047 terminal->timer = g_timeout_source_new(100);
1046 1048 g_source_set_callback(terminal->timer,(GSourceFunc) update_timer, info, (GDestroyNotify) release_timer);
1047 1049  
... ...