(trunk gtk) ensure that the space allocated the up/down speed labels in the statusbar are wide enough to show all speeds without truncating the label

This commit is contained in:
Charles Kerr 2010-07-08 21:24:26 +00:00
parent 63f3ac9fca
commit 42104d9a9b
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ tr_window_new( GtkUIManager * ui_mgr, TrCore * core )
int w=0, h=0;
/* this is to determine the maximum width/height for the label */
PangoLayout * pango_layout =
gtk_widget_create_pango_layout( p->ul_lb, _( "999.9 KiB/s" ) );
gtk_widget_create_pango_layout( p->ul_lb, _( "999.99 KiB/s" ) );
pango_layout_get_pixel_size( pango_layout, &w, &h );
gtk_widget_set_size_request( p->ul_lb, w, h );
gtk_widget_set_size_request( p->dl_lb, w, h );