summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/gtkmm2ext/actions.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext/actions.h')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/actions.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/actions.h b/libs/gtkmm2ext/gtkmm2ext/actions.h
index 780c846d58..8eae2eeb6b 100644
--- a/libs/gtkmm2ext/gtkmm2ext/actions.h
+++ b/libs/gtkmm2ext/gtkmm2ext/actions.h
@@ -21,6 +21,7 @@
#define __libgtkmm2ext_actions_h__
#include <vector>
+#include <exception>
#include <gtkmm/action.h>
#include <gtkmm/radioaction.h>
@@ -51,6 +52,14 @@ namespace ActionManager {
*
*/
+ class LIBGTKMM2EXT_API MissingActionException : public std::exception {
+ public:
+ MissingActionException (std::string const & str);
+ const char *what() const throw();
+ private:
+ std::string missing_action_name;
+ };
+
LIBGTKMM2EXT_API extern void init ();
LIBGTKMM2EXT_API extern std::string unbound_string; /* the key string returned if an action is not bound */