Check if the gadcon has a shelf set.

SVN revision: 34107
This commit is contained in:
Sebastian Dransfeld 2008-03-24 12:48:33 +00:00
parent befc9fdc78
commit f308caea74
1 changed files with 6 additions and 4 deletions

View File

@ -613,17 +613,19 @@ _e_drag_win_matches(E_Drop_Handler *h, Ecore_X_Window win)
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: