[gnome-control-center] Revert "Revert "display: Update for libupower-glib API changes""



commit 71dc845389cc0b8e3847cee9fa4500b1c66c006b
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 17 19:57:25 2014 +0100

    Revert "Revert "display: Update for libupower-glib API changes""
    
    This was never meant to be pushed.
    
    This reverts commit f5b6fac3769894cb859e3bbe03dba1bd3b8339e6.

 panels/display/cc-display-panel.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index e0b9566..d64b17f 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -2326,6 +2326,7 @@ mapped_cb (CcDisplayPanel *panel)
 
 static void
 cc_display_panel_up_client_changed (UpClient       *client,
+                                    GParamSpec     *pspec,
                                     CcDisplayPanel *self)
 {
   CcDisplayPanelPrivate *priv = self->priv;
@@ -2417,9 +2418,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]