[gtksourceviewmm] tests: Use the libsigc++-3.0 syntax.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceviewmm] tests: Use the libsigc++-3.0 syntax.
- Date: Mon, 14 Nov 2016 11:20:23 +0000 (UTC)
commit eb4c8bb4e5a583b2f3e30575e3b0af01d79f4583
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Nov 14 12:09:57 2016 +0100
tests: Use the libsigc++-3.0 syntax.
tests/completion/main.cc | 8 ++++----
tests/search/main.cc | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/completion/main.cc b/tests/completion/main.cc
index 65665af..cbb4ce2 100644
--- a/tests/completion/main.cc
+++ b/tests/completion/main.cc
@@ -172,10 +172,10 @@ TestWindow::TestWindow()
vbox->pack_start(*scrolledwindow, true, true);
vbox->pack_end(*hbox, false, false);
- m_remember->signal_toggled().connect(sigc::mem_fun(this, &TestWindow::remember_toggled));
- m_select_on_show->signal_toggled().connect(sigc::mem_fun(this, &TestWindow::select_on_show_toggled));
- m_show_headers->signal_toggled().connect(sigc::mem_fun(this, &TestWindow::show_headers_toggled));
- m_show_icons->signal_toggled().connect(sigc::mem_fun(this, &TestWindow::show_icons_toggled));
+ m_remember->signal_toggled().connect(sigc::mem_fun(*this, &TestWindow::remember_toggled));
+ m_select_on_show->signal_toggled().connect(sigc::mem_fun(*this, &TestWindow::select_on_show_toggled));
+ m_show_headers->signal_toggled().connect(sigc::mem_fun(*this, &TestWindow::show_headers_toggled));
+ m_show_icons->signal_toggled().connect(sigc::mem_fun(*this, &TestWindow::show_icons_toggled));
add(*vbox);
//completion
diff --git a/tests/search/main.cc b/tests/search/main.cc
index 17c3261..0de4ce4 100644
--- a/tests/search/main.cc
+++ b/tests/search/main.cc
@@ -34,8 +34,8 @@ class SearchDialog : public Dialog {
Gtk::Entry *m_entry ;
Gtk::Button *m_search_forward_button ;
Gtk::Button *m_search_backward_button ;
- sigc::signal<void> m_forward_search_requested_signal ;
- sigc::signal<void> m_backward_search_requested_signal ;
+ sigc::signal<void()> m_forward_search_requested_signal ;
+ sigc::signal<void()> m_backward_search_requested_signal ;
void init_members ()
{
@@ -100,12 +100,12 @@ public:
a_str = m_entry->get_text () ;
}
- sigc::signal<void>& forward_search_requested_signal ()
+ sigc::signal<void()>& forward_search_requested_signal ()
{
return m_forward_search_requested_signal ;
}
- sigc::signal<void>& backward_search_requested_signal ()
+ sigc::signal<void()>& backward_search_requested_signal ()
{
return m_backward_search_requested_signal ;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]