[libegg/spread-table-dnd] Fixed EggSpreadTableDnd to properly get rid of placeholders at drop time.



commit cdd954a7d6985ff03022ee63ba6f6ad66b24a019
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Apr 10 16:55:51 2011 +0900

    Fixed EggSpreadTableDnd to properly get rid of placeholders at drop time.
    
    Fixes a bug where if drag'n'drop happens before a drop target placeholder
    finishes animating the placeholder would stay there.

 libegg/spreadtable/eggspreadtablednd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libegg/spreadtable/eggspreadtablednd.c b/libegg/spreadtable/eggspreadtablednd.c
index cd12d41..ca528b7 100644
--- a/libegg/spreadtable/eggspreadtablednd.c
+++ b/libegg/spreadtable/eggspreadtablednd.c
@@ -439,7 +439,7 @@ egg_spread_table_dnd_drag_leave (GtkWidget         *widget,
 
   if (spread_table->priv->drop_target &&
       egg_placeholder_get_animating 
-      (EGG_PLACEHOLDER (spread_table->priv->drop_target)) == EGG_PLACEHOLDER_ANIM_NONE)
+      (EGG_PLACEHOLDER (spread_table->priv->drop_target)) != EGG_PLACEHOLDER_ANIM_OUT)
     {
       g_print ("[dest table %p] Drag leave animating out the placeholder (%p)\n", 
 	       widget, spread_table->priv->drop_target);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]