[gthumb: 17/20] do not acces the evet_window attribute directly



commit cab896cb6b61bbb883783f449111ae6a1949a636
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu May 12 13:11:40 2011 +0200

    do not acces the evet_window attribute directly

 gthumb/gth-toggle-menu-tool-button.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-toggle-menu-tool-button.c b/gthumb/gth-toggle-menu-tool-button.c
index e22b49d..1bac796 100644
--- a/gthumb/gth-toggle-menu-tool-button.c
+++ b/gthumb/gth-toggle-menu-tool-button.c
@@ -497,8 +497,7 @@ menu_position_func (GtkMenu                 *menu,
 			*y -= menu_req.height;
 	}
 	else {
-		/*gdk_window_get_origin (gtk_button_get_event_window (GTK_BUTTON (widget)), x, y);*/
-		gdk_window_get_origin (GTK_BUTTON (widget)->event_window, x, y);
+		gdk_window_get_origin (gtk_button_get_event_window (GTK_BUTTON (widget)), x, y);
 
 		gtk_widget_size_request (widget, &req);
 



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