aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-24 22:48:34 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-24 22:48:34 +0800
commitb0f66eed569bdc92c55cb8c39f62b5694b7f62b3 (patch)
tree16b2f0a1106cdf05e2a7a05c0572f656307a1e2e /src/ephy-tab.c
parent459e4b6f3a76d3904c84127b1147a14676586ed7 (diff)
downloadgsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.tar
gsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.tar.gz
gsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.tar.bz2
gsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.tar.lz
gsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.tar.xz
gsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.tar.zst
gsoc2013-epiphany-b0f66eed569bdc92c55cb8c39f62b5694b7f62b3.zip
Implement the data part of the toolbar editor. Partial implementation of
2003-01-24 Marco Pesenti Gritti <marco@it.gnome.org> * NEWS: * configure.in: * data/ui/epiphany-toolbar.xml.in: * lib/egg/Makefile.am: * lib/widgets/Makefile.am: * lib/widgets/ephy-editable-toolbar.c: (ephy_editable_toolbar_get_type), (find_action), (add_action_to_list), (parse_item_list), (parse_toolbars), (load_defaults), (load_toolbar), (toolbar_list_to_xml), (toolbar_list_to_string), (do_merge), (ephy_editable_toolbar_set_merge), (ephy_editable_toolbar_set_property), (ephy_editable_toolbar_get_property), (ephy_editable_toolbar_class_init), (ephy_editable_toolbar_init), (ephy_editable_toolbar_save), (ephy_editable_toolbar_finalize), (ephy_editable_toolbar_new): * lib/widgets/ephy-editable-toolbar.h: * src/Makefile.am: * src/bookmarks/Makefile.am: * src/bookmarks/ephy-bookmark-action.c: (ephy_bookmark_action_get_type), (create_tool_item), (ephy_bookmark_action_sync_label), (connect_proxy), (ephy_bookmark_action_set_property), (ephy_bookmark_action_get_property), (ephy_bookmark_action_class_init), (ephy_bookmark_action_init), (ephy_bookmark_action_new): * src/bookmarks/ephy-bookmark-action.h: * src/ephy-tab.c: (ephy_tab_finalize), (ephy_tab_set_location): * src/toolbar.c: (toolbar_get_type), (toolbar_set_window), (editable_toolbar_request_action), (toolbar_init), (toolbar_finalize): * src/toolbar.h: Implement the data part of the toolbar editor. Partial implementation of Bookmark action. Try to fix crashes when switching tabs.
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 98f04fad1..9b3e53c5a 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -289,6 +289,8 @@ ephy_tab_finalize (GObject *object)
g_object_unref (tab->priv->event);
}
+ g_free (tab->priv->location);
+
g_free (tab->priv);
G_OBJECT_CLASS (parent_class)->finalize (object);
@@ -1001,10 +1003,10 @@ ephy_tab_get_favicon_url (EphyTab *tab)
void
ephy_tab_set_location (EphyTab *tab,
- char *location)
+ char *location)
{
if (tab->priv->location) g_free (tab->priv->location);
- tab->priv->location = location;
+ tab->priv->location = g_strdup (location);
}
void