From 11de032d6da7fa057b48f95beac7fea9bccdb455 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 19 Jun 2006 08:34:19 +0000 Subject: 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 --- fluid/factory.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'fluid/factory.cxx') 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) { -- cgit v1.2.3