Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin
Modified Files:
ewl_paned_test.c
Log Message:
- update the paned test a bit. shows some of the issues with the paned
widget that need to be worked out
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_paned_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_paned_test.c 10 Oct 2005 15:37:07 -0000 1.4
+++ ewl_paned_test.c 18 Dec 2005 05:18:38 -0000 1.5
@@ -15,7 +15,7 @@
__create_paned_test_window(Ewl_Widget * w, void *ev_data __UNUSED__,
void *user_data __UNUSED__)
{
- Ewl_Widget *paned_win, *box, *pane, *o;
+ Ewl_Widget *paned_win, *box, *pane1, *pane2, *o;
paned_button = w;
@@ -41,22 +41,35 @@
ewl_container_child_append(EWL_CONTAINER(paned_win), box);
ewl_widget_show(box);
- pane = ewl_hpaned_new();
- ewl_container_child_append(EWL_CONTAINER(box), pane);
- ewl_widget_show(pane);
-
- ewl_paned_active_area_set(EWL_PANED(pane), EWL_POSITION_LEFT);
-
- o = ewl_text_new();
- ewl_text_text_set(EWL_TEXT(o), "left");
- ewl_container_child_append(EWL_CONTAINER(pane), o);
+ pane1 = ewl_vpaned_new();
+ ewl_container_child_append(EWL_CONTAINER(box), pane1);
+ ewl_widget_show(pane1);
+
+ ewl_paned_active_area_set(EWL_PANED(pane1), EWL_POSITION_TOP);
+
+ pane2 = ewl_hpaned_new();
+ ewl_container_child_append(EWL_CONTAINER(pane1), pane2);
+ ewl_widget_show(pane2);
+
+ ewl_paned_active_area_set(EWL_PANED(pane2), EWL_POSITION_LEFT);
+
+ o = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(o), "left");
+ ewl_container_child_append(EWL_CONTAINER(pane2), o);
+ ewl_widget_show(o);
+
+ ewl_paned_active_area_set(EWL_PANED(pane2), EWL_POSITION_RIGHT);
+
+ o = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(o), "right");
+ ewl_container_child_append(EWL_CONTAINER(pane2), o);
ewl_widget_show(o);
- ewl_paned_active_area_set(EWL_PANED(pane), EWL_POSITION_RIGHT);
+ ewl_paned_active_area_set(EWL_PANED(pane1), EWL_POSITION_BOTTOM);
- o = ewl_text_new();
- ewl_text_text_set(EWL_TEXT(o), "right");
- ewl_container_child_append(EWL_CONTAINER(pane), o);
+ o = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(o), "bottom");
+ ewl_container_child_append(EWL_CONTAINER(pane1), o);
ewl_widget_show(o);
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs