[gedit] Use gtk_activatable_get_related_action instead of deprecated func.



commit 893d0b2d2fb9f9d05e7b02a3fe2e095eb866fa5c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Apr 12 19:05:15 2010 +0200

    Use gtk_activatable_get_related_action instead of deprecated func.

 gedit/gedit-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 9bee325..c4bf240 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -476,7 +476,7 @@ menu_item_select_cb (GtkMenuItem *proxy,
 	GtkAction *action;
 	char *message;
 
-	action = gtk_widget_get_action (GTK_WIDGET (proxy));
+	action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (proxy));
 	g_return_if_fail (action != NULL);
 
 	g_object_get (G_OBJECT (action), "tooltip", &message, NULL);



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