set the title of the window to "Gnome Control Center : foo"

2001-07-24  Chema Celorio  <chema@celorio.com>

	* capplet-dir-view.c (capplet_dir_view_load_dir): set the title
	of the window to "Gnome Control Center : foo"
This commit is contained in:
Chema Celorio 2001-07-25 00:36:48 +00:00 committed by Jose Maria Celorio
parent 62137c9e23
commit a3610b563b
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-07-24 Chema Celorio <chema@celorio.com>
* 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 <hovinen@ximian.com>
* capplet-dir.c (capplet_control_launch): Set moniker property

View file

@ -194,6 +194,7 @@ sidebar_populate (CappletDirView *view)
"<html>"
"<head>"
"</head>"
//"<body bgcolor=\"#AAAAAA\" marginheight=\"0\" marginwidth=\"0\">"
"<body bgcolor=\"#d9d9d9\" marginheight=\"0\" marginwidth=\"0\">"
"<table border=\"0\" width=\"100%%\" cellspacing=\"1\" cellpadding=\"4\">"
"<tr><td colspan=\"3\">&nbsp;</td></tr>"

View file

@ -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 ();