aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Harvey <peter.a.harvey@gmail.com>2006-02-24 22:11:11 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-02-24 22:11:11 +0800
commitb9492e9f705fe2a09fa2690d4b403d9604d1a226 (patch)
tree0ea60e5793383e7fc4778bf74da998fb96b8902e
parentf63a527a63c389a6cf8efb2e6c91736cf423ab6c (diff)
downloadgsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.tar
gsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.tar.gz
gsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.tar.bz2
gsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.tar.lz
gsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.tar.xz
gsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.tar.zst
gsoc2013-epiphany-b9492e9f705fe2a09fa2690d4b403d9604d1a226.zip
src/bookmarks/ephy-bookmark-action.c
2006-02-24 Peter Harvey <peter.a.harvey@gmail.com> * 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.
-rw-r--r--ChangeLog8
-rw-r--r--src/bookmarks/ephy-bookmark-action.c9
2 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ad0cca286..33c85a208 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2006-02-24 Peter Harvey <peter.a.harvey@gmail.com>
+ * 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.
+
+2006-02-24 Peter Harvey <peter.a.harvey@gmail.com>
+
* lib/egg/egg-editable-toolbar.c
Fix a bug where the visibility_paths were deleted on
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
@@ -409,6 +409,13 @@ drag_data_get_cb (GtkWidget *widget,
}
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);