[eog-plugins] Display a bigger marker for the current image



commit bf9a57be8bd224e7f080193f02936fcdc5c65ddf
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Sat Feb 6 01:22:29 2010 -0500

    Display a bigger marker for the current image

 plugins/map/eog-map-plugin.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/map/eog-map-plugin.c b/plugins/map/eog-map-plugin.c
index 56fc967..895fb16 100644
--- a/plugins/map/eog-map-plugin.c
+++ b/plugins/map/eog-map-plugin.c
@@ -207,11 +207,22 @@ selection_changed_cb (EogThumbView *view,
 		champlain_view_center_on (CHAMPLAIN_VIEW (data->map),
 					  lat,
 					  lon);
+
+		/* Reset the previous selection */
+		if (data->marker)
+			update_marker_image (data->marker, GTK_ICON_SIZE_MENU);
+
 		data->marker = marker;
+		update_marker_image (data->marker, GTK_ICON_SIZE_LARGE_TOOLBAR);
 		gtk_widget_set_sensitive (data->jump_to_button, TRUE);
 	}
 	else {
 		gtk_widget_set_sensitive (data->jump_to_button, FALSE);
+
+		/* Reset the previous selection */
+		if (data->marker)
+			update_marker_image (data->marker, GTK_ICON_SIZE_MENU);
+
 		data->marker = NULL;
 	}
 



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