aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/progress_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-07-05 02:52:39 +0000
committerGuy Harris <guy@alum.mit.edu>2000-07-05 02:52:39 +0000
commit36d85ce33ccaee0bce66a9d3dfc06a963a5428ae (patch)
tree1f04e17cf7a1ca6379f79ed023c0cd368c9cd582 /gtk/progress_dlg.c
parent105d0f4f708e77833c7dada65eb333bcb9d11dfd (diff)
downloadwireshark-36d85ce33ccaee0bce66a9d3dfc06a963a5428ae.tar.gz
wireshark-36d85ce33ccaee0bce66a9d3dfc06a963a5428ae.tar.bz2
wireshark-36d85ce33ccaee0bce66a9d3dfc06a963a5428ae.zip
To make windows modal, use "gtk_window_set_modal()" rather than
"gtk_grab_add()"; the former makes it a bit clearer what's being done, and I think it may be considered the right way to do it (GTK+ remembers the state of the window and appears to add and remove the grab as appropriate). svn path=/trunk/; revision=2113
Diffstat (limited to 'gtk/progress_dlg.c')
-rw-r--r--gtk/progress_dlg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/progress_dlg.c b/gtk/progress_dlg.c
index 5149fdf15a..acf5060e71 100644
--- a/gtk/progress_dlg.c
+++ b/gtk/progress_dlg.c
@@ -1,7 +1,7 @@
/* progress_dlg.c
* Routines for progress-bar (modal) dialog
*
- * $Id: progress_dlg.c,v 1.3 2000/07/05 02:45:41 guy Exp $
+ * $Id: progress_dlg.c,v 1.4 2000/07/05 02:52:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -65,6 +65,7 @@ create_progress_dlg(gchar *title, gboolean *stop_flag)
dlg_w = dlg_window_new();
gtk_window_set_title(GTK_WINDOW(dlg_w), title);
+ gtk_window_set_modal(GTK_WINDOW(dlg_w), TRUE);
/*
* Container for dialog widgets.
@@ -122,7 +123,6 @@ create_progress_dlg(gchar *title, gboolean *stop_flag)
gtk_widget_show(cancel_al);
gtk_widget_show(dlg_w);
- gtk_grab_add(dlg_w); /* make it modal */
return dlg_w; /* return as opaque pointer */
}