From 15199f1413ad4cd57f9af1ac7734272395cedf6f Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 10 Feb 2006 13:42:56 +0000 Subject: [PATCH] shutdown disabled for now. SVN revision: 20384 --- src/bin/e_gadcon.c | 5 +++++ src/bin/e_main.c | 5 +++-- src/modules/start/e_mod_main.c | 12 ------------ 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/bin/e_gadcon.c b/src/bin/e_gadcon.c index 8745b5610..73a5b2012 100644 --- a/src/bin/e_gadcon.c +++ b/src/bin/e_gadcon.c @@ -326,6 +326,11 @@ e_gadcon_canvas_zone_geometry_get(E_Gadcon *gc, int *x, int *y, int *w, int *h) E_OBJECT_TYPE_CHECK_RETURN(gc, E_GADCON_TYPE, 0); if (!gc->ecore_evas) return 0; ecore_evas_geometry_get(gc->ecore_evas, x, y, w, h); + if (gc->zone) + { + x -= gc->zone->x; + y -= gc->zone->y; + } return 1; } diff --git a/src/bin/e_main.c b/src/bin/e_main.c index eeabdc8a9..865c5a976 100644 --- a/src/bin/e_main.c +++ b/src/bin/e_main.c @@ -702,12 +702,13 @@ main(int argc, char **argv) /* Store current selected desktops */ _e_main_desk_save(); - +#if 0 /* unroll our stack of shutdown functions with exit code of 0 */ _e_main_shutdown(0); e_intl_shutdown(); - +#endif + /* if we were flagged to restart, then restart. */ if (restart) { diff --git a/src/modules/start/e_mod_main.c b/src/modules/start/e_mod_main.c index 4143a01dc..5e964ff66 100644 --- a/src/modules/start/e_mod_main.c +++ b/src/modules/start/e_mod_main.c @@ -112,8 +112,6 @@ _button_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info) zone = e_gadcon_zone_get(inst->gcc->gadcon); if (!zone) zone = e_util_zone_current_get(e_manager_current_get()); - x -= zone->x; - y -= zone->y; if (!inst->main_menu) inst->main_menu = e_int_menus_main_new(); if (inst->main_menu) @@ -128,25 +126,15 @@ _button_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info) { case E_GADCON_ORIENT_TOP: dir = E_MENU_POP_DIRECTION_DOWN; -// these make the menu pop off the panels' edge, not the module's object - not -// a very generic thing though. -// y = cy; -// h = ch; break; case E_GADCON_ORIENT_BOTTOM: dir = E_MENU_POP_DIRECTION_UP; -// y = cy; -// h = ch; break; case E_GADCON_ORIENT_LEFT: dir = E_MENU_POP_DIRECTION_RIGHT; -// x = cx; -// w = cw; break; case E_GADCON_ORIENT_RIGHT: dir = E_MENU_POP_DIRECTION_LEFT; -// x = cx; -// w = cw; break; default: break;