Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin
Modified Files:
ewl_test.c ewl_text_editor_test.c ewl_tree_test.c
Log Message:
Add scrollbar to the text editor.
Fix some fill policies.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_test.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_test.c 18 Oct 2005 02:42:41 -0000 1.19
+++ ewl_test.c 3 Nov 2005 02:22:29 -0000 1.20
@@ -152,7 +152,8 @@
__create_iconbox_test_window,
"ewl_iconbox_test.c",
"Provides a widget for displaying icons\n"
- " in an arranged grid, or freeform, with
callback and label editing facilities.",
+ "in an arranged grid, or freeform,\n"
+ "with callback and label editing facilities.",
},
{
"Image",
@@ -328,8 +329,9 @@
ewl_tree_headers_set (EWL_TREE (main_tree), header);
ewl_container_child_append(EWL_CONTAINER(main_box), main_tree);
ewl_object_fill_policy_set (EWL_OBJECT (main_tree),
- EWL_FLAG_FILL_HSHRINK |
- EWL_FLAG_FILL_VFILL);
+ EWL_FLAG_FILL_HSHRINK |
+ EWL_FLAG_FILL_VSHRINK |
+ EWL_FLAG_FILL_VFILL);
ewl_widget_show(main_tree);
/*
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_text_editor_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_text_editor_test.c 3 Nov 2005 01:42:22 -0000 1.6
+++ ewl_text_editor_test.c 3 Nov 2005 02:22:29 -0000 1.7
@@ -58,7 +58,7 @@
__create_text_editor_test_window(Ewl_Widget *w, void *ev_data __UNUSED__,
void *user_data __UNUSED__)
{
- Ewl_Widget *win, *vbox, *hbox, *o;
+ Ewl_Widget *win, *vbox, *hbox, *scroll, *o;
text_editor_button = w;
@@ -139,8 +139,12 @@
ewl_widget_show(o);
}
+ scroll = ewl_scrollpane_new();
+ ewl_container_child_append(EWL_CONTAINER(vbox), scroll);
+ ewl_widget_show(scroll);
+
o = ewl_entry_new();
- ewl_container_child_append(EWL_CONTAINER(vbox), o);
+ ewl_container_child_append(EWL_CONTAINER(scroll), o);
ewl_widget_name_set(o, "entry");
ewl_entry_multiline_set(EWL_ENTRY(o), TRUE);
ewl_text_wrap_set(EWL_TEXT(o), TRUE);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_tree_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_tree_test.c 3 Oct 2005 06:43:07 -0000 1.3
+++ ewl_tree_test.c 3 Nov 2005 02:22:29 -0000 1.4
@@ -65,7 +65,7 @@
box = ewl_vbox_new();
ewl_container_child_append(EWL_CONTAINER(tree_win), box);
ewl_box_homogeneous_set(EWL_BOX(box), FALSE);
- ewl_object_fill_policy_set(EWL_OBJECT(box), EWL_FLAG_FILL_SHRINK);
+ ewl_object_fill_policy_set(EWL_OBJECT(box), EWL_FLAG_FILL_ALL);
ewl_widget_show(box);
hbox = ewl_hbox_new();
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs