metacity r3776 - in trunk: . src/ui
- From: tthurman svn gnome org
- To: svn-commits-list gnome org
- Subject: metacity r3776 - in trunk: . src/ui
- Date: Mon, 30 Jun 2008 00:23:41 +0000 (UTC)
Author: tthurman
Date: Mon Jun 30 00:23:41 2008
New Revision: 3776
URL: http://svn.gnome.org/viewvc/metacity?rev=3776&view=rev
Log:
2008-06-30 Thomas Thurman <tthurman gnome org>
* src/ui/theme-viewer.c (main): display the theme name
in the title bar. Closes #430198.
Modified:
trunk/ChangeLog
trunk/src/ui/theme-viewer.c
Modified: trunk/src/ui/theme-viewer.c
==============================================================================
--- trunk/src/ui/theme-viewer.c (original)
+++ trunk/src/ui/theme-viewer.c Mon Jun 30 00:23:41 2008
@@ -29,6 +29,7 @@
#include <gtk/gtk.h>
#include <time.h>
#include <stdlib.h>
+#include <string.h>
#include <libintl.h>
#define _(x) dgettext (GETTEXT_PACKAGE, x)
@@ -816,6 +817,24 @@
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 350, 350);
+ if (strcmp (global_theme->name, global_theme->readable_name)==0)
+ gtk_window_set_title (GTK_WINDOW (window),
+ global_theme->readable_name);
+ else
+ {
+ /* The theme directory name is different from the name the theme
+ * gives itself within its file. Display both, directory name first.
+ */
+ gchar *title = g_strconcat (global_theme->name, " - ",
+ global_theme->readable_name,
+ NULL);
+
+ gtk_window_set_title (GTK_WINDOW (window),
+ title);
+
+ g_free (title);
+ }
+
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]