diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-02-12 21:56:23 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-02-12 21:56:23 +0800 |
commit | 4c7c5ddefbad876beb186e4f703920e7f28ab322 (patch) | |
tree | 72f6cdfa2ef1c2f526007b4adceddc86fc666573 | |
parent | b149b82e5ccccd4dd7cd24c6b01d67341f8a1b60 (diff) | |
download | gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.tar gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.tar.gz gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.tar.bz2 gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.tar.lz gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.tar.xz gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.tar.zst gsoc2013-epiphany-4c7c5ddefbad876beb186e4f703920e7f28ab322.zip |
Strdup the action name data.
2006-02-12 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmark-factory-action.c:
(build_menu_for_topic):
* src/bookmarks/ephy-topic-factory-action.c: (build_menu):
Strdup the action name data.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmark-factory-action.c | 4 | ||||
-rw-r--r-- | src/bookmarks/ephy-topic-factory-action.c | 4 |
3 files changed, 14 insertions, 2 deletions
@@ -1,5 +1,13 @@ 2006-02-12 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-bookmark-factory-action.c: + (build_menu_for_topic): + * src/bookmarks/ephy-topic-factory-action.c: (build_menu): + + Strdup the action name data. + +2006-02-12 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-open-tabs-action.c: (node_added_cb), (node_removed_cb): diff --git a/src/bookmarks/ephy-bookmark-factory-action.c b/src/bookmarks/ephy-bookmark-factory-action.c index 43c4683a0..8d684afa1 100644 --- a/src/bookmarks/ephy-bookmark-factory-action.c +++ b/src/bookmarks/ephy-bookmark-factory-action.c @@ -123,7 +123,9 @@ build_menu_for_topic (GtkWidget *placeholder, EggToolbarsModel *model, EphyNode name = ephy_node_get_property_string (node, EPHY_NODE_BMK_PROP_TITLE); item = gtk_menu_item_new_with_label (name); - g_object_set_data_full (G_OBJECT (item), "ephy-action", (gpointer) action, g_free); + /* FIXME: set the |node| instead here! */ + g_object_set_data_full (G_OBJECT (item), "ephy-action", + g_strdup (action), g_free); g_signal_connect (item, "activate", G_CALLBACK (activate_item_cb), placeholder); gtk_widget_show (item); diff --git a/src/bookmarks/ephy-topic-factory-action.c b/src/bookmarks/ephy-topic-factory-action.c index cb202c65c..16f6d1732 100644 --- a/src/bookmarks/ephy-topic-factory-action.c +++ b/src/bookmarks/ephy-topic-factory-action.c @@ -179,7 +179,9 @@ build_menu (GtkWidget *placeholder, EggToolbarsModel *model) name = ephy_node_get_property_string (node, EPHY_NODE_KEYWORD_PROP_NAME); item = gtk_menu_item_new_with_label (name); - g_object_set_data_full (G_OBJECT (item), "ephy-action", (gpointer) action, g_free); + /* FIXME: set the |node| instead here! */ + g_object_set_data_full (G_OBJECT (item), "ephy-action", + g_strdup (action), g_free); g_signal_connect (item, "activate", G_CALLBACK (activate_item_cb), placeholder); gtk_widget_show (item); |