From 5b92f48666337811913db315785f5bfeea040d2e Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 24 Apr 2006 14:22:32 +0000 Subject: [PATCH] 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 --- src/frontends/gtk/GtkLengthEntry.C | 25 ++++++++++++++++++++++++- src/frontends/gtk/GtkLengthEntry.h | 4 ++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/frontends/gtk/GtkLengthEntry.C b/src/frontends/gtk/GtkLengthEntry.C index 948fdfabe8..bed6e77d06 100644 --- a/src/frontends/gtk/GtkLengthEntry.C +++ b/src/frontends/gtk/GtkLengthEntry.C @@ -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::emit)); + spin_.signal_value_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal::emit)); combo_.signal_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal::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 diff --git a/src/frontends/gtk/GtkLengthEntry.h b/src/frontends/gtk/GtkLengthEntry.h index 3f5e684600..e9c0b53287 100644 --- a/src/frontends/gtk/GtkLengthEntry.h +++ b/src/frontends/gtk/GtkLengthEntry.h @@ -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 &signal_changed(); protected: -- 2.39.2