1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

(trunk gtk) fix minor layout/resize errors in the torrent dialog's tracker tab

This commit is contained in:
Charles Kerr 2009-10-28 03:54:36 +00:00
parent 693897ce4c
commit 2d593502f4
3 changed files with 21 additions and 1 deletions

View file

@ -1681,6 +1681,7 @@ buildTrackerSummary( const char * key, const tr_tracker_stat * st, gboolean show
break;
case TR_TRACKER_ACTIVE:
tr_strltime_rounded( timebuf, now - st->lastAnnounceStartTime, sizeof( timebuf ) );
g_string_append_c( gstr, '\n' );
g_string_append_printf( gstr, _( "Asking for more peers now... <small>%s</small>" ), timebuf );
break;
}
@ -1999,7 +2000,7 @@ onEditTrackers( GtkButton * button, gpointer data )
GTK_POLICY_AUTOMATIC );
gtk_container_add( GTK_CONTAINER( sw ), w );
gtk_container_add( GTK_CONTAINER( fr ), sw );
hig_workarea_add_wide_control( t, &row, fr );
hig_workarea_add_wide_tall_control( t, &row, fr );
hig_workarea_finish( t, &row );
gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), t, TRUE, TRUE, GUI_PAD_SMALL );

View file

@ -91,6 +91,21 @@ hig_workarea_add_wide_control( GtkWidget * t,
++ * row;
}
void
hig_workarea_add_wide_tall_control( GtkWidget * t,
int * row,
GtkWidget * w )
{
GtkWidget * r = rowNew( w );
gtk_table_attach( GTK_TABLE( t ), r, 0, 2, *row, *row + 1,
GTK_EXPAND | GTK_SHRINK | GTK_FILL,
GTK_EXPAND | GTK_SHRINK | GTK_FILL,
0, 0 );
++ * row;
}
GtkWidget *
hig_workarea_add_wide_checkbutton( GtkWidget * t,
int * row,

View file

@ -33,6 +33,10 @@ void hig_workarea_add_section_title( GtkWidget * table,
int * row,
const char * section_title );
void hig_workarea_add_wide_tall_control( GtkWidget * table,
int * row,
GtkWidget * w );
void hig_workarea_add_wide_control( GtkWidget * table,
int * row,
GtkWidget * w );