Fix tooltips

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9033 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2004-10-01 19:31:08 +00:00
parent 4e0607242f
commit 2cd0b94b86

View File

@ -248,7 +248,8 @@ void GToolbar::add(FuncRequest const & func, string const & tooltip)
// toolitem later. // toolitem later.
toolbutton->set_data(gToolData, toolbutton->set_data(gToolData,
reinterpret_cast<void*>(&const_cast<FuncRequest &>(func))); reinterpret_cast<void*>(&const_cast<FuncRequest &>(func)));
tooltips_.set_tip(*toolbutton, tip, tip);
toolbutton->set_tooltip(tooltips_,tip);
toolbutton->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this, toolbutton->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this,
&GToolbar::clicked), FuncRequest(func))); &GToolbar::clicked), FuncRequest(func)));
toolbar_.append(*toolbutton); toolbar_.append(*toolbutton);