From ee0f866e6080a8e3b3b8b0bf0860057cdf8839d85df764b06f2aff29d33dc506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Mon, 16 Feb 2015 14:33:44 +0000 Subject: [PATCH] Accepting request 286029 from home:Zaitor:branches:GNOME:Factory Got bored of waiting for a upstream stable release, so adding the most important (imho) missing patch. OBS-URL: https://build.opensuse.org/request/show/286029 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=269 --- ...power-fix-initial-state-of-Bluetooth.patch | 26 +++++++++++++++++++ gnome-control-center.changes | 8 ++++++ gnome-control-center.spec | 5 +++- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 gnome-control-center-power-fix-initial-state-of-Bluetooth.patch diff --git a/gnome-control-center-power-fix-initial-state-of-Bluetooth.patch b/gnome-control-center-power-fix-initial-state-of-Bluetooth.patch new file mode 100644 index 0000000..2800fcf --- /dev/null +++ b/gnome-control-center-power-fix-initial-state-of-Bluetooth.patch @@ -0,0 +1,26 @@ +From aa594a7f145a88b737b781375c0f5bf681a43c74 Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Wed, 28 Jan 2015 16:20:23 +0100 +Subject: power: Fix initial state of Bluetooth switch + +The initial state of the switch was never set, so if it happened to be +on, the switch didn't match reality. + +https://bugzilla.gnome.org/show_bug.cgi?id=725654 + +diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c +index 9b0449e..5df8049 100644 +--- a/panels/power/cc-power-panel.c ++++ b/panels/power/cc-power-panel.c +@@ -1663,6 +1663,8 @@ add_power_saving_section (CcPowerPanel *self) + G_CALLBACK (bt_powered_state_changed), self); + g_signal_connect (G_OBJECT (priv->bt_switch), "notify::active", + G_CALLBACK (bt_switch_changed), self); ++ ++ bt_powered_state_changed (self); + } + #endif + +-- +cgit v0.10.1 + diff --git a/gnome-control-center.changes b/gnome-control-center.changes index 064170c..847e530 100644 --- a/gnome-control-center.changes +++ b/gnome-control-center.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Feb 13 21:53:31 UTC 2015 - zaitor@opensuse.org + +- Add + gnome-control-center-power-fix-initial-state-of-Bluetooth.patch: + The initial state of the switch was never set, so if it happened + to be on, the switch didn't match reality (bgo#725654). + ------------------------------------------------------------------- Tue Jan 27 16:24:06 UTC 2015 - dimstar@opensuse.org diff --git a/gnome-control-center.spec b/gnome-control-center.spec index 5c28b32..3f7a628 100644 --- a/gnome-control-center.spec +++ b/gnome-control-center.spec @@ -1,7 +1,7 @@ # # spec file for package gnome-control-center # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -49,6 +49,8 @@ Patch16: gnome-control-center-probe-radius-server-cert.patch Patch17: gnome-control-center-follow-polkit-permissions-for-tz.patch # PATCH-FIX-UPSTREAM gnome-control-center-NM-1.0.patch dimstar@opensuse.org -- Allow to operate with NetworkManager 1.0 Patch18: gnome-control-center-NM-1.0.patch +# PATCH-FIX-UPSTREAM gnome-control-center-power-fix-initial-state-of-Bluetooth.patch bgo#725654 zaitor@opensuse.org. -- Fix initial state of Bluetooth switch, taken from upstream git. +Patch19: gnome-control-center-power-fix-initial-state-of-Bluetooth.patch BuildRequires: cups-devel BuildRequires: desktop-file-utils BuildRequires: fdupes @@ -187,6 +189,7 @@ translation-update-upstream #NEEDS-REBASE #patch14 -p1 %patch18 -p1 +%patch19 -p1 %build ACLOCAL_FLAGS="-I libgd" NOCONFIGURE=1 gnome-autogen.sh