[Xfce4-commits] <xfce4-panel:master> Fix plugin dnd with locked panel and outside itembar.

Nick Schermer noreply at xfce.org
Tue Dec 21 21:22:01 CET 2010


Updating branch refs/heads/master
         to 0f4795a72eed99d77cd927fb79c387c3c2623a20 (commit)
       from f24985be06d4e5f78dac7cf3f607acf6215478c6 (commit)

commit 0f4795a72eed99d77cd927fb79c387c3c2623a20
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Dec 21 21:20:34 2010 +0100

    Fix plugin dnd with locked panel and outside itembar.

 panel/panel-itembar.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index d7874ef..4fea04b 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -835,12 +835,10 @@ panel_itembar_get_drop_index (PanelItembar *itembar,
 
   /* add the itembar position */
   alloc = &GTK_WIDGET (itembar)->allocation;
-  x += alloc->x;
-  y += alloc->y;
 
   /* return -1 if point is outside the widget allocation */
   if (x > alloc->width || y > alloc->height)
-    return -1;
+    return g_slist_length (itembar->children);
 
   for (li = itembar->children, idx = 0; li != NULL; li = g_slist_next (li))
     {



More information about the Xfce4-commits mailing list