Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_filepicker.c 


Log Message:
- put the favorites box in the right spot

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filepicker.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_filepicker.c    11 Apr 2006 16:34:50 -0000      1.2
+++ ewl_filepicker.c    12 Apr 2006 02:58:33 -0000      1.3
@@ -104,18 +104,21 @@
                                        ewl_filepicker_cb_path_change, fp);
        ewl_widget_show(fp->path_combo);
 
-       fp->file_list_box = ewl_scrollpane_new();
-       ewl_container_child_append(EWL_CONTAINER(fp), fp->file_list_box);
-       ewl_widget_show(fp->file_list_box);
+       o = ewl_hbox_new();
+       ewl_container_child_append(EWL_CONTAINER(fp), o);
+       ewl_widget_show(o);
 
        fp->favorites_box = ewl_vbox_new();
-       ewl_container_child_append(EWL_CONTAINER(fp->file_list_box),
-                                               fp->favorites_box);
+       ewl_container_child_append(EWL_CONTAINER(o), fp->favorites_box);
        ewl_object_fill_policy_set(EWL_OBJECT(fp->favorites_box),
                                EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
        ewl_fillpicker_favorites_populate(fp);
        ewl_filepicker_show_favorites_set(fp, FALSE);
 
+       fp->file_list_box = ewl_scrollpane_new();
+       ewl_container_child_append(EWL_CONTAINER(o), fp->file_list_box);
+       ewl_widget_show(fp->file_list_box);
+
        o = ewl_hbox_new();
        ewl_container_child_append(EWL_CONTAINER(fp), o);
        ewl_widget_show(o);
@@ -233,7 +236,6 @@
 ewl_filepicker_list_view_set(Ewl_Filepicker *fp, Ewl_View *view)
 {
        Ewl_Filelist *old_fl;
-       Ewl_Widget *new_fl;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("fp", fp);
@@ -244,14 +246,14 @@
                DRETURN(DLEVEL_STABLE);
 
        fp->view = view;
-
        old_fl = EWL_FILELIST(fp->file_list);
 
        /* set the new view */
-       new_fl = view->construct();
-       fp->file_list = new_fl;
-       ewl_container_child_append(EWL_CONTAINER(fp->file_list_box), new_fl);
-       ewl_callback_append(EWL_WIDGET(new_fl), EWL_CALLBACK_VALUE_CHANGED,
+       fp->file_list = view->construct();
+       ewl_container_child_append(EWL_CONTAINER(fp->file_list_box),
+                                                       fp->file_list);
+       ewl_callback_append(EWL_WIDGET(fp->file_list), 
+                               EWL_CALLBACK_VALUE_CHANGED,
                                ewl_filepicker_cb_list_value_changed, fp);
 
        /* load new view from old view values */
@@ -269,7 +271,7 @@
                                        
ewl_filelist_selected_files_get(old_fl));
                ewl_widget_destroy(EWL_WIDGET(old_fl));
        }
-       ewl_widget_show(new_fl);
+       ewl_widget_show(fp->file_list);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to