Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/engines/ecore_evas


Modified Files:
        ecore_evas.c 


Log Message:
- reflect new ecore_evas changes for sticky callbacks


===================================================================
RCS file: /cvs/e/e17/proto/etk/src/engines/ecore_evas/ecore_evas.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_evas.c        27 Jul 2006 00:54:56 -0000      1.1
+++ ecore_evas.c        27 Jul 2006 16:28:00 -0000      1.2
@@ -55,6 +55,8 @@
 static void _window_resize_cb(Ecore_Evas *ecore_evas);
 static void _window_focus_in_cb(Ecore_Evas *ecore_evas);
 static void _window_focus_out_cb(Ecore_Evas *ecore_evas);
+static void _window_sticky_cb(Ecore_Evas *ecore_evas);
+static void _window_unsticky_cb(Ecore_Evas *ecore_evas);
 static void _window_delete_request_cb(Ecore_Evas *ecore_evas);
 
 static Etk_Engine engine_info = {
@@ -144,6 +146,8 @@
    ecore_evas_callback_resize_set(engine_data->ecore_evas, _window_resize_cb);
    ecore_evas_callback_focus_in_set(engine_data->ecore_evas, 
_window_focus_in_cb);
    ecore_evas_callback_focus_out_set(engine_data->ecore_evas, 
_window_focus_out_cb);
+   ecore_evas_callback_sticky_set(engine_data->ecore_evas, _window_sticky_cb);
+   ecore_evas_callback_unsticky_set(engine_data->ecore_evas, 
_window_unsticky_cb);
    ecore_evas_callback_delete_request_set(engine_data->ecore_evas, 
_window_delete_request_cb);
 }
 
@@ -449,6 +453,26 @@
    if (!(window = ETK_WINDOW(ecore_evas_data_get(ecore_evas, "etk_window"))))
      return;
    window->focus_out_cb(window);
+}
+
+/* Called when the window is made sticky */
+static void _window_sticky_cb(Ecore_Evas *ecore_evas)
+{
+   Etk_Window *window;
+   
+   if (!(window = ETK_WINDOW(ecore_evas_data_get(ecore_evas, "etk_window"))))
+     return;
+   window->sticky_cb(window);
+}
+
+/* Called when the window is made unsticky */
+static void _window_unsticky_cb(Ecore_Evas *ecore_evas)
+{
+   Etk_Window *window;
+   
+   if (!(window = ETK_WINDOW(ecore_evas_data_get(ecore_evas, "etk_window"))))
+     return;
+   window->unsticky_cb(window);
 }
 
 /* Called when the user wants to close the window */



-------------------------------------------------------------------------
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

Reply via email to