Add the const-ized functions that GExternal needs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13733 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2006-04-24 14:22:32 +00:00
parent 7855aa5b13
commit 5b92f48666
2 changed files with 28 additions and 1 deletions

View File

@ -81,7 +81,7 @@ GtkLengthEntry::GtkLengthEntry(
pack_start (spin_, true, true, 0);
pack_start (combo_, false, false, 0);
show_all();
spin_.signal_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal<void>::emit));
spin_.signal_value_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal<void>::emit));
combo_.signal_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal<void>::emit));
}
@ -126,5 +126,28 @@ void GtkLengthEntry::set_relative(bool rel)
}
Gtk::ComboBoxText *GtkLengthEntry::get_combo()
{
return &combo_;
}
Gtk::SpinButton *GtkLengthEntry::get_spin()
{
return &spin_;
}
Gtk::ComboBoxText const *const GtkLengthEntry::get_combo() const
{
return &combo_;
}
Gtk::SpinButton const *const GtkLengthEntry::get_spin() const
{
return &spin_;
}
} // namespace frontend
} // namespace lyx

View File

@ -37,6 +37,10 @@ public:
Gtk::SpinButton *get_spin();
Gtk::ComboBoxText *get_combo();
Gtk::SpinButton const *const get_spin() const;
Gtk::ComboBoxText const *const get_combo() const;
sigc::signal<void> &signal_changed();
protected: