From 62c19c63d6d915b153a09be98f7da8e049f9b4e3 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 27 Jul 2004 16:02:21 +0000 Subject: More doco updates. All of the core widgets now consistently set changed() before calling the callback function for a change in value; this allows programs to check the changed() state in a callback to see why they are being called (STR #475) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Color_Chooser.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Fl_Color_Chooser.cxx') diff --git a/src/Fl_Color_Chooser.cxx b/src/Fl_Color_Chooser.cxx index 868454059..b54d3950a 100644 --- a/src/Fl_Color_Chooser.cxx +++ b/src/Fl_Color_Chooser.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Color_Chooser.cxx,v 1.7.2.4.2.7 2004/04/11 04:38:57 easysw Exp $" +// "$Id: Fl_Color_Chooser.cxx,v 1.7.2.4.2.8 2004/07/27 16:02:20 easysw Exp $" // // Color chooser for the Fast Light Tool Kit (FLTK). // @@ -125,6 +125,7 @@ int Fl_Color_Chooser::rgb(double R, double G, double B) { double pv = value_; rgb2hsv(R,G,B,hue_,saturation_,value_); set_valuators(); + set_changed(); if (value_ != pv) { #ifdef UPDATE_HUE_BOX huebox.damage(FL_DAMAGE_SCROLL); @@ -157,6 +158,7 @@ int Fl_Color_Chooser::hsv(double H, double S, double V) { } hsv2rgb(H,S,V,r_,g_,b_); set_valuators(); + set_changed(); return 1; } @@ -521,5 +523,5 @@ int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b) { } // -// End of "$Id: Fl_Color_Chooser.cxx,v 1.7.2.4.2.7 2004/04/11 04:38:57 easysw Exp $". +// End of "$Id: Fl_Color_Chooser.cxx,v 1.7.2.4.2.8 2004/07/27 16:02:20 easysw Exp $". // -- cgit v1.2.3