diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-07-05 02:52:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-07-05 02:52:39 +0000 |
commit | 36d85ce33ccaee0bce66a9d3dfc06a963a5428ae (patch) | |
tree | 1f04e17cf7a1ca6379f79ed023c0cd368c9cd582 /capture.c | |
parent | 105d0f4f708e77833c7dada65eb333bcb9d11dfd (diff) | |
download | wireshark-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 'capture.c')
-rw-r--r-- | capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.110 2000/06/27 07:13:12 guy Exp $ + * $Id: capture.c,v 1.111 2000/07/05 02:52:33 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -854,6 +854,7 @@ capture(void) cap_w = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(cap_w), "Ethereal: Capture / Playback"); + gtk_window_set_modal(GTK_WINDOW(cap_w), TRUE); /* Container for capture display widgets */ main_vb = gtk_vbox_new(FALSE, 1); @@ -920,7 +921,6 @@ capture(void) gtk_widget_show(stop_bt); gtk_widget_show(cap_w); - gtk_grab_add(cap_w); upd_time = time(NULL); #ifdef linux |