aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-15 21:20:29 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-15 21:20:29 +0800
commitc563c28b882b24d4cb6218a48cfb0d797d5184ab (patch)
tree3f102eb913f4bcd79d945d7f9fecef6fe76adadf /src
parent5a927d2793acbd7ca212812048e41891cda8a6e9 (diff)
downloadgsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.tar
gsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.tar.gz
gsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.tar.bz2
gsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.tar.lz
gsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.tar.xz
gsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.tar.zst
gsoc2013-epiphany-c563c28b882b24d4cb6218a48cfb0d797d5184ab.zip
Fix file picker warnings.
2003-06-15 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/FilePicker.cpp: * embed/mozilla/FilePicker.h: * lib/egg/eggtreemodelfilter.c: (egg_tree_model_filter_fetch_child), (egg_tree_model_filter_remove_node), (egg_tree_model_filter_row_changed), (egg_tree_model_filter_row_inserted), (egg_tree_model_filter_row_deleted), (egg_real_tree_model_filter_convert_child_path_to_path), (egg_tree_model_filter_refilter_helper): * src/window-commands.c: (window_cmd_file_open): Fix file picker warnings. 2
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 94e53474f..3ffc40582 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -347,26 +347,25 @@ window_cmd_file_open (EggAction *action,
dir, NULL, modeOpen,
&file, NULL, NULL);
- if (result == G_OK)
+ uri = gnome_vfs_uri_new (file);
+ if (uri)
{
- uri = gnome_vfs_uri_new (file);
- if (uri)
- {
+ retDir = gnome_vfs_uri_extract_dirname (uri);
- ephy_window_load_url(window, file);
+ /* set default open dir */
+ eel_gconf_set_string (CONF_STATE_OPEN_DIR,
+ retDir);
- retDir = gnome_vfs_uri_extract_dirname (uri);
+ g_free (retDir);
+ gnome_vfs_uri_unref (uri);
- /* set default open dir */
- eel_gconf_set_string (CONF_STATE_OPEN_DIR,
- retDir);
-
- g_free (retDir);
- gnome_vfs_uri_unref (uri);
- }
- g_free (file);
- }
+ if (result == G_OK)
+ {
+ ephy_window_load_url(window, file);
+ }
+ }
+ g_free (file);
g_free (dir);
}