Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_window.c
Log Message:
Make the window configure callback a little more useful.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_window.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -3 -r1.81 -r1.82
--- ewl_window.c 13 Jul 2004 17:54:02 -0000 1.81
+++ ewl_window.c 16 Jul 2004 20:18:57 -0000 1.82
@@ -321,6 +321,8 @@
* Override the default configure callbacks since the window
* has special needs for placement.
*/
+ ewl_callback_del(EWL_WIDGET(w), EWL_CALLBACK_CONFIGURE,
+ ewl_overlay_configure_cb);
ewl_callback_prepend(EWL_WIDGET(w), EWL_CALLBACK_CONFIGURE,
ewl_window_configure_cb, NULL);
@@ -433,6 +435,7 @@
fbinfo->info.rotation = 0;
evas_engine_info_set(evas, (Evas_Engine_Info *)fbinfo);
printf("Using the fb engine\n");
+ ewl_object_request_geometry(EWL_OBJECT(w), 0, 0, 240, 320);
}
else
#endif
@@ -571,6 +574,7 @@
void ewl_window_configure_cb(Ewl_Widget * w, void *ev_data, void *user_data)
{
Ewl_Window *win;
+ Ewl_Object *child;
int width, height;
DENTER_FUNCTION(DLEVEL_STABLE);
@@ -630,5 +634,20 @@
ewl_object_get_current_y(EWL_OBJECT(w)),
width, height);
+ /*
+ * Configure each of the child widgets.
+ */
+ ecore_list_goto_first(EWL_CONTAINER(w)->children);
+ while ((child = ecore_list_next(EWL_CONTAINER(w)->children))) {
+ /*
+ * Try to give the child the full size of the window from it's
+ * base position. The object will constrict it based on the
+ * fill policy. Don't add the TOP and LEFT insets since
+ * they've already been accounted for.
+ */
+ ewl_object_place(child, CURRENT_X(w), CURRENT_Y(w),
+ CURRENT_W(w), CURRENT_H(w));
+ }
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs