[eog] Make EogPluginManager GSEAL-compatible



commit d7a07bd0985e9540f869ebdfc6b4a950828c1df4
Author: Felix Riemann <friemann gnome org>
Date:   Fri Jan 29 21:15:14 2010 +0100

    Make EogPluginManager GSEAL-compatible

 src/eog-plugin-manager.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-plugin-manager.c b/src/eog-plugin-manager.c
index 1ef5de6..0edd3a9 100644
--- a/src/eog-plugin-manager.c
+++ b/src/eog-plugin-manager.c
@@ -563,17 +563,19 @@ menu_position_under_widget (GtkMenu  *menu,
 {
 	GtkWidget *w = GTK_WIDGET (user_data);
 	GtkRequisition requisition;
+	GtkAllocation allocation;
 
 	gdk_window_get_origin (gtk_widget_get_window (w), x, y);
 	gtk_widget_size_request (GTK_WIDGET (menu), &requisition);
+	gtk_widget_get_allocation (w, &allocation);
 
 	if (gtk_widget_get_direction (w) == GTK_TEXT_DIR_RTL) {
-		*x += w->allocation.x + w->allocation.width - requisition.width;
+		*x += allocation.x + allocation.width - requisition.width;
 	} else {
-		*x += w->allocation.x;
+		*x += allocation.x;
 	}
 
-	*y += w->allocation.y + w->allocation.height;
+	*y += allocation.y + allocation.height;
 
 	*push_in = TRUE;
 }



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