Commit 2a67bfcb authored by Sven Neumann's avatar Sven Neumann

app: document the new display title option

parent 26f6f299
......@@ -313,6 +313,7 @@ static const gchar display_format_description[] =
"%W image width in real-world units\n"
"%h image height in pixels\n"
"%H image height in real-world units\n"
"%M the image size expressed in megapixels\n"
"%u unit symbol\n"
"%U unit abbreviation\n\n";
......
......@@ -324,9 +324,8 @@ gimp_display_shell_format_title (GimpDisplayShell *shell,
case 'M': /* image size in megapixels */
i += print (title, title_len, i, "%.1f",
(double) gimp_image_get_width (image) *
gimp_image_get_height (image) /
1000000.0);
(gdouble) gimp_image_get_width (image) *
(gdouble) gimp_image_get_height (image) / 1000000.0);
break;
case 'l': /* number of layers */
......
......@@ -513,6 +513,8 @@ certain % character sequences are recognised and expanded as follows:
.br
%H image height in real-world units
.br
%M the image size expressed in megapixels
.br
%u unit symbol
.br
%U unit abbreviation
......@@ -572,6 +574,8 @@ certain % character sequences are recognised and expanded as follows:
.br
%H image height in real-world units
.br
%M the image size expressed in megapixels
.br
%u unit symbol
.br
%U unit abbreviation
......
......@@ -403,6 +403,7 @@
# %W image width in real-world units
# %h image height in pixels
# %H image height in real-world units
# %M the image size expressed in megapixels
# %u unit symbol
# %U unit abbreviation
#
......@@ -435,6 +436,7 @@
# %W image width in real-world units
# %h image height in pixels
# %H image height in real-world units
# %M the image size expressed in megapixels
# %u unit symbol
# %U unit abbreviation
#
......
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