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/bookmarks/ephy-topic-action.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/bookmarks/ephy-topic-action.c')
-rw-r--r-- | src/bookmarks/ephy-topic-action.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index 94f63f9e0..0ef63a50d 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -126,7 +126,8 @@ create_tool_item (GtkAction *action) gtk_widget_show (button); gtk_container_add (GTK_CONTAINER (item), button); g_object_set_data (G_OBJECT (item), "button", button); - g_object_set_data (G_OBJECT (button), "gtk-action", action); + gtk_activatable_set_related_action (GTK_ACTIVATABLE (button), + action); arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); gtk_widget_show (arrow); @@ -375,8 +376,7 @@ button_enter_cb (GtkWidget *button, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (active_button))) { EphyTopicAction *active_action; - active_action = g_object_get_data (G_OBJECT (active_button), - "gtk-action"); + active_action = gtk_widget_get_action (GTK_WIDGET (active_button)); erase_popup (active_action); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (active_button), FALSE); |