[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] test [2/2]



now with an attachment (my exhibit patch)

--
Morten
:wq
? patch
Index: src/bin/exhibit_main.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/exhibit/src/bin/exhibit_main.c,v
retrieving revision 1.44
diff -u -r1.44 exhibit_main.c
--- src/bin/exhibit_main.c	13 Mar 2006 09:10:32 -0000	1.44
+++ src/bin/exhibit_main.c	17 Apr 2006 04:14:28 -0000
@@ -866,7 +866,7 @@
    
    e->zoom_in[0] = etk_button_new();
    e->zoom_in[1] = etk_image_new_from_edje(PACKAGE_DATA_DIR"/images/images.edj", "zoom_in");
-   etk_widget_pass_events_set(e->zoom_in[1], ETK_TRUE);   
+   etk_widget_pass_mouse_events_set(e->zoom_in[1], ETK_TRUE);   
    etk_widget_size_request_set(e->zoom_in[1], 33, 27);
    //etk_button_image_set(ETK_BUTTON(button), ETK_IMAGE(e->zoom_in[1]));
    etk_container_add(ETK_CONTAINER(e->zoom_in[0]), e->zoom_in[1]);
@@ -877,7 +877,7 @@
 
    e->zoom_out[0] = etk_button_new();
    e->zoom_out[1] = etk_image_new_from_edje(PACKAGE_DATA_DIR"/images/images.edj", "zoom_out");
-   etk_widget_pass_events_set(e->zoom_out[1], ETK_TRUE);   
+   etk_widget_pass_mouse_events_set(e->zoom_out[1], ETK_TRUE);   
    etk_widget_size_request_set(e->zoom_out[1], 33, 27);
    //etk_button_image_set(ETK_BUTTON(e->zoom_out[0]), ETK_IMAGE(e->zoom_out[1]));
    etk_container_add(ETK_CONTAINER(e->zoom_out[0]), e->zoom_out[1]);
@@ -888,7 +888,7 @@
 
    e->fit[0] = etk_button_new();
    e->fit[1] = etk_image_new_from_edje(PACKAGE_DATA_DIR"/images/images.edj", "fit_to_window");
-   etk_widget_pass_events_set(e->fit[1], ETK_TRUE);   
+   etk_widget_pass_mouse_events_set(e->fit[1], ETK_TRUE);   
    etk_widget_size_request_set(e->fit[1], 33, 27);
    //etk_button_image_set(ETK_BUTTON(button), ETK_IMAGE(e->fit[1]));
    etk_container_add(ETK_CONTAINER(e->fit[0]), e->fit[1]);
@@ -899,7 +899,7 @@
 
    e->original[0] = etk_button_new();
    e->original[1] = etk_image_new_from_edje(PACKAGE_DATA_DIR"/images/images.edj", "one_to_one");
-   etk_widget_pass_events_set(e->original[1], ETK_TRUE);
+   etk_widget_pass_mouse_events_set(e->original[1], ETK_TRUE);
    etk_widget_size_request_set(e->original[1], 33, 27);
    //etk_button_image_set(ETK_BUTTON(e->original[0]), ETK_IMAGE(e->original[1]));
    etk_container_add(ETK_CONTAINER(e->original[0]), e->original[1]);
Index: src/bin/exhibit_tab.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/exhibit/src/bin/exhibit_tab.c,v
retrieving revision 1.10
diff -u -r1.10 exhibit_tab.c
--- src/bin/exhibit_tab.c	5 Mar 2006 01:02:50 -0000	1.10
+++ src/bin/exhibit_tab.c	17 Apr 2006 04:14:29 -0000
@@ -49,7 +49,8 @@
    tab->alignment = etk_alignment_new(0.5, 0.5, 0.0, 0.0);   
    
    tab->image = etk_image_new();
-   etk_widget_theme_set(tab->image, PACKAGE_DATA_DIR"/images/images.edj", "image_bg");
+   etk_widget_theme_file_set(tab->image, PACKAGE_DATA_DIR"/images/images.edj");
+   etk_widget_theme_group_set(tab->image, "image_bg");
    etk_signal_connect("mouse_down", ETK_OBJECT(tab->image), ETK_CALLBACK(_ex_image_mouse_down), e);
    etk_signal_connect("mouse_up", ETK_OBJECT(tab->image), ETK_CALLBACK(_ex_image_mouse_up), e);
    etk_signal_connect("mouse_move", ETK_OBJECT(tab->image), ETK_CALLBACK(_ex_image_mouse_move), e);