From a3610b563b47c28a6e13b957ecb54569ea272c72 Mon Sep 17 00:00:00 2001 From: Chema Celorio Date: Wed, 25 Jul 2001 00:36:48 +0000 Subject: [PATCH] set the title of the window to "Gnome Control Center : foo" 2001-07-24 Chema Celorio * capplet-dir-view.c (capplet_dir_view_load_dir): set the title of the window to "Gnome Control Center : foo" --- control-center/ChangeLog | 5 +++++ control-center/capplet-dir-view-html.c | 1 + control-center/capplet-dir-view.c | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/control-center/ChangeLog b/control-center/ChangeLog index 5f9c953f4..f8b903796 100644 --- a/control-center/ChangeLog +++ b/control-center/ChangeLog @@ -1,3 +1,8 @@ +2001-07-24 Chema Celorio + + * capplet-dir-view.c (capplet_dir_view_load_dir): set the title + of the window to "Gnome Control Center : foo" + 2001-07-24 Bradford Hovinen * capplet-dir.c (capplet_control_launch): Set moniker property diff --git a/control-center/capplet-dir-view-html.c b/control-center/capplet-dir-view-html.c index 81d3cf254..9e9cc2ea1 100644 --- a/control-center/capplet-dir-view-html.c +++ b/control-center/capplet-dir-view-html.c @@ -194,6 +194,7 @@ sidebar_populate (CappletDirView *view) "" "" "" +//"" "" "" "" diff --git a/control-center/capplet-dir-view.c b/control-center/capplet-dir-view.c index 08fac8bfe..ae704f48e 100644 --- a/control-center/capplet-dir-view.c +++ b/control-center/capplet-dir-view.c @@ -390,6 +390,7 @@ capplet_dir_view_load_dir (CappletDirView *view, CappletDir *dir) GdkBitmap *bitmap; CappletDirEntry *entry; int parents = 0; + gchar *title; g_return_if_fail (view != NULL); g_return_if_fail (IS_CAPPLET_DIR_VIEW (view)); @@ -404,7 +405,9 @@ capplet_dir_view_load_dir (CappletDirView *view, CappletDir *dir) if (view->impl && view->impl->populate) view->impl->populate (view); - gtk_window_set_title (GTK_WINDOW (view->app), dir->entry.entry->name); + title = g_strdup_printf (_("Gnome Control Center : %s"), dir->entry.entry->name); + gtk_window_set_title (GTK_WINDOW (view->app), title); + g_free (title); menu = gtk_menu_new ();