Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_seeker.c ewl_seeker.h
Log Message:
Resize the preferred size of the seeker to work nicely with the default sizing
of its draggable.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_seeker.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- ewl_seeker.c 18 Mar 2004 06:16:31 -0000 1.53
+++ ewl_seeker.c 29 Mar 2004 05:54:59 -0000 1.54
@@ -60,6 +60,8 @@
EWL_FLAG_FILL_VSHRINK);
}
+ ewl_container_show_notify(EWL_CONTAINER(w), ewl_seeker_child_show_cb);
+
/*
* Create and add the button portion of the seeker
*/
@@ -538,3 +540,26 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+
+void ewl_seeker_child_show_cb(Ewl_Container *p, Ewl_Widget *w)
+{
+ int pw, ph;
+
+ Ewl_Seeker *s;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+
+ s = EWL_SEEKER(p);
+
+ pw = ewl_object_get_preferred_w(EWL_OBJECT(w));
+ ph = ewl_object_get_preferred_h(EWL_OBJECT(w));
+
+ if (s->orientation == EWL_ORIENTATION_HORIZONTAL)
+ pw *= s->range / s->step;
+ else
+ ph *= s->range / s->step;
+
+ ewl_object_set_preferred_size(EWL_OBJECT(p), pw, ph);
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_seeker.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ewl_seeker.h 18 Mar 2004 06:16:31 -0000 1.21
+++ ewl_seeker.h 29 Mar 2004 05:54:59 -0000 1.22
@@ -89,5 +89,6 @@
void *user_data);
void ewl_seeker_mouse_down_cb(Ewl_Widget * w, void *ev_data,
void *user_data);
+void ewl_seeker_child_show_cb(Ewl_Container *p, Ewl_Widget * w);
#endif /* __EWL_SEEKER_H__ */
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs