Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_spectrum.c
Log Message:
Fix drawing the spectrum after a sequential hide and show.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spectrum.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_spectrum.c 20 Oct 2006 04:37:34 -0000 1.30
+++ ewl_spectrum.c 1 Dec 2006 05:35:27 -0000 1.31
@@ -166,7 +166,7 @@
DCHECK_TYPE("sp", sp, EWL_SPECTRUM_TYPE);
sp->mode = mode;
- sp->dirty = 1;
+ sp->dirty = TRUE;
ewl_widget_configure(EWL_WIDGET(sp));
DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -212,7 +212,7 @@
if (sp->rgb.b > 255) sp->rgb.b = 255;
ewl_spectrum_hsv_from_rgb(sp);
- sp->dirty = 1;
+ sp->dirty = TRUE;
ewl_widget_configure(EWL_WIDGET(sp));
DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -270,7 +270,7 @@
if (sp->hsv.v < 0.0) sp->hsv.v = 0.0;
ewl_spectrum_rgb_from_hsv(sp);
- sp->dirty = 1;
+ sp->dirty = TRUE;
ewl_widget_configure(EWL_WIDGET(sp));
DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -330,6 +330,12 @@
ewl_spectrum_draw(sp);
ewl_spectrum_cross_hairs_draw(sp);
+ /*
+ * FIXME: The dirty flag is unused right now, some debugging work is
+ * needed to get this to fix the initial color
+ * sp->dirty = FALSE;
+ */
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -433,6 +439,7 @@
sp = EWL_SPECTRUM(data);
sp->dirty = TRUE;
+ ewl_widget_configure(EWL_WIDGET(sp));
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -654,6 +661,7 @@
evas_object_image_data_set(img, data);
evas_object_image_data_update_add(img, 0, 0, img_w, img_h);
+ ewl_widget_configure(sp->canvas);
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs