1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-06 03:28:33 +00:00

(gtk) minor hig tweaks to the preferences dialog -- spacing, capitalization

This commit is contained in:
Charles Kerr 2008-02-13 15:23:16 +00:00
parent aaf8fdf45e
commit ee0682349f
2 changed files with 6 additions and 10 deletions

View file

@ -18,7 +18,7 @@ hig_workarea_create (void)
{
GtkWidget * t = gtk_table_new( 1, 2, FALSE );
gtk_container_set_border_width( GTK_CONTAINER( t ), 12 );
gtk_table_set_col_spacings( GTK_TABLE( t ), 12 );
gtk_table_set_col_spacing( GTK_TABLE( t ), 0, 12 );
gtk_table_set_row_spacings( GTK_TABLE( t ), 6 );
return t;
}
@ -155,10 +155,6 @@ void
hig_workarea_finish( GtkWidget * t,
int * row)
{
GtkWidget * w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
gtk_widget_set_size_request( w, 0u, 6u );
gtk_table_attach_defaults( GTK_TABLE( t ), w, 0, 4, *row, *row+1 );
++*row;
gtk_table_resize( GTK_TABLE( t ), *row, 2 );
}

View file

@ -236,7 +236,7 @@ torrentPage( GObject * core )
hig_workarea_add_section_divider( t, &row );
hig_workarea_add_section_title( t, &row, _( "Adding Torrents" ) );
s = _( "Show _options window" );
s = _( "Show _options dialog" );
w = new_check_button( s, PREF_KEY_OPTIONS_PROMPT, core );
hig_workarea_add_wide_control( t, &row, w );
@ -275,9 +275,9 @@ peerPage( GObject * core )
hig_workarea_add_section_title( t, &row, _( "Limits" ) );
w = new_spin_button( PREF_KEY_MAX_PEERS_GLOBAL, core, 1, 3000, 5 );
hig_workarea_add_row( t, &row, _( "_Total peer limit:" ), w, NULL );
hig_workarea_add_row( t, &row, _( "Maximum peers _overall:" ), w, NULL );
w = new_spin_button( PREF_KEY_MAX_PEERS_PER_TORRENT, core, 1, 300, 5 );
hig_workarea_add_row( t, &row, _( "_Per-torrent peer limit:" ), w, NULL );
hig_workarea_add_row( t, &row, _( "Maximum peers per _torrent:" ), w, NULL );
hig_workarea_finish (t, &row);
return t;
@ -298,14 +298,14 @@ networkPage( GObject * core, gpointer alive )
hig_workarea_add_section_title (t, &row, _("Bandwidth"));
s = _("Limit _upload speed (KiB/s)");
s = _("Limit _upload speed (KiB/s):");
w = new_check_button( s, PREF_KEY_UL_LIMIT_ENABLED, core );
w2 = new_spin_button( PREF_KEY_UL_LIMIT, core, 0, INT_MAX, 5 );
gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_UL_LIMIT_ENABLED ) );
g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
hig_workarea_add_row_w( t, &row, w, w2, NULL );
s = _("Limit _download speed (KiB/s)");
s = _("Limit _download speed (KiB/s):");
w = new_check_button( s, PREF_KEY_DL_LIMIT_ENABLED, core );
w2 = new_spin_button( PREF_KEY_DL_LIMIT, core, 0, INT_MAX, 5 );
gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_DL_LIMIT_ENABLED ) );