[Xfce4-commits] <xfce4-panel:devel> Properly pass through invalid drops, so the launcher can handle them.

Nick Schermer nick at xfce.org
Tue Aug 11 20:28:39 CEST 2009


Updating branch refs/heads/devel
         to 362a0a23a1ff77e351a05d6f3ca43a48b3df96af (commit)
       from 0f4f7b11e415f7ae5052a61a0acb94562866f4c9 (commit)

commit 362a0a23a1ff77e351a05d6f3ca43a48b3df96af
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Mar 5 22:32:39 2009 +0100

    Properly pass through invalid drops, so the launcher can handle them.

 panel/panel-application.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/panel/panel-application.c b/panel/panel-application.c
index 3bf7fec..190f8d5 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -873,8 +873,7 @@ panel_application_drag_motion (GtkWidget        *itembar,
         }
       else
         {
-          /* not a valid list of uris */
-          return TRUE;
+          goto invalid_drop;
         }
     }
   else if (target != GDK_NONE)
@@ -889,6 +888,8 @@ panel_application_drag_motion (GtkWidget        *itembar,
     }
   else
     {
+      invalid_drop:
+
       /* not a valid drop */
       gdk_drag_status (context, 0, drag_time);
 



More information about the Xfce4-commits mailing list