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>
|
2009-02-01 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
* app/core/gimpdrawable.c: Collect logic to update the
|
* app/core/gimpdrawable.c: Collect logic to update the
|
||||||
|
@ -124,12 +124,13 @@ gimp_display_shell_update_title_idle (gpointer data)
|
|||||||
static const gchar *
|
static const gchar *
|
||||||
gimp_display_shell_title_image_type (GimpImage *image)
|
gimp_display_shell_title_image_type (GimpImage *image)
|
||||||
{
|
{
|
||||||
const gchar *name = "";
|
switch (gimp_image_base_type (image))
|
||||||
|
{
|
||||||
gimp_enum_get_value (GIMP_TYPE_IMAGE_BASE_TYPE,
|
case GIMP_RGB: return _("RGB");
|
||||||
gimp_image_base_type (image), NULL, NULL, &name, NULL);
|
case GIMP_GRAY: return _("grayscale");
|
||||||
|
case GIMP_INDEXED: return _("indexed");
|
||||||
return name;
|
default: return "unknown";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint print (gchar *buf,
|
static gint print (gchar *buf,
|
||||||
|
Reference in New Issue
Block a user