Commit 1175a64b authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

app/config/gimpconfig-dump.c applied patch from Dave Neary which adds %B

2004-07-13  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-dump.c
	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): applied patch from Dave Neary
	which adds %B which expands to (modified) if the image is
	dirty. Also added %A which expands to (clean) because we also have
	a short indicator for the clean image. Fixes bug #130943.
parent 1e7a0f34
2004-07-13 Michael Natterer <mitch@gimp.org>
* app/config/gimpconfig-dump.c
* app/display/gimpdisplayshell-title.c
(gimp_display_shell_format_title): applied patch from Dave Neary
which adds %B which expands to (modified) if the image is
dirty. Also added %A which expands to (clean) because we also have
a short indicator for the clean image. Fixes bug #130943.
2004-07-13 Sven Neumann <sven@gimp.org>
* app/Makefile.am: removed hack for gimp-console compilation.
......@@ -40,7 +49,7 @@
* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): added
"GType undo_gtype" parameter and allow to pass name-value pairs as
"...". Une the new GParameter utility functions to construct the
"...". Use the new GParameter utility functions to construct the
appropriate undo step with g_object_newv().
(gimp_image_undo_push_item): removed.
......
......@@ -301,6 +301,8 @@ static const gchar * display_format_description =
"%d destination scale factor\n"
"%Dx expands to x if the image is dirty, the empty string otherwise\n"
"%Cx expands to x if the image is clean, the empty string otherwise\n"
"%B expands to (modified) if the image is dirty, the empty string otherwise\n"
"%A expands to (clean) if the image is clean, the empty string otherwise\n"
"%l the number of layers\n"
"%L the number of layers (long form)\n"
"%m memory used by the image\n"
......
......@@ -273,6 +273,18 @@ gimp_display_shell_format_title (GimpDisplayShell *shell,
format++;
break;
case 'B': /* dirty flag (long) */
if (image->dirty)
i += print (title, title_len, i, "%s",
_("(modified)"));
break;
case 'A': /* clean flag (long) */
if (! image->dirty)
i += print (title, title_len, i, "%s",
_("(clean)"));
break;
case 'm': /* memory used by image */
{
GimpObject *object = GIMP_OBJECT (image);
......
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