Commit 9e8b47b5 authored by Martin Nordholts's avatar Martin Nordholts

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.

svn path=/trunk/; revision=27978
parent 82636d3a
2009-02-01 Martin Nordholts <martinn@svn.gnome.org>
* 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 <martinn@svn.gnome.org>
* app/core/gimpdrawable.c: Collect logic to update the
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment