[gimp/goat-invasion] app: show the precision in the image title string for %t
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion] app: show the precision in the image title string for %t
- Date: Sun, 22 Apr 2012 21:24:53 +0000 (UTC)
commit d7265b533115d85fc5b17d53ece8101fb4dd2edc
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 22 23:24:14 2012 +0200
app: show the precision in the image title string for %t
app/display/gimpdisplayshell-title.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-title.c b/app/display/gimpdisplayshell-title.c
index 9ece777..2df59ee 100644
--- a/app/display/gimpdisplayshell-title.c
+++ b/app/display/gimpdisplayshell-title.c
@@ -137,6 +137,17 @@ gimp_display_shell_title_image_type (GimpImage *image)
return name;
}
+static const gchar *
+gimp_display_shell_title_image_precision (GimpImage *image)
+{
+ const gchar *name = "";
+
+ gimp_enum_get_value (GIMP_TYPE_PRECISION,
+ gimp_image_get_precision (image), NULL, NULL, &name, NULL);
+
+ return name;
+}
+
static gint print (gchar *buf,
gint len,
gint start,
@@ -232,8 +243,9 @@ gimp_display_shell_format_title (GimpDisplayShell *shell,
break;
case 't': /* image type */
- i += print (title, title_len, i, "%s",
- gimp_display_shell_title_image_type (image));
+ i += print (title, title_len, i, "%s %s",
+ gimp_display_shell_title_image_type (image),
+ gimp_display_shell_title_image_precision (image));
break;
case 'T': /* drawable type */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]