eog r4535 - in branches/gnome-2-22: . src



Author: csaavedra
Date: Sun Apr 13 02:34:49 2008
New Revision: 4535
URL: http://svn.gnome.org/viewvc/eog?rev=4535&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:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/eog-thumb-view.c

Modified: branches/gnome-2-22/src/eog-thumb-view.c
==============================================================================
--- branches/gnome-2-22/src/eog-thumb-view.c	(original)
+++ branches/gnome-2-22/src/eog-thumb-view.c	Sun Apr 13 02:34:49 2008
@@ -429,18 +429,28 @@
 
 	type_str = gnome_vfs_mime_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]