[gnome-photos] application: Style fix
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Style fix
- Date: Fri, 12 May 2017 15:45:14 +0000 (UTC)
commit b0a2bdba6781399bf155e899586707957cf64eb9
Author: Debarshi Ray <debarshir gnome org>
Date: Fri May 12 14:08:35 2017 +0200
application: Style fix
src/photos-application.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 95547e7..d7a3b78 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -277,12 +277,15 @@ photos_application_action_toggle (GSimpleAction *simple, GVariant *parameter, gp
{
GVariant *state;
GVariant *new_state;
+ gboolean state_value;
state = g_action_get_state (G_ACTION (simple));
g_return_if_fail (state != NULL);
- new_state = g_variant_new ("b", !g_variant_get_boolean (state));
+ state_value = g_variant_get_boolean (state);
+ new_state = g_variant_new ("b", !state_value);
g_action_change_state (G_ACTION (simple), new_state);
+
g_variant_unref (state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]