aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-28 02:18:04 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-28 02:18:04 +0800
commit648c4d43ce6d6e0e177825d80db430cb656b36d3 (patch)
tree15ac5050cd81a984e1ff30e2c58a947388b4be8f /src
parentfa8c6fe4a3d78d541bb28e3828a007238d9be3f9 (diff)
downloadgsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.tar
gsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.tar.gz
gsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.tar.bz2
gsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.tar.lz
gsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.tar.xz
gsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.tar.zst
gsoc2013-epiphany-648c4d43ce6d6e0e177825d80db430cb656b36d3.zip
2003-06-27 Marco Pesenti Gritti <marco@it.gnome.org>
* embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: * src/bookmarks/ephy-bookmarks-export.c: (add_topics_list), (ephy_bookmarks_export_rdf): * src/ephy-tab.c: (ephy_tab_address_cb): * src/ephy-window.c: (ephy_window_load_url): * src/window-commands.c: (window_cmd_file_open):
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c6
-rw-r--r--src/window-commands.c13
2 files changed, 10 insertions, 9 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 978074394..2db9f5871 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -562,15 +562,11 @@ ephy_tab_link_message_cb (EphyEmbed *embed,
}
static void
-ephy_tab_address_cb (EphyEmbed *embed, EphyTab *tab)
+ephy_tab_address_cb (EphyEmbed *embed, char *address, EphyTab *tab)
{
if (tab->priv->address_expire == TAB_ADDRESS_EXPIRE_NOW)
{
- char *address;
-
- ephy_embed_get_location (embed, TRUE, &address);
ephy_tab_set_location (tab, address, TAB_ADDRESS_EXPIRE_NOW);
- g_free (address);
}
ephy_tab_set_link_message (tab, NULL);
diff --git a/src/window-commands.c b/src/window-commands.c
index 10e154293..5c2fefa98 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -304,8 +304,7 @@ void
window_cmd_file_open (EggAction *action,
EphyWindow *window)
{
- gchar *dir, *retDir;
- gchar *file;
+ char *dir, *retDir, *file, *uri_spec;
GnomeVFSURI *uri;
GtkWidget *wmain;
EphyEmbedShell *embed_shell;
@@ -328,15 +327,20 @@ window_cmd_file_open (EggAction *action,
dir, NULL, modeOpen,
&file, NULL, NULL);
- uri = gnome_vfs_uri_new (file);
+ uri_spec = gnome_vfs_make_uri_from_input (file);
+ uri = gnome_vfs_uri_new (uri_spec);
if (uri)
{
+ char *unescaped_dir;
+
retDir = gnome_vfs_uri_extract_dirname (uri);
+ unescaped_dir = gnome_vfs_unescape_string (retDir, "/");
/* set default open dir */
eel_gconf_set_string (CONF_STATE_OPEN_DIR,
- retDir);
+ unescaped_dir);
+ g_free (unescaped_dir);
g_free (retDir);
gnome_vfs_uri_unref (uri);
@@ -346,6 +350,7 @@ window_cmd_file_open (EggAction *action,
}
}
+ g_free (uri_spec);
g_free (file);
g_free (dir);
}