(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:
parent
63f3ac9fca
commit
42104d9a9b
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue