diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-07-12 19:10:58 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-07-12 19:10:58 +0000 |
commit | 05232a7e22f1fbb1f30fa7c57613c46a3822e73a (patch) | |
tree | ced7969c9ceab3205edb654394d4d9ac416a3768 | |
parent | e987a57bc33f20efd4231ceff95b434f8b7ae2b8 (diff) |
bugfix to a bug reported by Stuart MacDonald (bug #12):
present main window before closing the program,
when asking to save the capture file first
svn path=/trunk/; revision=11366
-rw-r--r-- | gtk/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c index 6b83128888..1920335863 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.456 2004/07/09 21:13:22 guy Exp $ + * $Id: main.c,v 1.457 2004/07/12 19:10:58 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -831,6 +831,9 @@ main_window_delete_event_cb(GtkWidget *widget _U_, GdkEvent *event _U_, gpointer gpointer dialog; if((cfile.state != FILE_CLOSED) && !cfile.user_saved && prefs.gui_ask_unsaved) { +#if GTK_MAJOR_VERSION >= 2 + gtk_window_present(GTK_WINDOW(top_level)); +#endif /* user didn't saved his current file, ask him */ dialog = simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTNS_YES_NO_CANCEL, PRIMARY_TEXT_START "Save capture file before program quit?" PRIMARY_TEXT_END "\n\n" |