Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        Makefile.am ewl_imenu_test.c ewl_seeker_test.c ewl_test.c 


Log Message:
More progress on the menus. Fixed the seeker to work correctly.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/Makefile.am,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- Makefile.am 18 Apr 2003 20:35:43 -0000      1.23
+++ Makefile.am 23 Jun 2003 05:59:19 -0000      1.24
@@ -18,6 +18,7 @@
                                        ewl_imenu_test.c \
                                        ewl_menu_test.c \
                                        ewl_notebook_test.c \
+                                       ewl_seeker_test.c \
                                        ewl_selectionbook_test.c \
                                        ewl_selectionbar_test.c \
                                        ewl_spinner_test.c \
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_imenu_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_imenu_test.c    4 Jun 2003 01:46:44 -0000       1.7
+++ ewl_imenu_test.c    23 Jun 2003 05:59:19 -0000      1.8
@@ -79,12 +79,16 @@
        /*
         * Append some test items
         */
-       item = ewl_menu_item_new("/usr/share/pixmaps/dia.xpm", "dia");
+       item = ewl_menu_item_new("/usr/share/pixmaps/dia-diagram.png", "dia");
        ewl_container_append_child(EWL_CONTAINER(imenu1), item);
        ewl_callback_append(item, EWL_CALLBACK_SELECT, __imenu_select, NULL);
        ewl_widget_show(item);
 
-       item = ewl_menu_item_new("/usr/share/pixmaps/wilber.xpm", "gimp");
+       item = ewl_menu_separator_new();
+       ewl_container_append_child(EWL_CONTAINER(imenu1), item);
+       ewl_widget_show(item);
+
+       item = ewl_menu_item_new("/usr/share/pixmaps/wilber.png", "gimp");
        ewl_container_append_child(EWL_CONTAINER(imenu1), item);
        ewl_callback_append(item, EWL_CALLBACK_SELECT, __imenu_select, NULL);
        ewl_widget_show(item);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_seeker_test.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_seeker_test.c   25 Mar 2003 18:36:27 -0000      1.9
+++ ewl_seeker_test.c   23 Jun 2003 05:59:19 -0000      1.10
@@ -20,6 +20,16 @@
 }
 
 void
+__print_value(Ewl_Widget *w, void *ev_data, void *user_data)
+{
+       Ewl_Seeker *s;
+
+       s = EWL_SEEKER(w);
+
+       printf("Seeker set to %g\n", ewl_seeker_get_value(s));
+}
+
+void
 __create_seeker_test_window(Ewl_Widget * w, void *ev_data, void *user_data)
 {
        Ewl_Widget *seeker_win;
@@ -31,17 +41,22 @@
        seeker_button = w;
 
        seeker_win = ewl_window_new();
+       ewl_object_set_minimum_size(EWL_OBJECT(seeker_win), 300, 300);
        ewl_callback_append(seeker_win, EWL_CALLBACK_DELETE_WINDOW,
                            __destroy_seeker_test_window, NULL);
        ewl_widget_show(seeker_win);
 
        hseeker = ewl_hseeker_new();
-       ewl_object_set_padding(EWL_OBJECT(hseeker), 10, 10, 10, 0);
+       ewl_object_request_position(EWL_OBJECT(hseeker), 30, 0);
+       ewl_callback_append(hseeker, EWL_CALLBACK_VALUE_CHANGED, __print_value,
+                       NULL);
        ewl_container_append_child(EWL_CONTAINER(seeker_win), hseeker);
        ewl_widget_show(hseeker);
 
        vseeker = ewl_vseeker_new();
-       ewl_object_set_padding(EWL_OBJECT(vseeker), 10, 10, 10, 10);
+       ewl_object_request_position(EWL_OBJECT(vseeker), 0, 30);
+       ewl_callback_append(vseeker, EWL_CALLBACK_VALUE_CHANGED, __print_value,
+                       NULL);
        ewl_container_append_child(EWL_CONTAINER(seeker_win), vseeker);
        ewl_widget_show(vseeker);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_test.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- ewl_test.c  4 Jun 2003 01:46:44 -0000       1.43
+++ ewl_test.c  23 Jun 2003 05:59:19 -0000      1.44
@@ -1,7 +1,7 @@
 #include <Ewl.h>
 #include <ewl-config.h>
 
-#define BUTTONS 17
+#define BUTTONS 18
 
 void            __close_main_widow(Ewl_Widget * w, void *ev_data,
                                   void *user_data);
@@ -38,6 +38,8 @@
 
 void            __create_scrollpane_test_window(Ewl_Widget * w, void *ev_data,
                                                void *user_data);
+void            __create_seeker_test_window(Ewl_Widget * w, void *ev_data,
+                                             void *user_data);
 
 void            __create_spinner_test_window(Ewl_Widget * w, void *ev_data,
                                             void *user_data);
@@ -191,6 +193,11 @@
        button[i] = ewl_button_new("Ewl_Notebook");
        ewl_callback_append(button[i], EWL_CALLBACK_CLICKED,
                            __create_notebook_test_window, NULL);
+       i++;
+
+       button[i] = ewl_button_new("Ewl_Seeker");
+       ewl_callback_append(button[i], EWL_CALLBACK_CLICKED,
+                       __create_seeker_test_window, NULL);
        i++;
 
        /*




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to