diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-04 02:24:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-04 02:24:42 +0000 |
commit | 9c44d87610cf97fbfc7d4ba9628676ab043547c9 (patch) | |
tree | b827248f96aff727b5aced96c5c97b4958b1c6d6 /ui/gtk/main.h | |
parent | bcfbbd6f1e0e34dfe8c12f231a0e69ed717248f3 (diff) |
Have a main_update_for_unsaved_changes() routine that, if changes are
made to the capture file (adding/removing/editing comments, for now) or
if a capture file with unsaved changes are unsaved, updates the menu
bar, the toolbar, *and* the titlebar, which now has a GNOME-style "*" to
indicate unsaved changes.
Make set_menus_for_capture_file() a private interface between main.c and
main_menubar.c, and have its callers, such as
main_update_for_unsaved_changes(), be responsible for updating the
toolbar as well.
svn path=/trunk/; revision=43051
Diffstat (limited to 'ui/gtk/main.h')
-rw-r--r-- | ui/gtk/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gtk/main.h b/ui/gtk/main.h index 31f3fd8a9f..cee1b77099 100644 --- a/ui/gtk/main.h +++ b/ui/gtk/main.h @@ -307,6 +307,13 @@ extern void find_prev_mark_cb(GtkWidget *widget, gpointer data, int action); extern void dfilter_combo_add_empty(void); #endif +/** Update various parts of the main window for a capture file "unsaved + * changes" change. + * + * @param cf capture_file structure for the capture file. + */ +extern void main_update_for_unsaved_changes(capture_file *cf); + /** Quit the program. * * @return TRUE, if a file read is in progress |