From 3c1c44191a444fad27896c1de3a6d1af50045c06 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 24 Nov 2009 21:16:37 +0000 Subject: [PATCH] Check for mouse button number so we can get a right-click menu. SVN revision: 43959 --- src/modules/conf/e_mod_main.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modules/conf/e_mod_main.c b/src/modules/conf/e_mod_main.c index f26f64dde..7f9eab0b5 100644 --- a/src/modules/conf/e_mod_main.c +++ b/src/modules/conf/e_mod_main.c @@ -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) + { + + } } /**/ /***************************************************************************/