[gnome-control-center/wip/applications] applications: Fix crash in privacy panel link
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/applications] applications: Fix crash in privacy panel link
- Date: Sat, 5 Jan 2019 21:50:39 +0000 (UTC)
commit 9cf69aea99066c50ddb0f5fe15fe23b9df0ddcb0
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 5 16:46:45 2019 -0500
applications: Fix crash in privacy panel link
The signal handler needs to return TRUE. Oops
panels/applications/cc-applications-panel.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index 6822e6f4c..e5dbce0e9 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -130,7 +130,7 @@ enum
/* Callbacks */
-static void
+static gboolean
privacy_link_cb (CcApplicationsPanel *self)
{
CcShell *shell = cc_panel_get_shell (CC_PANEL (self));
@@ -138,6 +138,8 @@ privacy_link_cb (CcApplicationsPanel *self)
if (!cc_shell_set_active_panel_from_id (shell, "privacy", NULL, &error))
g_warning ("Failed to switch to privacy panel: %s", error->message);
+
+ return TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]