aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-dnd.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-30 19:52:45 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-30 19:52:45 +0800
commita28245ea668203b1b2ffabb0b054660e88986a3f (patch)
treea5c2d1a9d1967d21d622839f6869c00e5debfaeb /lib/ephy-dnd.c
parent956c01fa73fe077bcec0d9cb92d6284dabc037bc (diff)
downloadgsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.tar
gsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.tar.gz
gsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.tar.bz2
gsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.tar.lz
gsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.tar.xz
gsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.tar.zst
gsoc2013-epiphany-a28245ea668203b1b2ffabb0b054660e88986a3f.zip
Add a title param to dnd iterator and remove unused screen location
2003-10-30 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-dnd.c: (add_one_netscape_url), (add_one_uri), (add_one_topic): * lib/ephy-dnd.h: * lib/widgets/ephy-tree-model-sort.c: (each_property_get_data_binder): * src/ephy-favicon-action.c: (each_url_get_data_binder): Add a title param to dnd iterator and remove unused screen location params.
Diffstat (limited to 'lib/ephy-dnd.c')
-rw-r--r--lib/ephy-dnd.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/ephy-dnd.c b/lib/ephy-dnd.c
index a9e4b0c33..857dd26df 100644
--- a/lib/ephy-dnd.c
+++ b/lib/ephy-dnd.c
@@ -31,18 +31,24 @@
* GMC also fails to do this as well.
*/
static void
-add_one_netscape_url (const char *url, int x, int y, int w, int h, gpointer data)
+add_one_netscape_url (const char *url, const char *title, gpointer data)
{
GString *result;
result = (GString *) data;
- if (result->len == 0) {
+ if (result->len == 0)
+ {
g_string_append (result, url);
+ if (title)
+ {
+ g_string_append (result, "\n");
+ g_string_append (result, title);
+ }
}
}
static void
-add_one_uri (const char *uri, int x, int y, int w, int h, gpointer data)
+add_one_uri (const char *uri, const char *title, gpointer data)
{
GString *result;
@@ -53,7 +59,7 @@ add_one_uri (const char *uri, int x, int y, int w, int h, gpointer data)
}
static void
-add_one_topic (const char *uri, int x, int y, int w, int h, gpointer data)
+add_one_topic (const char *uri, const char *title, gpointer data)
{
GString *result;