On Thu, 18 Sep 2008 02:42:39 +0800 Tick Chen <[EMAIL PROTECTED]> babbled:
excellent! thanks! patch in svn now! > Hi E-devel List, > I just created a patch that adding extra vertical and horizontal margins for > etk scrolled view. > > Sometime we may want to have some extra margin for a list (like ipod > touch does), and this patch provide this possiblility. > > After thinking for a while I think this part is much more scrolled_view > specific, I do not implement the scroll_margins_get and implement that > in etk_scrolled_view. Besides IMHO scroll_margins_get provide half > margins, it does not full fill my need. > We may be able remove scroll_margins_get from etk_widget, since no one use it > and it were little bit unfinished. > > There added four extra functions: > void etk_scrolled_view_extra_vmargin_set(Etk_Scrolled_View > *scrolled_view, int margin); > int etk_scrolled_view_extra_vmargin_get(Etk_Scrolled_View > *scrolled_view); > void etk_scrolled_view_extra_hmargin_set(Etk_Scrolled_View > *scrolled_view, int margin); > int etk_scrolled_view_extra_hmargin_get(Etk_Scrolled_View > *scrolled_view); > > The default extra margin is 0. It wont effect anything if you do not > touch that function. > You can setup the margin to vertical and horizontal with different > values. > > I also add some code to etk_scrolled_view_test.c. > It's very easy to use. > > Cheers, > Tick > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
