From c5f06422616bdbdcddf177d73484d2ea188c7300 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 25 Mar 2003 00:29:25 +0000 Subject: Missing bits from old commit. Missing bits from old commit. --- ChangeLog | 6 ++++++ src/ephy-window.c | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 911f4c092..09cb6f7bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-03-25 Xan Lopez + + * src/ephy-window.c: (ephy_window_selection_received_cb): + + Missing bits from old commit, don't know how the hell I missed this. + 2003-03-25 Marco Pesenti Gritti * TODO: diff --git a/src/ephy-window.c b/src/ephy-window.c index 649c9ded3..c66d1f6ed 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -367,13 +367,24 @@ ephy_window_selection_received_cb (GtkWidget *widget, guint time, EphyWindow *window) { EphyTab *tab; + const char *location; if (selection_data->length <= 0 || selection_data->data == NULL) return; tab = ephy_window_get_active_tab (window); - ephy_shell_new_tab (ephy_shell, window, tab, - selection_data->data, 0); + location = ephy_tab_get_location(tab); + + /* If this tab is not empty... */ + if (location != NULL && strcmp (location, "about:blank") != 0) + { + ephy_shell_new_tab (ephy_shell, window, tab, + selection_data->data, 0); + } + else + { + ephy_embed_load_url (ephy_tab_get_embed (tab), selection_data->data); + } } static void -- cgit v1.2.3