gimp r27978 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27978 - in trunk: . app/display
- Date: Sun, 1 Feb 2009 19:49:40 +0000 (UTC)
Author: martinn
Date: Sun Feb 1 19:49:40 2009
New Revision: 27978
URL: http://svn.gnome.org/viewvc/gimp?rev=27978&view=rev
Log:
Use dedicated image type strings in the image window title
Use the dedicated image type strings for the image window title, the
enum value strings are too verbose.
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 Sun Feb 1 19:49:40 2009
@@ -124,12 +124,13 @@
static const gchar *
gimp_display_shell_title_image_type (GimpImage *image)
{
- const gchar *name = "";
-
- gimp_enum_get_value (GIMP_TYPE_IMAGE_BASE_TYPE,
- gimp_image_base_type (image), NULL, NULL, &name, NULL);
-
- return name;
+ switch (gimp_image_base_type (image))
+ {
+ case GIMP_RGB: return _("RGB");
+ case GIMP_GRAY: return _("grayscale");
+ case GIMP_INDEXED: return _("indexed");
+ default: return "unknown";
+ }
}
static gint print (gchar *buf,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]