aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-21 00:52:49 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-21 00:52:49 +0800
commit5d5fe667968ae5e9b4a4fe97ba36a06a7616d718 (patch)
treef0a28b1067282fdc4d7aed8aabc1a2ad39cd2bf2 /src/prefs-dialog.c
parenta838f6d5ab82bac98a25fb3ce9cb2c0cd575146c (diff)
downloadgsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.tar
gsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.tar.gz
gsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.tar.bz2
gsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.tar.lz
gsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.tar.xz
gsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.tar.zst
gsoc2013-epiphany-5d5fe667968ae5e9b4a4fe97ba36a06a7616d718.zip
Set a title on NET_START (nicified url).
2003-06-20 Marco Pesenti Gritti <marco@it.gnome.org> * src/ephy-tab.c: (ephy_tab_net_state_cb), (ephy_tab_set_title): Set a title on NET_START (nicified url). * src/prefs-dialog.c: (prefs_homepage_current_button_clicked_cb): * src/session.c: (save_tab): * src/window-commands.c: (window_cmd_file_send_to), (window_cmd_file_bookmark_page): Use embed_get_location when we want the real location, tab can contain user changes.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 7b982e96f..6a4830103 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -1155,15 +1155,18 @@ prefs_homepage_current_button_clicked_cb (GtkWidget *button,
EphyDialog *dialog)
{
EphyWindow *window;
- EphyTab *tab;
+ EphyEmbed *embed;
+ char *location;
window = ephy_shell_get_active_window (ephy_shell);
g_return_if_fail (window != NULL);
- tab = ephy_window_get_active_tab (window);
- g_return_if_fail (tab != NULL);
+ embed = ephy_window_get_active_embed (window);
+ g_return_if_fail (embed != NULL);
- set_homepage_entry (dialog, ephy_tab_get_location (tab));
+ ephy_embed_get_location (embed, TRUE, &location);
+ set_homepage_entry (dialog, location);
+ g_free (location);
}
void