Enlightenment CVS committal

Author  : moom
Project : e17
Module  : libs/etk

Dir     : e17/libs/etk/src/bin


Modified Files:
        etk_text_view_test.c 


Log Message:
* [Textview] Patch from ptomaine to add scrolling ability to the 
text-view. Thanks :)


===================================================================
RCS file: /cvs/e/e17/libs/etk/src/bin/etk_text_view_test.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- etk_text_view_test.c        6 Oct 2006 17:04:13 -0000       1.16
+++ etk_text_view_test.c        19 Feb 2007 20:54:55 -0000      1.17
@@ -72,6 +72,7 @@
    static Etk_Widget *win = NULL;
    Etk_Widget *vbox;
    Etk_Widget *text_view;
+   Etk_Widget *scrolled_view;
    
    if (win)
    {
@@ -134,8 +135,12 @@
             "<i>right_margin:</i> The right margin of the paragraph, in pixels"
       "</p>",
       ETK_TRUE);
+
+   scrolled_view = etk_scrolled_view_new();
+
+   etk_bin_child_set( ETK_BIN(scrolled_view), text_view );
    
-   etk_box_append(ETK_BOX(vbox), text_view, ETK_BOX_START, 
ETK_BOX_EXPAND_FILL, 0);
+   etk_box_append(ETK_BOX(vbox), scrolled_view, ETK_BOX_START, 
ETK_BOX_EXPAND_FILL, 0);
    
    etk_widget_show_all(win);
 }



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

Reply via email to