[gthumb] fixed navigator for svg images



commit 05744db6124d66e57a943061664196ac1ba3378c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jan 22 16:26:30 2012 +0100

    fixed navigator for svg images
    
    use the original size, instead of the surface size

 gthumb/gth-image-navigator.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-image-navigator.c b/gthumb/gth-image-navigator.c
index 6c9082e..b8848c1 100644
--- a/gthumb/gth-image-navigator.c
+++ b/gthumb/gth-image-navigator.c
@@ -617,8 +617,9 @@ navigator_event_area_button_press_event_cb (GtkWidget      *widget,
 
 	nav_popup->x_root = event->x_root;
 	nav_popup->y_root = event->y_root;
-	nav_popup->image_width = gth_image_viewer_get_image_width (GTH_IMAGE_VIEWER (self->priv->viewer));
-	nav_popup->image_height = gth_image_viewer_get_image_height (GTH_IMAGE_VIEWER (self->priv->viewer));
+	gth_image_viewer_get_original_size (GTH_IMAGE_VIEWER (self->priv->viewer),
+					    &nav_popup->image_width,
+					    &nav_popup->image_height);
 	update_popup_geometry (nav_popup);
 
 	g_signal_connect (G_OBJECT (nav_popup->popup_win),



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