From 2084a3916830f3f640bcfb0e205b2aa1e1ad9750 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 12 Apr 2020 08:57:17 -0600 Subject: some tweaks to Bindings API to allow ::is_bound() to indicate the action path for an existing binding Plus some minor comment additions and cleanups --- libs/gtkmm2ext/gtkmm2ext/bindings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/gtkmm2ext/gtkmm2ext') diff --git a/libs/gtkmm2ext/gtkmm2ext/bindings.h b/libs/gtkmm2ext/gtkmm2ext/bindings.h index fc1e5c39fb..34b2cd4cce 100644 --- a/libs/gtkmm2ext/gtkmm2ext/bindings.h +++ b/libs/gtkmm2ext/gtkmm2ext/bindings.h @@ -113,7 +113,7 @@ class LIBGTKMM2EXT_API Bindings { std::string action_name; std::string group_name; /* may be empty */ - Glib::RefPtr action; + mutable Glib::RefPtr action; }; typedef std::map KeybindingMap; @@ -140,7 +140,7 @@ class LIBGTKMM2EXT_API Bindings { void remove (MouseButton, Operation); bool activate (MouseButton, Operation); - bool is_bound (KeyboardKey const&, Operation) const; + bool is_bound (KeyboardKey const&, Operation, std::string* path = 0) const; std::string bound_name (KeyboardKey const&, Operation) const; bool is_registered (Operation op, std::string const& action_name) const; -- cgit v1.2.3