Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_enums.h ewl_misc.c ewl_window.c ewl_window.h Log Message: - move the window specific callbacks to be custom callbacks as you'll typically only have one or two implementations of these =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_enums.h,v retrieving revision 1.75 retrieving revision 1.76 diff -u -3 -r1.75 -r1.76 --- ewl_enums.h 16 Mar 2007 01:54:20 -0000 1.75 +++ ewl_enums.h 25 Mar 2007 05:11:44 -0000 1.76 @@ -16,7 +16,6 @@ */ enum Ewl_Callback_Type { - EWL_CALLBACK_EXPOSE, /**< Triggered when the window needs redrawing */ EWL_CALLBACK_REALIZE, /**< Event when a widget is first drawn */ EWL_CALLBACK_UNREALIZE, /**< When a widget is no longer drawn */ EWL_CALLBACK_SHOW, /**< A widget has been marked visible */ @@ -24,7 +23,6 @@ EWL_CALLBACK_OBSCURE, /**< Widget is offscreen */ EWL_CALLBACK_REVEAL, /**< Widget returned to screen */ EWL_CALLBACK_DESTROY, /**< The widget is freed */ - EWL_CALLBACK_DELETE_WINDOW, /**< The window is being closed */ EWL_CALLBACK_CONFIGURE, /**< The object is being resized */ EWL_CALLBACK_REPARENT, /**< A widget has been placed in a container */ EWL_CALLBACK_KEY_DOWN, /**< A key was pressed down */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -3 -r1.89 -r1.90 --- ewl_misc.c 25 Mar 2007 04:57:09 -0000 1.89 +++ ewl_misc.c 25 Mar 2007 05:11:44 -0000 1.90 @@ -250,6 +250,10 @@ } ecore_list_prepend(shutdown_queue, ewl_callbacks_shutdown); + /* allocate the two window callbacks */ + EWL_CALLBACK_EXPOSE = ewl_callback_type_add(); + EWL_CALLBACK_DELETE_WINDOW = ewl_callback_type_add(); + if (!ewl_theme_init()) { fprintf(stderr, "Could not setup Ewl Theme system.\n"); goto ERROR; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_window.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -3 -r1.76 -r1.77 --- ewl_window.c 16 Mar 2007 01:54:20 -0000 1.76 +++ ewl_window.c 25 Mar 2007 05:11:44 -0000 1.77 @@ -5,6 +5,8 @@ #include "ewl_macros.h" Ecore_List *ewl_window_list = NULL; +int EWL_CALLBACK_EXPOSE = 0; +int EWL_CALLBACK_DELETE_WINDOW = 0; /** * @return Returns a new window on success, or NULL on failure. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_window.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- ewl_window.h 16 Mar 2007 01:54:20 -0000 1.33 +++ ewl_window.h 25 Mar 2007 05:11:44 -0000 1.34 @@ -64,6 +64,9 @@ Ewl_Window_Flags old_flags; /**< Flags used on our last state set call */ }; +extern int EWL_CALLBACK_EXPOSE; /**< Triggered when the window needs redrawing */ +extern int EWL_CALLBACK_DELETE_WINDOW; /**< The window is being closed */ + Ewl_Widget *ewl_window_new(void); int ewl_window_init(Ewl_Window *win); Ewl_Window *ewl_window_window_find(void *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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs