diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-07-17 21:20:10 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-07-17 21:20:10 +0800 |
commit | e8fbf999bcd5cc7bb8bf4e2b25885869a744ca43 (patch) | |
tree | d71c8ae37d29a5c2235e97bbb49872b02d6b8962 /src/ephy-favicon-action.c | |
parent | 3212871bff4999162a67e32c86990821e8c995ed (diff) | |
download | gsoc2013-epiphany-e8fbf999bcd5cc7bb8bf4e2b25885869a744ca43.tar.gz gsoc2013-epiphany-e8fbf999bcd5cc7bb8bf4e2b25885869a744ca43.tar.zst gsoc2013-epiphany-e8fbf999bcd5cc7bb8bf4e2b25885869a744ca43.zip |
Allow DND of URLs (from links or favicons or other apps...) to the
Allow DND of URLs (from links or favicons or other apps...) to the
bookmarks toolbar, fixes #116613 (HOORAY), thanks to marco and
chpe for the help.
Diffstat (limited to 'src/ephy-favicon-action.c')
-rw-r--r-- | src/ephy-favicon-action.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ephy-favicon-action.c b/src/ephy-favicon-action.c index 418c11ab8..376794cba 100644 --- a/src/ephy-favicon-action.c +++ b/src/ephy-favicon-action.c @@ -84,7 +84,9 @@ static void each_url_get_data_binder (EphyDragEachSelectedItemDataGet iteratee, gpointer iterator_context, gpointer data) { + const char *title; char *location; + char *netscape_url; EphyTab *tab; EphyEmbed *embed; EphyWindow *window = EPHY_WINDOW(iterator_context); @@ -92,9 +94,13 @@ each_url_get_data_binder (EphyDragEachSelectedItemDataGet iteratee, tab = ephy_window_get_active_tab (window); embed = ephy_tab_get_embed (tab); ephy_embed_get_location (embed, TRUE, &location); + title = ephy_tab_get_title (tab); - iteratee (location, -1, -1, -1, -1, data); + netscape_url = g_strconcat (location, "\n", title, NULL); + iteratee (netscape_url, -1, -1, -1, -1, data); + + g_free (netscape_url); g_free (location); } |