From 8ba50267bed318cae35a40cd20f3067856e7c93b Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 30 Oct 2013 12:03:33 +0100 Subject: [PATCH] display: Update for libupower-glib API changes There's no "changed" signal anymore. --- panels/display/cc-display-panel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c index f170d51..775b48d 100644 --- a/panels/display/cc-display-panel.c +++ b/panels/display/cc-display-panel.c @@ -2261,6 +2261,7 @@ mapped_cb (CcDisplayPanel *panel) static void cc_display_panel_up_client_changed (UpClient *client, + GParamSpec *pspec, CcDisplayPanel *self) { CcDisplayPanelPrivate *priv = self->priv; @@ -2352,9 +2353,9 @@ cc_display_panel_init (CcDisplayPanel *self) * https://bugs.freedesktop.org/show_bug.cgi?id=43001 */ - g_signal_connect (self->priv->up_client, "changed", + g_signal_connect (self->priv->up_client, "notify::lid-is-closed", G_CALLBACK (cc_display_panel_up_client_changed), self); - cc_display_panel_up_client_changed (self->priv->up_client, self); + cc_display_panel_up_client_changed (self->priv->up_client, NULL, self); } else g_clear_object (&self->priv->up_client); -- 1.8.4