aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-15 19:39:59 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-15 19:39:59 +0800
commit3e5ed541be61abd147053f4634b10695c4fb286c (patch)
tree090f2d5a7011a1423efccbda8b685692e5aee9de /lib
parent3552656ca81df22a50a4045199b959a87ed4d07f (diff)
downloadgsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.tar
gsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.tar.gz
gsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.tar.bz2
gsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.tar.lz
gsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.tar.xz
gsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.tar.zst
gsoc2013-epiphany-3e5ed541be61abd147053f4634b10695c4fb286c.zip
Add a title param to dnd iterator and remove unused screen location
2003-12-15 Christian Persch <chpe@cvs.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. (Backported from HEAD.)
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-dnd.c14
-rw-r--r--lib/ephy-dnd.h2
-rw-r--r--lib/widgets/ephy-tree-model-sort.c2
3 files changed, 12 insertions, 6 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;
diff --git a/lib/ephy-dnd.h b/lib/ephy-dnd.h
index 8f6a16a51..d65d2fd3c 100644
--- a/lib/ephy-dnd.h
+++ b/lib/ephy-dnd.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define EPHY_DND_TOPIC_TYPE "ephy_topic_node"
typedef void (* EphyDragEachSelectedItemDataGet) (const char *url,
- int x, int y, int w, int h,
+ const char *title,
gpointer data);
typedef void (* EphyDragEachSelectedItemIterator) (EphyDragEachSelectedItemDataGet iteratee,
diff --git a/lib/widgets/ephy-tree-model-sort.c b/lib/widgets/ephy-tree-model-sort.c
index 14096989b..7ba0934f4 100644
--- a/lib/widgets/ephy-tree-model-sort.c
+++ b/lib/widgets/ephy-tree-model-sort.c
@@ -190,7 +190,7 @@ each_property_get_data_binder (EphyDragEachSelectedItemDataGet iteratee,
LOG ("Data get %s", svalue)
- iteratee (svalue, -1, -1, -1, -1, data);
+ iteratee (svalue, NULL, data);
gtk_tree_path_free (path);
g_value_unset (&value);