diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-menu.c | 4 | ||||
-rw-r--r-- | src/bookmarks/ephy-topics-palette.c | 10 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/bookmarks/ephy-bookmarks-menu.c b/src/bookmarks/ephy-bookmarks-menu.c index 15126fd11..71f7ba3b4 100644 --- a/src/bookmarks/ephy-bookmarks-menu.c +++ b/src/bookmarks/ephy-bookmarks-menu.c @@ -252,10 +252,12 @@ ephy_bookmarks_menu_build (GString *string, EphyNode *parent) /* Otherwise, build the menu with "Open in tabs". */ else { + char *name; + append_menu (string, topics, children, flags); g_ptr_array_free (topics, TRUE); - char *name = ephy_open_tabs_action_name (node); + name = ephy_open_tabs_action_name (node); g_string_append_printf (string, "<separator/><menuitem action=\"%s\" name=\"OpenTabs\"/>", name); g_free (name); diff --git a/src/bookmarks/ephy-topics-palette.c b/src/bookmarks/ephy-topics-palette.c index ad2731dec..6c6f643aa 100644 --- a/src/bookmarks/ephy-topics-palette.c +++ b/src/bookmarks/ephy-topics-palette.c @@ -430,6 +430,7 @@ ephy_topics_palette_constructor (GType type, priv->store = gtk_list_store_new (COLUMNS, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_INT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN); gtk_tree_view_set_model (GTK_TREE_VIEW (object), GTK_TREE_MODEL (priv->store)); + g_object_unref (priv->store); column = gtk_tree_view_column_new (); @@ -464,14 +465,6 @@ ephy_topics_palette_init (EphyTopicsPalette *palette) palette->priv = EPHY_TOPICS_PALETTE_GET_PRIVATE (palette); } -static void -ephy_topics_palette_finalize (GObject *object) -{ - EphyTopicsPalette *palette = EPHY_TOPICS_PALETTE (object); - - parent_class->finalize (object); -} - GtkWidget * ephy_topics_palette_new (EphyBookmarks *bookmarks, EphyNode *bookmark) @@ -498,7 +491,6 @@ ephy_topics_palette_class_init (EphyTopicsPaletteClass *klass) object_class->set_property = ephy_topics_palette_set_property; object_class->constructor = ephy_topics_palette_constructor; - object_class->finalize = ephy_topics_palette_finalize; g_object_class_install_property (object_class, PROP_BOOKMARKS, |