+2002-10-14 Angus Leeming <leeming@lyx.org>
+
+ * Tooltips.h (set) make it private:
+ * Tooltips.C (set): don't forget to initialise the FL_OBJECT!
+
+ * FormBase.C (show):
+ * FormBaseDeprecated.C (show): no longer invoke Tooltips::set().
2002-10-14 André Pönitz <poenitz@gmx.net>
iconify_policy,
maximize_title.c_str());
}
-
- // For some strange reason known only to xforms, the tooltips can only
- // be set on a form that is already visible...
- tooltips().set();
}
iconify_policy,
maximize_title.c_str());
}
-
- // For some strange reason known only to xforms, the tooltips can only
- // be set on a form that is already visible...
- tooltips().set();
}
// Store the tooltip string
tooltipsMap[ob] = formatted(str, 400);
+
+ // Set the tooltip
+ char const * const c_str = enabled_ ? str.c_str() : 0;
+ fl_set_object_helper(ob, c_str);
}
/// Are the tooltips on or off?
static bool enabled() { return enabled_; }
- /// This method is connected to the tooltipsToggled signal.
- void set();
-
#if FL_VERSION < 1 && FL_REVISION < 89
/** Return the tooltip associated with this object.
private:
+ /// This method is connected to the Tooltips::toggled signal.
+ void set();
+
/// Are the tooltips on or off?
static bool enabled_;