Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_dnd.c 


Log Message:
Check whether the gadcon is on a shelf before doing shelf operation.
(Thanks to Dave Andreoli).

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_dnd.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -3 -r1.68 -r1.69
--- e_dnd.c     24 Mar 2008 12:48:33 -0000      1.68
+++ e_dnd.c     13 Jun 2008 09:14:20 -0000      1.69
@@ -637,15 +637,19 @@
 static void
 _e_drag_win_hide(E_Drop_Handler *h)
 {
+   E_Shelf *shelf;
+
    if (h->obj)
      {
        switch (h->obj->type)
          {
           case E_GADCON_TYPE:
-             e_shelf_toggle(e_gadcon_shelf_get((E_Gadcon *)(h->obj)), 0);
+             shelf = e_gadcon_shelf_get((E_Gadcon *)(h->obj));
+             if (shelf) e_shelf_toggle(shelf, 0);
              break;
           case E_GADCON_CLIENT_TYPE:
-             e_shelf_toggle(e_gadcon_shelf_get(((E_Gadcon_Client 
*)(h->obj))->gadcon), 0);
+             shelf = e_gadcon_shelf_get(((E_Gadcon_Client *)(h->obj))->gadcon);
+             if (shelf) e_shelf_toggle(shelf, 0);
              break;
             /* FIXME: add more types as needed */
           default:



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to