aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-02 11:30:24 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-02 11:30:24 +0000
commit395bb2190150d7ca94b72877e26c6a45a9aeda57 (patch)
treeb006fa5b6ff31677fd87cb4e40777528a2a870ea /gtk/main.c
parentf516cf141fee24a98bfed082c438d07585c4f478 (diff)
downloadwireshark-395bb2190150d7ca94b72877e26c6a45a9aeda57.tar.gz
wireshark-395bb2190150d7ca94b72877e26c6a45a9aeda57.tar.bz2
wireshark-395bb2190150d7ca94b72877e26c6a45a9aeda57.zip
From Nathan Jennings: add a preference that supplies a prefix for window
titles. svn path=/trunk/; revision=12657
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 9cd1fce2db..5c36257163 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -2951,6 +2951,7 @@ create_main_window (gint pl_size, gint tv_size, gint bv_size, e_prefs *prefs)
GList *filter_list = NULL;
GtkTooltips *tooltips;
GtkAccelGroup *accel;
+ gchar *title;
/* Display filter construct dialog has an Apply button, and "OK" not
only sets our text widget, it activates it (i.e., it causes us to
filter the capture). */
@@ -2960,8 +2961,12 @@ create_main_window (gint pl_size, gint tv_size, gint bv_size, e_prefs *prefs)
TRUE
};
+ /* use user-defined title if preference is set */
+ title = create_user_window_title("The Ethereal Network Analyzer");
+
/* Main window */
- top_level = window_new(GTK_WINDOW_TOPLEVEL, "The Ethereal Network Analyzer");
+ top_level = window_new(GTK_WINDOW_TOPLEVEL, title);
+ g_free(title);
tooltips = gtk_tooltips_new();
@@ -3159,3 +3164,4 @@ create_main_window (gint pl_size, gint tv_size, gint bv_size, e_prefs *prefs)
status_pane = gtk_hpaned_new();
gtk_widget_show(status_pane);
}
+