gimp r27979 - in trunk: . app/display



Author: neo
Date: Mon Feb  2 11:00:38 2009
New Revision: 27979
URL: http://svn.gnome.org/viewvc/gimp?rev=27979&view=rev

Log:
2009-02-02  Sven Neumann  <sven gimp org>

	* app/display/gimpdisplayshell-title.c: reverted last change. 
It's
	not helpful to use different strings for the same information 
and
	space is not crucial in the window title.



Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell-title.c

Modified: trunk/app/display/gimpdisplayshell-title.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-title.c	(original)
+++ trunk/app/display/gimpdisplayshell-title.c	Mon Feb  2 11:00:38 2009
@@ -124,13 +124,12 @@
 static const gchar *
 gimp_display_shell_title_image_type (GimpImage *image)
 {
-  switch (gimp_image_base_type (image))
-    {
-    case GIMP_RGB:     return _("RGB");
-    case GIMP_GRAY:    return _("grayscale");
-    case GIMP_INDEXED: return _("indexed");
-    default:           return "unknown";
-    }
+  const gchar *name = "";
+
+  gimp_enum_get_value (GIMP_TYPE_IMAGE_BASE_TYPE,
+                       gimp_image_base_type (image), NULL, NULL, &name, NULL);
+
+  return name;
 }
 
 static gint print (gchar       *buf,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]