aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-07-06 19:10:31 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-07-06 19:10:31 +0800
commit40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6 (patch)
treea541b202d605d31fef9cbffad59375bc6a2ac488 /src/ephy-shell.c
parentae2fee0cd7782a2ca8bc4189e422413186af7ec1 (diff)
downloadgsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.tar
gsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.tar.gz
gsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.tar.bz2
gsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.tar.lz
gsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.tar.xz
gsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.tar.zst
gsoc2013-epiphany-40b6ff9e29d8e36d3bb811bc5e1bd19af6dd36a6.zip
Make sure we ever save bookmarks after changes, so they dont get lost on
2003-07-06 Marco Pesenti Gritti <marco@it.gnome.org> * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import_mozilla), (ephy_bookmarks_import_xbel): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults), (save_bookmarks_delayed), (ephy_bookmarks_set_dirty), (bookmarks_changed_cb), (bookmarks_removed_cb), (ephy_bookmarks_init), (ephy_bookmarks_finalize), (ephy_bookmarks_add): * src/bookmarks/ephy-bookmarks.h: * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_add): * src/ephy-shell.c: (ephy_shell_finalize), (ephy_shell_get_toolbars_model): * src/ephy-toolbars-model.c: (item_added), (item_removed), (toolbar_added), (toolbar_removed), (ephy_toolbars_model_init), (ephy_toolbars_model_finalize): Make sure we ever save bookmarks after changes, so they dont get lost on crashes.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 0d9fac6f3..ab53ae065 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -198,18 +198,6 @@ ephy_shell_init (EphyShell *gs)
}
static void
-save_toolbars (EggToolbarsModel *model)
-{
- char *xml_file;
-
- xml_file = g_build_filename (ephy_dot_dir (),
- "ephy-toolbar.xml",
- NULL);
- egg_toolbars_model_save (model, xml_file);
- g_free (xml_file);
-}
-
-static void
ephy_shell_finalize (GObject *object)
{
EphyShell *gs;
@@ -226,7 +214,6 @@ ephy_shell_finalize (GObject *object)
LOG ("Unref toolbars model")
if (gs->priv->toolbars_model)
{
- save_toolbars (EGG_TOOLBARS_MODEL (gs->priv->toolbars_model));
g_object_unref (G_OBJECT (gs->priv->toolbars_model));
}
@@ -534,30 +521,11 @@ ephy_shell_get_toolbars_model (EphyShell *gs)
{
if (gs->priv->toolbars_model == NULL)
{
- char *xml_file;
- EggToolbarsModel *model;
EphyBookmarks *bookmarks;
bookmarks = ephy_shell_get_bookmarks (gs);
gs->priv->toolbars_model = ephy_toolbars_model_new (bookmarks);
- model = EGG_TOOLBARS_MODEL (gs->priv->toolbars_model);
-
- xml_file = g_build_filename (ephy_dot_dir (),
- "ephy-toolbar.xml",
- NULL);
- if (g_file_test (xml_file, G_FILE_TEST_EXISTS))
- {
- egg_toolbars_model_load (model, xml_file);
- }
- else
- {
- const char *default_xml;
-
- default_xml = ephy_file ("epiphany-toolbar.xml");
- egg_toolbars_model_load (model, default_xml);
- }
- g_free (xml_file);
g_object_set (bookmarks, "toolbars_model",
gs->priv->toolbars_model, NULL);