[PATCH] Improve image property page

From bug 159851 [1]:

"In the "Image" tab in the 'Properties' window you get when you
right-click on an image file in Nautilus, it displays the file
resolution like this:

> Resolution: 1600x1200 pixels

It should explicitly label which number is width and which is height.

Perhaps like this:

> Width: 1600 pixels
> Height: 1200 pixels"

Proposed patch attached.

Christian Neumair <chris gnome-de org>
Index: src/nautilus-image-properties-page.c
RCS file: /cvs/gnome/nautilus/src/nautilus-image-properties-page.c,v
retrieving revision 1.3
diff -u -p -r1.3 nautilus-image-properties-page.c
--- src/nautilus-image-properties-page.c	27 Jan 2005 16:51:15 -0000	1.3
+++ src/nautilus-image-properties-page.c	10 Jul 2005 15:28:09 -0000
@@ -246,10 +246,16 @@ load_finished (NautilusImagePropertiesPa
 		name = gdk_pixbuf_format_get_name (format);
 		desc = gdk_pixbuf_format_get_description (format);
-		g_string_append_printf (str, ngettext ("<b>Image Type:</b> %s (%s)\n<b>Resolution:</b> %dx%d pixels\n",
-						       "<b>Image Type:</b> %s (%s)\n<b>Resolution:</b> %dx%d pixels\n",
+		g_string_append_printf (str, _("<b>Image Type:</b> %s (%s)\n"),
+					name, desc);
+		g_string_append_printf (str, ngettext ("<b>Width:</b> %d pixel\n",
+						       "<b>Width:</b> %d pixels\n",
+						       page->details->width),
+					page->details->width);
+		g_string_append_printf (str, ngettext ("<b>Height:</b> %d pixel\n",
+						       "<b>Height:</b> %d pixels\n",
-					name, desc, page->details->width, page->details->height);
+					page->details->height);
 		g_free (name);
 		g_free (desc);

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]