From 9c44d87610cf97fbfc7d4ba9628676ab043547c9 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 4 Jun 2012 02:24:42 +0000 Subject: 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 --- ui/gtk/menus.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ui/gtk/menus.h') diff --git a/ui/gtk/menus.h b/ui/gtk/menus.h index 27940cbc06..cf1ec47243 100644 --- a/ui/gtk/menus.h +++ b/ui/gtk/menus.h @@ -125,12 +125,6 @@ extern GtkWidget *menus_get_profiles_change_menu (void); void set_menus_for_selected_tree_row(capture_file *cf); -/* Enable or disable menu items based on whether you have a capture file - you've finished reading and, if you have one, whether it's been saved - and whether it could be saved except by copying the raw packet data. */ -void set_menus_for_capture_file(capture_file *); - - /* Enable or disable menu items based on whether there's a capture in progress. */ void set_menus_for_capture_in_progress(gboolean); -- cgit v1.2.1