lambda.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. diff -uprb easystroke-0.6.0.orig/actions.cc easystroke-0.6.0/actions.cc
  2. --- easystroke-0.6.0.orig/actions.cc 2013-03-27 17:52:38.000000000 +0200
  3. +++ easystroke-0.6.0/actions.cc 2015-12-07 22:07:17.720041171 +0200
  4. @@ -51,10 +51,11 @@ void TreeViewMulti::on_drag_begin(const
  5. context->set_icon(pb, pb->get_width(), pb->get_height());
  6. }
  7. -bool negate(bool b) { return !b; }
  8. -
  9. TreeViewMulti::TreeViewMulti() : Gtk::TreeView(), pending(false) {
  10. - get_selection()->set_select_function(sigc::group(&negate, sigc::ref(pending)));
  11. + get_selection()->set_select_function(
  12. + [this](Glib::RefPtr<Gtk::TreeModel> const&, Gtk::TreeModel::Path const&, bool) {
  13. + return !pending;
  14. + });
  15. }
  16. enum Type { COMMAND, KEY, TEXT, SCROLL, IGNORE, BUTTON, MISC };
  17. diff -uprb easystroke-0.6.0.orig/Makefile easystroke-0.6.0/Makefile
  18. --- easystroke-0.6.0.orig/Makefile 2013-03-27 17:52:38.000000000 +0200
  19. +++ easystroke-0.6.0/Makefile 2015-12-07 21:54:47.926776791 +0200
  20. @@ -21,8 +21,7 @@ LOCALEDIR= $(PREFIX)/share/locale
  21. DFLAGS =
  22. OFLAGS = -O2
  23. AOFLAGS = -O3
  24. -STROKEFLAGS = -Wall -std=c99 $(DFLAGS)
  25. -CXXFLAGS = -Wall $(DFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtkmm-3.0 dbus-glib-1 --cflags`
  26. +CXXFLAGS = -Wall $(DFLAGS) -std=c++11 -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtkmm-3.0 dbus-glib-1 --cflags`
  27. CFLAGS = -Wall $(DFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtk+-3.0 --cflags` -DGETTEXT_PACKAGE='"easystroke"'
  28. LDFLAGS = $(DFLAGS)
  29. @@ -63,7 +62,7 @@ $(BINARY): $(OFILES)
  30. $(CXX) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
  31. stroke.o: stroke.c
  32. - $(CC) $(STROKEFLAGS) $(AOFLAGS) -MT $@ -MMD -MP -MF $*.Po -o $@ -c $<
  33. + $(CC) $(CFLAGS) $(AOFLAGS) -MT $@ -MMD -MP -MF $*.Po -o $@ -c $<
  34. %.o: %.c
  35. $(CC) $(CFLAGS) $(OFLAGS) -MT $@ -MMD -MP -MF $*.Po -o $@ -c $<