Enlightenment CVS committal
Author : urandom
Project : e_modules
Module : winselector
Dir : e_modules/winselector
Modified Files:
e_mod_main.c
Log Message:
minor tweaks
===================================================================
RCS file: /cvs/e/e_modules/winselector/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c 17 Sep 2006 17:32:34 -0000 1.5
+++ e_mod_main.c 23 Sep 2006 14:18:12 -0000 1.6
@@ -43,6 +43,7 @@
static int _window_cb_focus_in(void *data, int type, void *event);
static int _window_cb_focus_out(void *data, int type, void *event);
static int _window_cb_icon_change(void *data, int type, void *event);
+static int _window_cb_border_remove(void *data, int type, void *event);
static void _focus_in(E_Border *bd, Instance *inst);
static void _focus_out(Instance *inst);
@@ -82,6 +83,8 @@
(ECORE_X_EVENT_WINDOW_FOCUS_OUT, _window_cb_focus_out, inst));
handlers = evas_list_append (handlers, ecore_event_handler_add
(E_EVENT_BORDER_ICON_CHANGE, _window_cb_icon_change, inst));
+ handlers = evas_list_append (handlers, ecore_event_handler_add
+ (E_EVENT_BORDER_REMOVE, _window_cb_border_remove, inst));
evas_object_event_callback_add (o, EVAS_CALLBACK_MOUSE_DOWN,
_button_cb_mouse_down, inst);
return gcc;
@@ -217,6 +220,7 @@
E_Menu *m;
m = e_menu_new();
+ e_menu_title_set(m, _("Applications"));
e_menu_pre_activate_callback_set(m, _win_menu_pre_cb, inst);
return m;
}
@@ -428,6 +432,21 @@
if (!(bd = ev->border)) return 1;
_focus_in(bd, inst);
+ return 1;
+}
+
+static int _window_cb_border_remove(void *data, int type, void *event)
+{
+ E_Event_Border_Remove *ev;
+ E_Border *bd;
+ Instance *inst;
+
+ ev = event;
+ inst = data;
+ if (!(bd = ev->border)) return 1;
+
+ _focus_out(inst);
+
return 1;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs