parent
befc9fdc78
commit
f308caea74
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue