diff options
author | Christopher James Lahey <clahey@ximian.com> | 2004-01-23 03:23:06 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2004-01-23 03:23:06 +0800 |
commit | 8205e18cb651de99de58b7ea5779bc3fbaea69b5 (patch) | |
tree | 175904ff2446561fcbf509e06f977c1510802569 /src/ephy-shell.c | |
parent | 416aef90dd0cc909929d6a7357107158cdf138f5 (diff) | |
download | gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.tar gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.tar.gz gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.tar.bz2 gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.tar.lz gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.tar.xz gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.tar.zst gsoc2013-epiphany-8205e18cb651de99de58b7ea5779bc3fbaea69b5.zip |
New function to get temp directory and moved ephy_shell_delete_on_exit to
2004-01-22 Christopher James Lahey <clahey@ximian.com>
* lib/ephy-file-helpers.c, lib/ephy-file-helpers.h
(ephy_file_tmp_directory, ephy_file_delete_on_exit): New function
to get temp directory and moved ephy_shell_delete_on_exit to here.
* lib/widgets/ephy-location-entry.c: Changed how this goes about
showing itself when hidden and activated.
* src/ephy-shell.c, src/ephy-shell.h (ephy_shell_delete_on_exit):
Moved to ephy_file_delete_on_exit.
* src/window-commands.c: Changed ephy_shell_delete_on_exit to
ephy_file_delete_on_exit. Used ephy_file_tmp_directory to save
source files for viewing in a directory that isn't world readable.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 47b51f7c8..8d65f60cb 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -432,15 +432,6 @@ ephy_shell_startup (EphyShell *shell, } static void -delete_files (GList *l) -{ - for (; l != NULL; l = l->next) - { - unlink (l->data); - } -} - -static void ephy_shell_finalize (GObject *object) { EphyShell *shell = EPHY_SHELL (object); @@ -456,10 +447,6 @@ ephy_shell_finalize (GObject *object) LOG ("Unref extension manager") g_object_unref (shell->priv->extensions_manager); - delete_files (shell->priv->del_on_exit); - g_list_foreach (shell->priv->del_on_exit, (GFunc)g_free, NULL); - g_list_free (shell->priv->del_on_exit); - LOG ("Unref toolbars model") if (shell->priv->toolbars_model) { @@ -836,10 +823,3 @@ ephy_shell_get_print_setup_dialog (EphyShell *shell) return shell->priv->print_setup_dialog; } - -void -ephy_shell_delete_on_exit (EphyShell *shell, const char *path) -{ - shell->priv->del_on_exit = g_list_append (shell->priv->del_on_exit, - g_strdup (path)); -} |