summaryrefslogtreecommitdiff
path: root/x11-misc/easystroke/files/easystroke-0.6.0-cxx11.patch
blob: 8619e8e9fbdcbf84e2583cbcc7ad1111e44c76ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/actions.cc
+++ b/actions.cc
@@ -51,10 +51,11 @@
 	context->set_icon(pb, pb->get_width(), pb->get_height());
 }
 
-bool negate(bool b) { return !b; }
-
 TreeViewMulti::TreeViewMulti() : Gtk::TreeView(), pending(false) {
-	get_selection()->set_select_function(sigc::group(&negate, sigc::ref(pending)));
+	get_selection()->set_select_function(
+		[this](Glib::RefPtr<Gtk::TreeModel> const&, Gtk::TreeModel::Path const&, bool) {
+			return !pending;
+		});
 }
 
 enum Type { COMMAND, KEY, TEXT, SCROLL, IGNORE, BUTTON, MISC };