eog r4534 - in trunk: . src



Author: csaavedra
Date: Sun Apr 13 02:31:58 2008
New Revision: 4534
URL: http://svn.gnome.org/viewvc/eog?rev=4534&view=rev

Log:
2008-04-12  Claudio Saavedra  <csaavedra gnome org>

	* src/eog-thumb-view.c: (tb_on_query_tooltip_cb): Do not show
	image dimensions if this is not available.



Modified:
   trunk/ChangeLog
   trunk/src/eog-thumb-view.c

Modified: trunk/src/eog-thumb-view.c
==============================================================================
--- trunk/src/eog-thumb-view.c	(original)
+++ trunk/src/eog-thumb-view.c	Sun Apr 13 02:31:58 2008
@@ -432,18 +432,28 @@
 
 	type_str = g_content_type_get_description (mime_str);
 
-	tooltip_string = g_markup_printf_escaped ("<b><big>%s</big></b>\n"
-						  "%i x %i %s\n"
-						  "%s\n"
-						  "%s",
-						  eog_image_get_caption (image),
-						  width, 
-						  height, 
-						  ngettext ("pixel",
-						  	    "pixels",
-							    height), 
-						  bytes,
-						  type_str);
+	if (width > -1 && height > -1) {
+		tooltip_string = g_markup_printf_escaped ("<b><big>%s</big></b>\n"
+							  "%i x %i %s\n"
+							  "%s\n"
+							  "%s",
+							  eog_image_get_caption (image),
+							  width, 
+							  height, 
+							  ngettext ("pixel",
+								    "pixels",
+								    height), 
+							  bytes,
+							  type_str);
+	} else {
+		tooltip_string = g_markup_printf_escaped ("<b><big>%s</big></b>\n"
+							  "%s\n"
+							  "%s",
+							  eog_image_get_caption (image),
+							  bytes,
+							  type_str);
+
+	}
 
 #ifdef HAVE_EXIF
 	if (exif_data) {



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