[gnome-documents] application: Support parameter_type for stateless actions
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: Support parameter_type for stateless actions
- Date: Thu, 18 Jun 2015 14:31:22 +0000 (UTC)
commit 120c068746f8596d66389bbe8e5072b004cce9f3
Author: Alessandro Bono <shadow openaliasbox org>
Date: Thu Jun 18 15:58:53 2015 +0200
application: Support parameter_type for stateless actions
We don't have any such action at the moment, so this for the sake of
consistency and completeness.
https://bugzilla.gnome.org/show_bug.cgi?id=726450
src/application.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index cd42545..26437c6 100644
--- a/src/application.js
+++ b/src/application.js
@@ -289,7 +289,8 @@ const Application = new Lang.Class({
action = Gio.SimpleAction.new_stateful(actionEntry.name,
parameterType, actionEntry.state);
else
- action = new Gio.SimpleAction({ name: actionEntry.name });
+ action = new Gio.SimpleAction({ name: actionEntry.name,
+ parameter_type: parameterType });
if (actionEntry.create_hook)
actionEntry.create_hook.apply(this, [action]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]