Dominique Leuenberger
7e6e98030b
- Add gnome-control-center-upower-DeviceChanged-signal.patch, gnome-control-center-upower-display.patch, gnome-control-center-upower-fix-build.patch, gnome-control-center-upower-icons.patch, gnome-control-center-upower-changed-signal.patch -- update for libupower-glib API changes, from 3.11. - Up libupower-glib dependency OBS-URL: https://build.opensuse.org/request/show/211794 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=230
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 8ba50267bed318cae35a40cd20f3067856e7c93b Mon Sep 17 00:00:00 2001
|
|
From: Bastien Nocera <hadess@hadess.net>
|
|
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
|
|
|