aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_prefs.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-05-27 19:59:50 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-05-27 19:59:50 +0000
commit8d121bfb928569e167ad6c35b5ed97ab5388804f (patch)
treefe47d6b38945a0937210a3aaf2322d913dd0e3fd /gtk/capture_prefs.c
parent6f8e9eeafe523a2809079e4a3a125db0a76c68b2 (diff)
use gtk_window_set_default_size() instead of WIDGET_SET_SIZE() for the dialogs,
as WIDGET_SET_SIZE() will prevent the user from shrinking the dialog, and gtk_window_set_default_size() will not svn path=/trunk/; revision=11021
Diffstat (limited to 'gtk/capture_prefs.c')
-rw-r--r--gtk/capture_prefs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk/capture_prefs.c b/gtk/capture_prefs.c
index d8b622d345..3a86d49b4b 100644
--- a/gtk/capture_prefs.c
+++ b/gtk/capture_prefs.c
@@ -1,7 +1,7 @@
/* capture_prefs.c
* Dialog box for capture preferences
*
- * $Id: capture_prefs.c,v 1.33 2004/05/26 03:49:21 ulfl Exp $
+ * $Id: capture_prefs.c,v 1.34 2004/05/27 19:59:48 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -237,6 +237,7 @@ ifopts_edit_cb(GtkWidget *w, gpointer data _U_)
/* create a new dialog */
ifopts_edit_dlg = dlg_window_new("Ethereal: Preferences: Interface Options");
+ gtk_window_set_default_size(GTK_WINDOW(ifopts_edit_dlg), 570, 300);
main_vb = gtk_vbox_new(FALSE, 1);
gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
@@ -260,7 +261,6 @@ ifopts_edit_cb(GtkWidget *w, gpointer data _U_)
* This avoids having to remove OS (pcap) descriptions.
*/
cur_clist = gtk_clist_new_with_titles(IFOPTS_CLIST_COLS, cur_titles);
- WIDGET_SET_SIZE(GTK_WIDGET(cur_clist), 570, 120);
gtk_clist_set_column_visibility(GTK_CLIST(cur_clist), 0, FALSE);
gtk_clist_set_column_width(GTK_CLIST(cur_clist), 1, 230);
gtk_clist_set_column_width(GTK_CLIST(cur_clist), 2, 260);
@@ -287,7 +287,6 @@ ifopts_edit_cb(GtkWidget *w, gpointer data _U_)
/* create interface CList */
if_clist = gtk_clist_new_with_titles(1, if_title);
SIGNAL_CONNECT(if_clist, "select_row", ifopts_edit_ifsel_cb, if_clist);
- WIDGET_SET_SIZE(GTK_WIDGET(if_clist), 100, 120);
gtk_clist_set_column_width(GTK_CLIST(if_clist), 0, 100);
gtk_clist_column_titles_passive(GTK_CLIST(if_clist));
gtk_clist_set_selection_mode(GTK_CLIST(if_clist), GTK_SELECTION_SINGLE);
@@ -393,10 +392,6 @@ ifopts_edit_destroy_cb(GtkWidget *win, gpointer data _U_)
/* Tell it we no longer exist. */
OBJECT_SET_DATA(caller, IFOPTS_DIALOG_PTR_KEY, NULL);
}
-
- /* Now nuke this window. */
- gtk_grab_remove(GTK_WIDGET(win));
- window_destroy(GTK_WIDGET(win));
}
/*