diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-25 21:25:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-25 21:25:55 +0000 |
commit | 601403570300c61921515bfc9e1a08a8d65cba5f (patch) | |
tree | 47a97b29a7ed76ebbcc7c7b7116ee1387c16fc1c /ui/gtk/main_toolbar.c | |
parent | ce9bd398931417602c5884019923f71b7dee4391 (diff) |
Use GTK+'s GtkMessageDialog for the questions we ask in the process of
saving files, and run it modal (which we're already doing with the
GtkFileChooserDialog); this means less callback-based state machine
stuff, simplifying the code paths a bit.
If we're saving a file before closing it, don't bother reloading it
after saving it.
svn path=/trunk/; revision=42855
Diffstat (limited to 'ui/gtk/main_toolbar.c')
-rw-r--r-- | ui/gtk/main_toolbar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gtk/main_toolbar.c b/ui/gtk/main_toolbar.c index 488a6c2279..f98ffc3d82 100644 --- a/ui/gtk/main_toolbar.c +++ b/ui/gtk/main_toolbar.c @@ -1,4 +1,4 @@ -/* toolbar.c +/* main_toolbar.c * The main toolbar * Copyright 2003, Ulf Lamping <ulf.lamping@web.de> * @@ -36,6 +36,7 @@ #include <epan/prefs.h> #include <epan/dfilter/dfilter.h> +#include "../cfile.h" #include "../color_filters.h" #include "ui/recent.h" |