From af19489348e43eedceefb5a54bcecf4968e3bb8d Mon Sep 17 00:00:00 2001 From: tchernobog Date: Tue, 12 Sep 2006 20:29:47 +0000 Subject: [PATCH] - Don't keep a RefPtr to the glade file git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1115 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/jump_to_dialog.cc | 10 ++++++---- src/jump_to_dialog.hh | 4 ---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/jump_to_dialog.cc b/src/jump_to_dialog.cc index 8d8fa64..b814054 100644 --- a/src/jump_to_dialog.cc +++ b/src/jump_to_dialog.cc @@ -28,6 +28,7 @@ #include #include +#include #include #include @@ -41,13 +42,14 @@ using Gnome::Glade::Xml; JumpToDialog::JumpToDialog(BaseObjectType* cobject, const RefPtr& glade) : - Dialog(cobject), _glade(glade), _target_instant(0) + Dialog(cobject), _target_instant(0) { - _glade->get_widget("Button.Stop", _stop_button); - _glade->get_widget("ProgressBar", _progress); + Button* stop_button; + glade->get_widget("Button.Stop", stop_button); + glade->get_widget("ProgressBar", _progress); // Attach signal handlers for the Stop button - _stop_button->signal_clicked().connect(sigc::mem_fun(*this, &JumpToDialog::_on_stop)); + stop_button->signal_clicked().connect(sigc::mem_fun(*this, &JumpToDialog::_on_stop)); signal_show().connect(sigc::mem_fun(*this, &JumpToDialog::_on_jump)); signal_response().connect(sigc::hide(sigc::mem_fun(*this, &JumpToDialog::hide))); } diff --git a/src/jump_to_dialog.hh b/src/jump_to_dialog.hh index a99b4c6..a4f75fd 100644 --- a/src/jump_to_dialog.hh +++ b/src/jump_to_dialog.hh @@ -25,7 +25,6 @@ #include -#include #include #include #include @@ -49,9 +48,6 @@ namespace sgpem void update(const Simulation& changed_simulation); - Glib::RefPtr _glade; - - Gtk::Button* _stop_button; Gtk::ProgressBar* _progress; unsigned int _target_instant;