diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-12 08:57:17 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-12 08:57:59 -0600 |
commit | 2084a3916830f3f640bcfb0e205b2aa1e1ad9750 (patch) | |
tree | 4440fefdab15a1533b7323c526c0cf873cc56635 /libs/gtkmm2ext/gtkmm2ext | |
parent | 920a77f6af7a35fd2b0c03d600e1d3faa9ce5951 (diff) |
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
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/bindings.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<Gtk::Action> action; + mutable Glib::RefPtr<Gtk::Action> action; }; typedef std::map<KeyboardKey,ActionInfo> 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; |