[gnome-documents] application: Use g_action_change_state
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: Use g_action_change_state
- Date: Fri, 22 Apr 2016 20:28:15 +0000 (UTC)
commit 122227330f0cc109d0558efca524d3b3668e8739
Author: Alessandro Bono <abono gnome org>
Date: Sat Apr 9 14:53:22 2016 +0200
application: Use g_action_change_state
According to: https://developer.gnome.org/gio/stable/GSimpleAction.html#g-simple-action-set-state
https://bugzilla.gnome.org/show_bug.cgi?id=765342
src/application.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 78e435f..843626c 100644
--- a/src/application.js
+++ b/src/application.js
@@ -185,7 +185,7 @@ const Application = new Lang.Class({
function() {
let state = settings.get_value('view-as');
if (state.get_string()[0] != action.state.get_string()[0])
- action.state = state;
+ action.change_state(state);
}));
},
@@ -194,7 +194,7 @@ const Application = new Lang.Class({
function() {
let state = settings.get_value('night-mode');
if (state.get_boolean() != action.state.get_boolean())
- action.state = state;
+ action.change_state(state);
let gtkSettings = Gtk.Settings.get_default();
gtkSettings.gtk_application_prefer_dark_theme = state.get_boolean();
@@ -210,7 +210,7 @@ const Application = new Lang.Class({
function() {
let state = settings.get_value('sort-by');
if (state.get_string()[0] != action.state.get_string()[0])
- action.state = state;
+ action.change_state(state);
}));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]