diff --git a/ChangeLog b/ChangeLog index e8fb1f53be..469a515fbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-02-01 Martin Nordholts + + * app/display/gimpdisplayshell-title.c: Use the dedicated image + type strings for the image window title, the enum value strings + are too verbose. + 2009-02-01 Martin Nordholts * app/core/gimpdrawable.c: Collect logic to update the diff --git a/app/display/gimpdisplayshell-title.c b/app/display/gimpdisplayshell-title.c index 1b2f488de1..89edd4be75 100644 --- a/app/display/gimpdisplayshell-title.c +++ b/app/display/gimpdisplayshell-title.c @@ -124,12 +124,13 @@ gimp_display_shell_update_title_idle (gpointer data) 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,