Merge lp:~rodrigo-moya/ubuntu/natty/gnome-settings-daemon/fix-750334 into lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu

Proposed by Rodrigo Moya
Status: Merged
Merged at revision: 140
Proposed branch: lp:~rodrigo-moya/ubuntu/natty/gnome-settings-daemon/fix-750334
Merge into: lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu
Diff against target: 78 lines (+55/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/17_react_when_streams_removed.patch (+47/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~rodrigo-moya/ubuntu/natty/gnome-settings-daemon/fix-750334
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+58311@code.launchpad.net
To post a comment you must log in.
143. By Rodrigo Moya

Add git format-patch instead

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-04-07 11:04:54 +0000
3+++ debian/changelog 2011-04-19 14:51:34 +0000
4@@ -1,3 +1,10 @@
5+gnome-settings-daemon (2.32.1-0ubuntu14) natty; urgency=low
6+
7+ * debian/patches/17_react_when_streams_removed.patch:
8+ - Add patch to react when mixer streams are removed (LP: #750334)
9+
10+ -- Rodrigo Moya <rodrigo.moya@canonical.com> Fri, 15 Apr 2011 12:48:20 +0200
11+
12 gnome-settings-daemon (2.32.1-0ubuntu13) natty; urgency=low
13
14 * debian/patches/05_use_xrecord.patch:
15
16=== added file 'debian/patches/17_react_when_streams_removed.patch'
17--- debian/patches/17_react_when_streams_removed.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/17_react_when_streams_removed.patch 2011-04-19 14:51:34 +0000
19@@ -0,0 +1,47 @@
20+From c9a6a27aa766b31d9f32d182b1de5886793e906b Mon Sep 17 00:00:00 2001
21+From: Rodrigo Moya <rodrigo@gnome-db.org>
22+Date: Tue, 19 Apr 2011 15:59:35 +0200
23+Subject: [PATCH] media-keys: React to stream-removed signal from GvcMixerControl
24+
25+---
26+ plugins/media-keys/gsd-media-keys-manager.c | 17 +++++++++++++++++
27+ 1 files changed, 17 insertions(+), 0 deletions(-)
28+
29+diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
30+index b563f73..1f18074 100644
31+--- a/plugins/media-keys/gsd-media-keys-manager.c
32++++ b/plugins/media-keys/gsd-media-keys-manager.c
33+@@ -794,6 +794,19 @@ on_control_default_sink_changed (GvcMixerControl *control,
34+ update_default_sink (manager);
35+ }
36+
37++static void
38++on_control_stream_removed (GvcMixerControl *control,
39++ guint id,
40++ GsdMediaKeysManager *manager)
41++{
42++ if (manager->priv->stream != NULL) {
43++ if (gvc_mixer_stream_get_id (manager->priv->stream) == id) {
44++ g_object_unref (manager->priv->stream);
45++ manager->priv->stream = NULL;
46++ }
47++ }
48++}
49++
50+ #endif /* HAVE_PULSE */
51+
52+ static gint
53+@@ -1118,6 +1131,10 @@ gsd_media_keys_manager_start (GsdMediaKeysManager *manager,
54+ "default-sink-changed",
55+ G_CALLBACK (on_control_default_sink_changed),
56+ manager);
57++ g_signal_connect (manager->priv->volume,
58++ "stream-removed",
59++ G_CALLBACK (on_control_stream_removed),
60++ manager);
61+
62+ gvc_mixer_control_open (manager->priv->volume);
63+
64+--
65+1.7.2.3
66+
67
68=== modified file 'debian/patches/series'
69--- debian/patches/series 2011-04-07 10:34:45 +0000
70+++ debian/patches/series 2011-04-19 14:51:34 +0000
71@@ -8,6 +8,7 @@
72 07_dont_display_autostart.patch
73 12_monitor_network_fs.patch
74 16_use_synchronous_notifications.patch
75+17_react_when_streams_removed.patch
76 30_pkgconfig-path.patch
77 32-datetime-service-add-ntp-support.patch
78 33-datetime-service-ubuntu-ntp.patch

Subscribers

People subscribed via source and target branches

to all changes: