[gnote] Remove boost::bind from PreferencesDialog



commit 505534db8f3a5522a3969da8b87b61174dc3602e
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Fri Jan 13 23:11:56 2017 +0200

    Remove boost::bind from PreferencesDialog

 src/preferencesdialog.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp
index 649d8b8..1d96703 100644
--- a/src/preferencesdialog.cpp
+++ b/src/preferencesdialog.cpp
@@ -25,8 +25,6 @@
 #include <config.h>
 #endif
 
-#include <boost/bind.hpp>
-
 #include <glibmm/i18n.h>
 #include <gtkmm/accelgroup.h>
 #include <gtkmm/alignment.h>
@@ -542,8 +540,9 @@ namespace gnote {
     bbox->set_child_secondary(*advancedConfigButton, true);
 
     m_reset_sync_addin_button = manage(new Gtk::Button(Gtk::Stock::CLEAR));
-    m_reset_sync_addin_button->signal_clicked().connect(
-      boost::bind(sigc::mem_fun(*this, &PreferencesDialog::on_reset_sync_addin_button), true));
+    m_reset_sync_addin_button->signal_clicked().connect([this]() {
+      on_reset_sync_addin_button(true);
+    });
     m_reset_sync_addin_button->set_sensitive(m_selected_sync_addin &&
                                         addin_id == m_selected_sync_addin->id() &&
                                         m_selected_sync_addin->is_configured());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]