Check for mouse button number so we can get a right-click menu.

SVN revision: 43959
This commit is contained in:
Christopher Michael 2009-11-24 21:16:37 +00:00
parent ad4fcc5a6a
commit 3c1c44191a
1 changed files with 11 additions and 2 deletions

View File

@ -111,10 +111,19 @@ _gc_id_new(E_Gadcon_Client_Class *client_class)
static void
_cb_mouse_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Up *ev;
E_Action *a;
a = e_action_find("configuration");
if ((a) && (a->func.go)) a->func.go(NULL, NULL);
ev = event_info;
if (ev->button == 1)
{
a = e_action_find("configuration");
if ((a) && (a->func.go)) a->func.go(NULL, NULL);
}
else if (ev->button == 3)
{
}
}
/**/
/***************************************************************************/