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
This commit is contained in:
Martin Nordholts
2009-02-01 19:49:40 +00:00
parent 82636d3a30
commit 9e8b47b5d4
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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,