[gnote] Allow addins to have actions with int state
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Allow addins to have actions with int state
- Date: Wed, 30 Dec 2015 18:38:24 +0000 (UTC)
commit bae2c24165024d39af9685ef84d019939d61912c
Author: Aurimas Černius <aurisc4 gmail com>
Date: Wed Dec 30 20:13:56 2015 +0200
Allow addins to have actions with int state
src/addininfo.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/addininfo.cpp b/src/addininfo.cpp
index 06642a4..59c2844 100644
--- a/src/addininfo.cpp
+++ b/src/addininfo.cpp
@@ -103,6 +103,7 @@ void AddinInfo::load_from_file(const std::string & info_file)
if(addin_info.has_group(ADDIN_ACTIONS)) {
load_actions(addin_info, "actions_void", NULL);
load_actions(addin_info, "actions_bool", &Glib::Variant<bool>::variant_type());
+ load_actions(addin_info, "actions_int", &Glib::Variant<gint32>::variant_type());
load_actions(addin_info, "actions_string", &Glib::Variant<Glib::ustring>::variant_type());
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]