diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-shell.c | 32 |
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); |