[gnome-software] Fix binding the enabled property of the wrapper and real actions
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Fix binding the enabled property of the wrapper and real actions
- Date: Fri, 8 Dec 2017 15:58:17 +0000 (UTC)
commit 5a8f83ad50d2edd68ea9d305d7c90ba3e8a33f44
Author: Joaquim Rocha <jrocha endlessm com>
Date: Wed Dec 6 10:51:17 2017 +0100
Fix binding the enabled property of the wrapper and real actions
The patch that fixes enabling/disabling the sources action used
the action name incorrectly when binding the wrapper and real actions'
"enabled" property (it included the "notify::" prefix).
This patch removes that wrong prefix.
src/gs-application.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 3139280..f80bb4d 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -910,8 +910,8 @@ gs_application_add_wrapper_actions (GApplication *application)
g_signal_connect (simple_action, "activate",
G_CALLBACK (wrapper_action_activated_cb),
application);
- g_object_bind_property (simple_action, "notify::enabled", action,
- "notify::enabled", G_BINDING_DEFAULT);
+ g_object_bind_property (simple_action, "enabled", action,
+ "enabled", G_BINDING_DEFAULT);
g_action_map_add_action (G_ACTION_MAP (application),
G_ACTION (simple_action));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]