diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-07-05 06:33:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-07-05 06:33:02 +0000 |
commit | ed5651a90939c40d1ca64a0b0e67b89b8031da21 (patch) | |
tree | 3a5b77f38a2e9e52606599c76d7534764388b197 /gtk/prefs_dlg.c | |
parent | 4522bab239345aa70d270dee9a6844bba008fb32 (diff) |
Get rid of the stuff to let the callback that pops up the Preferences
dialog select a particular page - I think that was used only by the
filter code back when "Filter:" buttons popped up a Preferences dialog
with the Filter page (which is no longer a Preferences dialog page)
selected, but now there's a separate Filter dialog box.
svn path=/trunk/; revision=2116
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r-- | gtk/prefs_dlg.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c index 72cda3c3b0..76d09247e8 100644 --- a/gtk/prefs_dlg.c +++ b/gtk/prefs_dlg.c @@ -1,7 +1,7 @@ /* prefs_dlg.c * Routines for handling preferences * - * $Id: prefs_dlg.c,v 1.12 2000/07/05 02:45:41 guy Exp $ + * $Id: prefs_dlg.c,v 1.13 2000/07/05 06:33:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -79,13 +79,11 @@ static void prefs_main_destroy_cb(GtkWidget *, gpointer); static GtkWidget *prefs_w; void -prefs_cb(GtkWidget *w, gpointer sp) { +prefs_cb(GtkWidget *w, gpointer dummy) { GtkWidget *main_vb, *top_hb, *bbox, *prefs_nb, *ok_bt, *save_bt, *cancel_bt; GtkWidget *print_pg, *column_pg, *stream_pg, *gui_pg, *label; - gint start_page = (gint) sp; - if (prefs_w != NULL) { /* There's already a "Preferences" dialog box; reactivate it. */ reactivate_window(prefs_w); @@ -138,10 +136,6 @@ prefs_cb(GtkWidget *w, gpointer sp) { label = gtk_label_new ("GUI"); gtk_notebook_append_page (GTK_NOTEBOOK(prefs_nb), gui_pg, label); - /* Jump to the specified page, if it was supplied */ - if (start_page > E_PR_PG_NONE) - gtk_notebook_set_page(GTK_NOTEBOOK(prefs_nb), start_page); - /* Button row: OK and cancel buttons */ bbox = gtk_hbutton_box_new(); gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_END); |