mirror of
https://github.com/transmission/transmission
synced 2025-03-11 22:52:53 +00:00
(trunk gtk) fix label clipping issue in the statusbar
This commit is contained in:
parent
7b3757f6ad
commit
c75c2c13e9
1 changed files with 1 additions and 3 deletions
|
@ -708,10 +708,8 @@ tr_window_new( GtkUIManager * ui_mgr, TrCore * core )
|
|||
{
|
||||
/* this is to determine the maximum width/height for the label */
|
||||
int w=0, h=0;
|
||||
char buf[64];
|
||||
PangoLayout * pango_layout;
|
||||
tr_formatter_speed_KBps( buf, 999.99, sizeof( buf ) );
|
||||
pango_layout = gtk_widget_create_pango_layout( p->ul_lb, buf );
|
||||
pango_layout = 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…
Add table
Reference in a new issue