aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-11-11 05:09:03 +0000
committerGuy Harris <guy@alum.mit.edu>2003-11-11 05:09:03 +0000
commit6108feb655e07963bfc4b0d050316bd8ca0e40af (patch)
tree58ddfe65bcf633fce71f197d70a3c29d0bb84062 /gtk/gui_prefs.c
parent5eb8b8a2a00e3b136614c664e5d44b9c92caf41b (diff)
Create the last two items in the GUI preferences page's first column the
same way the other items are created - in order, going down the page, and using "pos++" as the table position. svn path=/trunk/; revision=8932
Diffstat (limited to 'gtk/gui_prefs.c')
-rw-r--r--gtk/gui_prefs.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c
index ed488815f7..141c06dc89 100644
--- a/gtk/gui_prefs.c
+++ b/gtk/gui_prefs.c
@@ -1,7 +1,7 @@
/* gui_prefs.c
* Dialog box for GUI preferences
*
- * $Id: gui_prefs.c,v 1.43 2003/10/20 06:06:26 oabad Exp $
+ * $Id: gui_prefs.c,v 1.44 2003/11/11 05:09:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -256,6 +256,21 @@ gui_prefs_show(void)
"Save window size:", NULL, prefs.gui_geometry_save_size);
OBJECT_SET_DATA(main_vb, GEOMETRY_SIZE_KEY, save_size_cb);
+ /* Allow user to select where they want the File Open dialog to open to
+ * by default */
+ fileopen_rb = create_preference_radio_buttons(main_tb, pos++,
+ "File Open dialog behavior:", NULL, gui_fileopen_vals,
+ prefs.gui_fileopen_style);
+
+ /* Directory to default File Open dialog to */
+ fileopen_dir_te = create_preference_entry(main_tb, pos++, "Directory:",
+ NULL, prefs.gui_fileopen_dir);
+ OBJECT_SET_DATA(main_vb, GUI_FILEOPEN_KEY, fileopen_rb);
+ OBJECT_SET_DATA(main_vb, GUI_FILEOPEN_DIR_KEY, fileopen_dir_te);
+ SIGNAL_CONNECT(fileopen_rb, "clicked", fileopen_selected_cb, main_vb);
+ SIGNAL_CONNECT(fileopen_dir_te, "focus-out-event",
+ fileopen_dir_changed_cb, main_vb);
+
/* "Font..." button - click to open a font selection dialog box. */
#if GTK_MAJOR_VERSION < 2
font_bt = gtk_button_new_with_label("Font...");
@@ -273,20 +288,6 @@ gui_prefs_show(void)
#endif
SIGNAL_CONNECT(color_bt, "clicked", color_browse_cb, NULL);
gtk_table_attach_defaults( GTK_TABLE(main_tb), color_bt, 2, 3, 1, 2 );
-
- /* Directory to default File Open dialog to */
- fileopen_dir_te = create_preference_entry(main_tb, 9, "Directory:",
- NULL, prefs.gui_fileopen_dir);
- OBJECT_SET_DATA(main_vb, GUI_FILEOPEN_DIR_KEY, fileopen_dir_te);
- SIGNAL_CONNECT(fileopen_dir_te, "focus-out-event",
- fileopen_dir_changed_cb, main_vb);
-
- /* Allow user to select where they want the File Open dialog to open to
- * by default */
- fileopen_rb = create_preference_radio_buttons(main_tb, 8, "File Open dialog behavior:",
- NULL, gui_fileopen_vals, prefs.gui_fileopen_style);
- SIGNAL_CONNECT(fileopen_rb, "clicked", fileopen_selected_cb, main_vb);
- OBJECT_SET_DATA(main_vb, GUI_FILEOPEN_KEY, fileopen_rb);
fileopen_selected_cb(NULL, main_vb);