Changeset 4156
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/hig.c
r2851 r4156 75 75 1, 4, *row, *row+1, 76 76 GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0); 77 ++*row; 78 } 79 80 void 81 hig_workarea_add_double_control (GtkWidget * table, 82 int * row, 83 GtkWidget * wl, 84 GtkWidget * wr) 85 { 86 gtk_table_attach (GTK_TABLE(table), wl, 87 1, 2, *row, *row+1, 88 GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0); 89 90 gtk_table_attach (GTK_TABLE(table), wr, 91 3, 4, *row, *row+1, 92 GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0, 0); 93 77 94 ++*row; 78 95 } -
trunk/gtk/hig.h
r2849 r4156 41 41 int * row, 42 42 GtkWidget * w); 43 44 void 45 hig_workarea_add_double_control (GtkWidget * table, 46 int * row, 47 GtkWidget * wl, 48 GtkWidget * wr); 43 49 44 50 GtkWidget* -
trunk/gtk/tr_prefs.c
r4026 r4156 198 198 const char * s; 199 199 GtkWidget * t; 200 GtkWidget * w ;200 GtkWidget * w, * w2; 201 201 GtkWidget * l; 202 202 GtkWidget * d; … … 213 213 214 214 hig_workarea_add_section_title (t, &row, _("Speed Limits")); 215 hig_workarea_add_section_spacer (t, row, 4);216 217 s = _("_Limit Upload Speed ");215 hig_workarea_add_section_spacer (t, row, 2); 216 217 s = _("_Limit Upload Speed (KiB/s)"); 218 218 w = new_check_button( s, PREF_KEY_UL_LIMIT_ENABLED, core ); 219 hig_workarea_add_wide_control( t, &row, w ); 220 221 w = new_spin_button( PREF_KEY_UL_LIMIT, core, 0, INT_MAX ); 222 s = _("Maximum _Upload Speed (KiB/s)"); 223 l = hig_workarea_add_row( t, &row, s, w, NULL ); 224 225 s = _("Li_mit Download Speed"); 219 w2 = new_spin_button( PREF_KEY_UL_LIMIT, core, 0, INT_MAX ); 220 hig_workarea_add_double_control( t, &row, w, w2 ); 221 222 s = _("Li_mit Download Speed (KiB/s)"); 226 223 w = new_check_button( s, PREF_KEY_DL_LIMIT_ENABLED, core ); 227 hig_workarea_add_wide_control( t, &row, w ); 228 229 w = new_spin_button( PREF_KEY_DL_LIMIT, core, 0, INT_MAX ); 230 s = _("Maximum _Download Speed (KiB/s)"); 231 l = hig_workarea_add_row( t, &row, s, w, NULL ); 224 w2 = new_spin_button( PREF_KEY_DL_LIMIT, core, 0, INT_MAX ); 225 hig_workarea_add_double_control( t, &row, w, w2 ); 232 226 233 227 hig_workarea_add_section_divider( t, &row ); 234 228 hig_workarea_add_section_title (t, &row, _("Downloads")); 235 hig_workarea_add_section_spacer (t, row, 4);236 237 s = _(" Al_ways prompt for download directory");229 hig_workarea_add_section_spacer (t, row, 3); 230 231 s = _("P_rompt for download directory"); 238 232 w = new_check_button( s, PREF_KEY_DIR_ASK, core ); 239 hig_workarea_add_wide_control( t, &row, w ); 240 241 w = new_path_chooser_button( PREF_KEY_DIR_DEFAULT, core ); 242 s = _("Download Di_rectory"); 243 l = hig_workarea_add_row( t, &row, s, w, NULL ); 233 w2 = new_path_chooser_button( PREF_KEY_DIR_DEFAULT, core ); 234 hig_workarea_add_double_control( t, &row, w, w2 ); 244 235 245 236 w = new_action_combo( PREF_KEY_ADDSTD, core );
Note: See TracChangeset
for help on using the changeset viewer.