Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_mvc.c
Log Message:
- cleanup the highlight handling a bit
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_mvc.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ewl_mvc.c 29 Mar 2007 23:16:01 -0000 1.21
+++ ewl_mvc.c 24 Apr 2007 21:03:19 -0000 1.22
@@ -793,7 +793,10 @@
smod = EWL_SELECTION(idx)->model;
if (sel->highlight)
+ {
ewl_widget_destroy(sel->highlight);
+ sel->highlight = NULL;
+ }
}
else
{
@@ -835,7 +838,6 @@
}
}
-
ecore_list_remove(mvc->selected);
ewl_mvc_selected_range_add(mvc, smod, data, srow,
scolumn,
@@ -1015,8 +1017,10 @@
if (sel->type != EWL_SELECTION_TYPE_RANGE)
{
if (sel->highlight)
+ {
ewl_widget_destroy(sel->highlight);
- sel->highlight = NULL;
+ sel->highlight = NULL;
+ }
DRETURN(DLEVEL_STABLE);
}
@@ -1164,13 +1168,14 @@
DCHECK_PARAM_PTR("data", data);
sel = data;
- if ((sel->type == EWL_SELECTION_TYPE_INDEX) && sel->highlight)
- ewl_widget_destroy(sel->highlight);
- else
+ if (sel->highlight)
{
- if (sel->highlight)
+ if (sel->type == EWL_SELECTION_TYPE_INDEX)
+ ewl_widget_destroy(sel->highlight);
+ else
{
Ewl_Widget *w;
+
while ((w = ecore_list_remove_first(sel->highlight)))
ewl_widget_destroy(w);
@@ -1178,7 +1183,6 @@
}
sel->highlight = NULL;
}
-
FREE(data);
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs