Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_spectrum.c 


Log Message:
Queue a redraw of the spectrum on reveal.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spectrum.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ewl_spectrum.c      11 Sep 2006 20:51:41 -0000      1.26
+++ ewl_spectrum.c      29 Sep 2006 06:44:24 -0000      1.27
@@ -95,6 +95,8 @@
        ewl_container_child_append(EWL_CONTAINER(sp), sp->canvas);
        ewl_object_fill_policy_set(EWL_OBJECT(sp->canvas), EWL_FLAG_FILL_FILL);
        ewl_widget_internal_set(sp->canvas, TRUE);
+       ewl_callback_append(EWL_WIDGET(sp->canvas), EWL_CALLBACK_REVEAL, 
+                               ewl_spectrum_canvas_cb_reveal, sp);
        ewl_widget_show(sp->canvas);
 
        /* create the cross hairs to draw on the spectrum */
@@ -407,6 +409,21 @@
        sp = EWL_SPECTRUM(w);
        ewl_callback_del(w, EWL_CALLBACK_MOUSE_MOVE,
                         ewl_spectrum_cb_mouse_move);
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+void
+ewl_spectrum_canvas_cb_reveal(Ewl_Widget *w, void *ev, void *data)
+{
+       Ewl_Spectrum *sp;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR("w", w);
+       DCHECK_TYPE("w", w, EWL_SPECTRUM_TYPE);
+
+       sp = EWL_SPECTRUM(data);
+       sp->dirty = TRUE;
 
        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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to