summaryrefslogtreecommitdiff
path: root/guix/easystroke-0.6.0-lambda.patch
blob: f9609ffbd3feb82baea8c946bc1218eb93ff5fe2 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -up easystroke-0.6.0/actions.cc.lambda easystroke-0.6.0/actions.cc
--- easystroke-0.6.0/actions.cc.lambda	2013-03-27 11:52:38.000000000 -0400
+++ easystroke-0.6.0/actions.cc	2016-02-01 12:04:07.337863849 -0500
@@ -51,10 +51,10 @@ void TreeViewMulti::on_drag_begin(const
 	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 };