aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-list-view.c
diff options
context:
space:
mode:
authorShaun McCance <Shaun McCance>2009-09-19 03:11:44 +0800
committerShaun McCance <shaunm@gnome.org>2009-11-25 04:50:28 +0800
commit85e7ae3c96ccc9734f5f09371cd44817ff751ce6 (patch)
tree8ddc21f3f56cf07adc9440fea6aaaddbce8329cf /libempathy-gtk/empathy-contact-list-view.c
parent18be92ecfb97887044867643e130ee0ee7c6b3f8 (diff)
downloadgsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.tar
gsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.tar.gz
gsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.tar.bz2
gsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.tar.lz
gsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.tar.xz
gsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.tar.zst
gsoc2013-empathy-85e7ae3c96ccc9734f5f09371cd44817ff751ce6.zip
Setting reorderable on the contact list view to get row previews as drag icons
This is a hack. There's a comment explaining the hack. Read it.
Diffstat (limited to 'libempathy-gtk/empathy-contact-list-view.c')
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 78e1f9020..eb18acf0b 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -1080,9 +1080,14 @@ contact_list_view_setup (EmpathyContactListView *view)
GTK_TREE_MODEL (priv->store));
/* Setup view */
+ /* Setting reorderable is a hack that gets us row previews as drag icons
+ for free. We override all the drag handlers. It's tricky to get the
+ position of the drag icon right in drag_begin. GtkTreeView has special
+ voodoo for it, so we let it do the voodoo that he do.
+ */
g_object_set (view,
"headers-visible", FALSE,
- "reorderable", FALSE,
+ "reorderable", TRUE,
"show-expanders", FALSE,
NULL);