For Zgold

SVN revision: 28416
This commit is contained in:
titan 2007-02-21 04:49:09 +00:00 committed by titan
parent 6502da7a5a
commit 7da833e9ee
2 changed files with 22 additions and 6 deletions

View File

@ -15,7 +15,7 @@ Ewl_Widget *add_list_view(Ewl_Widget *c)
ewl_widget_show(em->list_vbox); ewl_widget_show(em->list_vbox);
ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(c), em->list_vbox, "List"); ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(c), em->list_vbox, "List");
em->ltree = add_ltree(em->list_vbox); em->ltree = add_ltree(em->list_vbox);
return em->list_vbox; return em->list_vbox;
} }

View File

@ -122,7 +122,7 @@ void create_main_gui(void)
add_edit_view(em->view_box); add_edit_view(em->view_box);
add_list_view(em->view_box); add_list_view(em->view_box);
hsep = ewl_hseparator_new(); hsep = ewl_hseparator_new();
ewl_container_child_append(EWL_CONTAINER(vbox), hsep); ewl_container_child_append(EWL_CONTAINER(vbox), hsep);
ewl_widget_show(hsep); ewl_widget_show(hsep);
@ -138,10 +138,18 @@ void create_main_gui(void)
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/normal_view.png", 0, show_normal_view, NULL); image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/normal_view.png", 0, show_normal_view, NULL);
ewl_image_constrain_set(EWL_IMAGE(image), 30); ewl_image_constrain_set(EWL_IMAGE(image), 30);
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/edit_view.png", 0, show_edit_view, NULL); vsep = ewl_vseparator_new();
ewl_image_constrain_set(EWL_IMAGE(image), 30); ewl_container_child_append(EWL_CONTAINER(em->toolbar), vsep);
ewl_widget_show(vsep);
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/list_view.png", 0, show_list_view, NULL); image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/list_view.png", 0, show_list_view, NULL);
ewl_image_constrain_set(EWL_IMAGE(image), 30);
vsep = ewl_vseparator_new();
ewl_container_child_append(EWL_CONTAINER(em->toolbar), vsep);
ewl_widget_show(vsep);
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/edit_view.png", 0, show_edit_view, NULL);
ewl_image_constrain_set(EWL_IMAGE(image), 30); ewl_image_constrain_set(EWL_IMAGE(image), 30);
vsep = ewl_vseparator_new(); vsep = ewl_vseparator_new();
@ -151,9 +159,17 @@ void create_main_gui(void)
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/get_exif.png", 0, display_exif_dialog, NULL); image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/get_exif.png", 0, display_exif_dialog, NULL);
ewl_image_constrain_set(EWL_IMAGE(image), 30); ewl_image_constrain_set(EWL_IMAGE(image), 30);
vsep = ewl_vseparator_new();
ewl_container_child_append(EWL_CONTAINER(em->toolbar), vsep);
ewl_widget_show(vsep);
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/stock_fullscreen.png", 0, window_fullscreen, NULL); image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/stock_fullscreen.png", 0, window_fullscreen, NULL);
ewl_image_constrain_set(EWL_IMAGE(image), 30); ewl_image_constrain_set(EWL_IMAGE(image), 30);
vsep = ewl_vseparator_new();
ewl_container_child_append(EWL_CONTAINER(em->toolbar), vsep);
ewl_widget_show(vsep);
image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/x-office-presentation.png", 0, NULL, NULL); image = add_image(em->toolbar, PACKAGE_DATA_DIR "/images/x-office-presentation.png", 0, NULL, NULL);
ewl_image_constrain_set(EWL_IMAGE(image), 30); ewl_image_constrain_set(EWL_IMAGE(image), 30);
@ -245,8 +261,8 @@ static Ewl_Widget *add_vcombo(Ewl_Widget *c)
em->views = calloc(3, sizeof(char *)); em->views = calloc(3, sizeof(char *));
em->views[0] = strdup("Normal"); em->views[0] = strdup("Normal");
em->views[1] = strdup("Edit"); em->views[1] = strdup("List");
em->views[2] = strdup("List"); em->views[2] = strdup("Edit");
model = ewl_model_new(); model = ewl_model_new();
ewl_model_fetch_set(model, views_data_fetch); ewl_model_fetch_set(model, views_data_fetch);