Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/tools/etk_prefs


Modified Files:
        etk_prefs.c 


Log Message:
[Etk_Prefs] use a paned widget instead of an hbox on the main window

===================================================================
RCS file: /cvs/e/e17/proto/etk/src/tools/etk_prefs/etk_prefs.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- etk_prefs.c 31 Aug 2006 17:32:06 -0000      1.1
+++ etk_prefs.c 31 Aug 2006 17:55:51 -0000      1.2
@@ -34,7 +34,7 @@
    Etk_Widget *dialog;
    Etk_Widget *tree;
    Etk_Widget *notebook;
-   Etk_Widget *hbox;
+   Etk_Widget *paned;
    Etk_Tree_Col *col;
    
    /* main dialog to hold everything */
@@ -50,7 +50,7 @@
    tree = etk_tree_new();
    etk_tree_headers_visible_set(ETK_TREE(tree), ETK_FALSE);
    etk_signal_connect("row_clicked", ETK_OBJECT(tree), 
ETK_CALLBACK(_etk_prefs_row_clicked), notebook);
-   etk_widget_size_request_set(tree, 220, 240);
+   etk_widget_size_request_set(tree, 180, 240);
    etk_tree_mode_set(ETK_TREE(tree), ETK_TREE_MODE_LIST);
    etk_tree_multiple_select_set(ETK_TREE(tree), ETK_FALSE);
    etk_tree_row_height_set(ETK_TREE(tree), 52);   
@@ -64,10 +64,10 @@
    etk_prefs_standard_item_add(tree, "categories/preferences-system_48", 
_("General"), NULL);   
    etk_tree_thaw(ETK_TREE(tree));
    
-   /* hbox to hold the tree on one side and the pref's contents on the other */
-   hbox = etk_hbox_new(0, 0);
-   etk_box_append(ETK_BOX(hbox), tree, ETK_BOX_START, ETK_BOX_NONE, 0);
-   etk_box_append(ETK_BOX(hbox), notebook, ETK_BOX_START, ETK_BOX_EXPAND_FILL, 
0);
+   /* paned to hold the tree on one side and the pref's contents on the other 
*/
+   paned = etk_hpaned_new();
+   etk_paned_child1_set(ETK_PANED(paned), tree, ETK_FALSE);
+   etk_paned_child2_set(ETK_PANED(paned), notebook, ETK_TRUE);   
 
    /* Some buttons */
    etk_dialog_button_add_from_stock(ETK_DIALOG(dialog), 
ETK_STOCK_DIALOG_CLOSE, ETK_RESPONSE_CLOSE);
@@ -76,7 +76,7 @@
    etk_signal_connect("response", ETK_OBJECT(dialog), 
ETK_CALLBACK(_etk_prefs_response_cb), dialog);
    
    etk_container_border_width_set(ETK_CONTAINER(dialog), 5);
-   etk_dialog_pack_in_main_area(ETK_DIALOG(dialog), hbox, ETK_TRUE, ETK_TRUE,
+   etk_dialog_pack_in_main_area(ETK_DIALOG(dialog), paned, ETK_TRUE, ETK_TRUE,
                                0, ETK_FALSE);
    
    /* create tabs */



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to