Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/tools/ewl_config
Modified Files:
ewl_config.c
Log Message:
- do some more work on the mvc selection code.
- this breaks the current api
- EWL_TREE_MODE is now EWL_SELECTION_MODE
- the selection_rm is missing the ability to remove from ranges
- still need to fill the unit tests
===================================================================
RCS file: /cvs/e/e17/libs/ewl/tools/ewl_config/ewl_config.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- ewl_config.c 3 Oct 2006 05:52:02 -0000 1.35
+++ ewl_config.c 15 Oct 2006 22:34:14 -0000 1.36
@@ -367,7 +367,7 @@
}
closedir(rep);
- ewl_mvc_selected_set(EWL_MVC(o), sel);
+ ewl_mvc_selected_set(EWL_MVC(o), sel, 0);
ewl_mvc_dirty_set(EWL_MVC(o), TRUE);
o2 = ewl_border_new();
@@ -417,7 +417,7 @@
ewl_mvc_view_set(EWL_MVC(o), ewl_label_view_get());
ewl_mvc_data_set(EWL_MVC(o), list);
ewl_table_add(EWL_TABLE(box), o, 1, 1, 1, 1);
- ewl_mvc_selected_set(EWL_MVC(o), sel);
+ ewl_mvc_selected_set(EWL_MVC(o), sel, 0);
ewl_widget_show(o);
}
@@ -660,7 +660,7 @@
break;
sel++;
}
- ewl_mvc_selected_set(EWL_MVC(o), sel);
+ ewl_mvc_selected_set(EWL_MVC(o), sel, 0);
o = ewl_widget_name_find(EC_ICON_SIZE);
list = ewl_mvc_data_get(EWL_MVC(o));
@@ -674,7 +674,7 @@
break;
sel ++;
}
- ewl_mvc_selected_set(EWL_MVC(o), sel);
+ ewl_mvc_selected_set(EWL_MVC(o), sel, 0);
for (sel = 0; strings[sel].name != NULL; sel++)
{
@@ -703,6 +703,7 @@
Ecore_List *list;
char *val;
int i;
+ Ewl_Selection_Idx *idx;
struct
{
@@ -767,9 +768,9 @@
o = ewl_widget_name_find(EC_ICON_SIZE);
list = ewl_mvc_data_get(EWL_MVC(o));
- i = ewl_mvc_selected_get(EWL_MVC(o));
+ idx = ewl_mvc_selected_get(EWL_MVC(o));
- ecore_list_goto_index(list, i);
+ ecore_list_goto_index(list, idx->row);
val = ecore_list_current(list);
if (strcmp(val, ewl_config_string_get(ewl_config,
EWL_CONFIG_THEME_ICON_SIZE)))
@@ -781,10 +782,10 @@
o = ewl_widget_name_find(EC_EWL_THEME);
list = ewl_mvc_data_get(EWL_MVC(o));
- i = ewl_mvc_selected_get(EWL_MVC(o));
- if (i > -1)
+ idx = ewl_mvc_selected_get(EWL_MVC(o));
+ if (idx)
{
- ecore_list_goto_index(list, i);
+ ecore_list_goto_index(list, idx->row);
val = ecore_list_current(list);
if (strcmp(val, ewl_config_string_get(ewl_config,
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs