Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_dnd.c
Log Message:
Check if the gadcon has a shelf set.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_dnd.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- e_dnd.c 26 Feb 2008 09:47:50 -0000 1.67
+++ e_dnd.c 24 Mar 2008 12:48:33 -0000 1.68
@@ -613,17 +613,19 @@
static void
_e_drag_win_show(E_Drop_Handler *h)
{
+ E_Shelf *shelf;
+
if (h->obj)
{
switch (h->obj->type)
{
case E_GADCON_TYPE:
- /* FIXME: this is wrong - it ASSUMES the holder is a shelf */
-// e_shelf_toggle(e_gadcon_shelf_get((E_Gadcon *)(h->obj)), 1);
+ shelf = e_gadcon_shelf_get((E_Gadcon *)(h->obj));
+ if (shelf) e_shelf_toggle(shelf, 1);
break;
case E_GADCON_CLIENT_TYPE:
- /* FIXME: this is wrong - it ASSUMES the holder is a shelf */
-// e_shelf_toggle(e_gadcon_shelf_get(((E_Gadcon_Client
*)(h->obj))->gadcon), 1);
+ shelf = e_gadcon_shelf_get(((E_Gadcon_Client *)(h->obj))->gadcon);
+ if (shelf) e_shelf_toggle(shelf, 1);
break;
/* FIXME: add more types as needed */
default:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs