diff options
author | Xan Lopez <xan@src.gnome.org> | 2009-01-24 01:19:05 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2009-01-24 01:19:05 +0800 |
commit | 7856157fb1002cdbe3f03076f67fb1c9c5478f2e (patch) | |
tree | f2ab4cf4d7b29de720e041ca8342db8213f89e54 /src/ephy-window.c | |
parent | ef807369e3fb6d96f6f0f03d9ed7ed4e73108b20 (diff) | |
download | gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.tar gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.tar.gz gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.tar.bz2 gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.tar.lz gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.tar.xz gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.tar.zst gsoc2013-epiphany-7856157fb1002cdbe3f03076f67fb1c9c5478f2e.zip |
Do not use 'gtk-action' object data to get the associated GtkAction for a widget.
It's an implementation detail and will go away soon. Use documented APIs instead.
svn path=/trunk/; revision=8723
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 219fb333d..ea3ed7497 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1281,7 +1281,7 @@ menu_item_select_cb (GtkMenuItem *proxy, GtkAction *action; char *message; - action = g_object_get_data (G_OBJECT (proxy), "gtk-action"); + action = gtk_widget_get_action (GTK_WIDGET (proxy)); g_return_if_fail (action != NULL); g_object_get (action, "tooltip", &message, NULL); @@ -1314,7 +1314,7 @@ tool_item_enter_cb (GtkWidget *proxy, item = GTK_TOOL_ITEM (gtk_widget_get_ancestor (proxy, GTK_TYPE_TOOL_ITEM)); - action = g_object_get_data (G_OBJECT (item), "gtk-action"); + action = gtk_widget_get_action (GTK_WIDGET (item)); g_return_val_if_fail (action != NULL, FALSE); g_object_get (action, "tooltip", &message, NULL); |