Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : apps/examine

Dir     : e17/apps/examine/src


Modified Files:
        examine.c 


Log Message:
- make examine compile with the new notebook api

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/examine/src/examine.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- examine.c   3 Dec 2005 02:15:18 -0000       1.36
+++ examine.c   5 Feb 2006 22:13:42 -0000       1.37
@@ -429,8 +429,7 @@
   ewl_widget_show(main_box);
 
   notebook = ewl_notebook_new();
-  ewl_notebook_tabs_position_set(EWL_NOTEBOOK(notebook), EWL_POSITION_TOP);
-  ewl_notebook_tabs_alignment_set(EWL_NOTEBOOK(notebook), EWL_FLAG_ALIGN_LEFT);
+  ewl_notebook_tabbar_alignment_set(EWL_NOTEBOOK(notebook), 
EWL_FLAG_ALIGN_LEFT);
   ewl_object_fill_policy_set(EWL_OBJECT(notebook), EWL_FLAG_FILL_ALL);
   ewl_container_child_append(EWL_CONTAINER(main_box), notebook);
   ewl_widget_show(notebook);
@@ -465,7 +464,7 @@
 Ewl_Widget     *
 add_tab(char *name)
 {
-  Ewl_Widget     *button, *scrollpane, *pane;
+  Ewl_Widget     *scrollpane, *pane;
   examine_panel  *new_panel;
 
   new_panel = panels;
@@ -475,11 +474,9 @@
     new_panel = new_panel->next;
   }
 
-  button = ewl_text_new();
-  ewl_text_text_set(EWL_TEXT(button), name);
-  ewl_widget_show(button);
-
   scrollpane = ewl_scrollpane_new();
+  ewl_container_child_append(EWL_CONTAINER(notebook), scrollpane);
+  ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(notebook), scrollpane, name);
   ewl_object_alignment_set(EWL_OBJECT(scrollpane), EWL_FLAG_ALIGN_TOP);
   ewl_widget_show(scrollpane);
 
@@ -490,7 +487,6 @@
   ewl_widget_show(pane);
 
   ewl_container_child_append(EWL_CONTAINER(scrollpane), pane);
-  ewl_notebook_page_prepend(EWL_NOTEBOOK(notebook), button, scrollpane);
 
   new_panel = malloc(sizeof(examine_panel));
   new_panel->name = strdup(name);




-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to