aboutsummaryrefslogtreecommitdiffstats
path: root/ui_util.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-22 02:21:01 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-22 02:21:01 +0000
commit45a694c0f37e5577d3662bb4dcf5fbc72aa8b787 (patch)
tree2b7c4b30406661726a88a3451327359d7be444c2 /ui_util.h
parentfa0fb1e264af0c7f57bef4ae62bda46166103169 (diff)
Don't explicitly set the main window name unless you're changing the
state to "no packets", "file open", or "live capture in progress". Instead, to update the main window title when the user-specified prefix for the title changes: save the un-decorated title as a data value attached to the main window in set_main_window_name(); have a new routine to update the title, which fetches the un-decorated title, decorates it, and sets the title to the decorated value. This fixes bug 1608. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21876 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ui_util.h')
-rw-r--r--ui_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui_util.h b/ui_util.h
index d717b34230..2534024ab9 100644
--- a/ui_util.h
+++ b/ui_util.h
@@ -35,6 +35,9 @@ extern "C" {
/* Set the name of the top-level window and its icon. */
void set_main_window_name(gchar *);
+/* Update the name of the main window if the user-specified decoration
+ changed. */
+void update_main_window_name(void);
/* update the main window */
extern void main_window_update(void);
/* exit the main window */