Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests


Modified Files:
        ewl_combo.c ewl_text_editor.c 


Log Message:
- start consolidating mvc selection code into ewl_mvc.
- ewl_combo converted over to start

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_combo.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_combo.c 24 Sep 2006 20:26:50 -0000      1.16
+++ ewl_combo.c 3 Oct 2006 05:17:13 -0000       1.17
@@ -241,7 +241,8 @@
        int idx;
 
        d = ewl_mvc_data_get(EWL_MVC(w));
-       idx = ewl_combo_selected_get(EWL_COMBO(w));
+       idx = ewl_mvc_selected_get(EWL_MVC(w));
+
        if (idx > -1)
                printf("value changed to %d (%s)\n", idx, d->data[idx]);
        else
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_text_editor.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_text_editor.c   30 Sep 2006 22:07:45 -0000      1.18
+++ ewl_text_editor.c   3 Oct 2006 05:17:13 -0000       1.19
@@ -133,7 +133,7 @@
                ewl_mvc_model_set(EWL_MVC(o), model);
                ewl_mvc_view_set(EWL_MVC(o), view);
                ewl_mvc_data_set(EWL_MVC(o), styles);
-               ewl_combo_selected_set(EWL_COMBO(o), 0);
+               ewl_mvc_selected_set(EWL_MVC(o), 0);
                ewl_container_child_append(EWL_CONTAINER(hbox), o);
                ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED, 
                                                ete_cb_styles_changed, NULL);
@@ -254,9 +254,9 @@
        int idx;
        char *str;
 
-       idx = ewl_combo_selected_get(EWL_COMBO(w));
+       idx = ewl_mvc_selected_get(EWL_MVC(w));
        str = ecore_list_goto_index(ewl_mvc_data_get(EWL_MVC(w)), 
-                                       ewl_combo_selected_get(EWL_COMBO(w)));
+                                       ewl_mvc_selected_get(EWL_MVC(w)));
 
        entry = ewl_widget_name_find("entry");
        if (!strcmp(str, "None"))



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to