Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_notebook_test.c
Log Message:
- retool the notebook. the guts have pretty much changed completely
- it now uses other standard widgets to do its layout.
- there are 2 isseus. alignment dosen't seem to work for the tabs (i think
this is fill policy based)
- the tab_position only works if you call it while the notebook is empty.
This is a box bug, not a notebook bug.
- fix the notebook test to actually do a prepend on hitting the prepend
button instead of doing an append
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_notebook_test.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- ewl_notebook_test.c 23 Aug 2004 00:32:36 -0000 1.27
+++ ewl_notebook_test.c 8 Dec 2004 21:35:25 -0000 1.28
@@ -187,7 +187,7 @@
}
void
-__notebook_generate_page(Ewl_Widget * notebook)
+__notebook_generate_page(Ewl_Widget * notebook, int type)
{
Ewl_Widget *main_vbox, *hbox;
Ewl_Widget *tab;
@@ -236,7 +236,10 @@
__notebook_remove_visible_page, notebook);
ewl_widget_show(button[2]);
- ewl_notebook_page_append(EWL_NOTEBOOK(notebook), tab, main_vbox);
+ if (!type)
+ ewl_notebook_page_append(EWL_NOTEBOOK(notebook), tab,
main_vbox);
+ else
+ ewl_notebook_page_prepend(EWL_NOTEBOOK(notebook), tab,
main_vbox);
return;
}
@@ -244,7 +247,7 @@
void
__notebook_append_page(Ewl_Widget * w, void *ev_data, void *user_data)
{
- __notebook_generate_page(user_data);
+ __notebook_generate_page(user_data, 0);
return;
w = NULL;
@@ -255,7 +258,7 @@
void
__notebook_prepend_page(Ewl_Widget * w, void *ev_data, void *user_data)
{
- __notebook_generate_page(user_data);
+ __notebook_generate_page(user_data, 1);
return;
w = NULL;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs