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:
@ -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
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user