From b9492e9f705fe2a09fa2690d4b403d9604d1a226 Mon Sep 17 00:00:00 2001 From: Peter Harvey Date: Fri, 24 Feb 2006 14:11:11 +0000 Subject: src/bookmarks/ephy-bookmark-action.c 2006-02-24 Peter Harvey * src/bookmarks/ephy-bookmark-action.c Update the bookmark icon if the toolbar is reconfigured (happens when the theme changes). Everything else should be already handled by the class handler. --- src/bookmarks/ephy-bookmark-action.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index 4fc541e96..142a1dfa7 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -408,6 +408,13 @@ drag_data_get_cb (GtkWidget *widget, gtk_selection_data_set (selection_data, selection_data->target, 8, (unsigned char *)location, strlen (location)); } +static void +toolbar_reconfigured_cb (GtkToolItem *toolitem, + GtkAction *action) +{ + ephy_bookmark_action_sync_icon (action, NULL, GTK_WIDGET (toolitem)); +} + static void connect_proxy (GtkAction *action, GtkWidget *proxy) @@ -431,6 +438,8 @@ connect_proxy (GtkAction *action, ephy_bookmark_action_sync_label (action, NULL, proxy); g_signal_connect_object (action, "notify::label", G_CALLBACK (ephy_bookmark_action_sync_label), proxy, 0); + g_signal_connect (proxy, "toolbar-reconfigured", + G_CALLBACK (toolbar_reconfigured_cb), action); button = GTK_WIDGET (g_object_get_data (G_OBJECT (proxy), "button")); g_signal_connect (button, "clicked", G_CALLBACK (activate_cb), action); -- cgit v1.2.3