summaryrefslogtreecommitdiff
path: root/fluid/factory.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-06-19 08:34:19 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-06-19 08:34:19 +0000
commit11de032d6da7fa057b48f95beac7fea9bccdb455 (patch)
treeb6c949bada9a13797f7dfc5e01eaf47bddff06b7 /fluid/factory.cxx
parent0148f1cfd00199dfb5571dbf2705a895dc773e15 (diff)
If the value field for scrollbars was not zero, Fluid would generate code that accesses the hidden function Fl_Scrollbar::value(double), causing a compile time error. The fix circumevents the hidden function by calling Fl_Slider::value. It would be better to change the entire Fluid interface to reflect the Scrollbar interface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/factory.cxx')
-rw-r--r--fluid/factory.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index 27b9a5cba..71391e7f1 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -725,6 +725,7 @@ static Fl_Menu_Item scrollbar_type_menu[] = {
{0}};
class Fl_Scrollbar_Type : public Fl_Slider_Type {
Fl_Menu_Item *subtypes() {return scrollbar_type_menu;}
+ int is_valuator() const {return 3;}
public:
virtual const char *type_name() {return "Fl_Scrollbar";}
Fl_Widget *widget(int x,int y,int w,int h) {