]> git.lyx.org Git - features.git/commitdiff
Add the const-ized functions that GExternal needs.
authorJohn Spray <spray@lyx.org>
Mon, 24 Apr 2006 14:22:32 +0000 (14:22 +0000)
committerJohn Spray <spray@lyx.org>
Mon, 24 Apr 2006 14:22:32 +0000 (14:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13733 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/GtkLengthEntry.C
src/frontends/gtk/GtkLengthEntry.h

index 948fdfabe8391988471cccf461ceb5699cde7d0f..bed6e77d06cf266c1403447e34d75c67ab8316db 100644 (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
index 3f5e684600d5ddf9fc854b06658e046ff4e691ff..e9c0b5328764f460a8249d8240410a958bbf69d6 100644 (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: