aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/lazy_init.patch
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-02-14 19:41:28 +0100
committerSebastien Bacher <seb128@ubuntu.com>2012-02-14 19:41:28 +0100
commitf869dde973a34bd1a148cca008639c3b3ae19292 (patch)
tree6de41b911d1a0fd2b9b5150f351174c36a4b8808 /debian/patches/lazy_init.patch
parent46ce85550e1349998561f82146a3828cc94e311e (diff)
parent302256286a5e443a67592b7addd02c0633531cfc (diff)
downloadayatana-indicator-sound-f869dde973a34bd1a148cca008639c3b3ae19292.tar.gz
ayatana-indicator-sound-f869dde973a34bd1a148cca008639c3b3ae19292.tar.bz2
ayatana-indicator-sound-f869dde973a34bd1a148cca008639c3b3ae19292.zip
* New upstream release.
- No easy way to turn the sound menu on/off (lp: #829648) - Avoid spawning notification daemon at startup (lp: #912150) - Creation of album-art-cache folder (lp: #799383) - schema id & path are inconsistent with other indicators (lp: #914377)
Diffstat (limited to 'debian/patches/lazy_init.patch')
-rw-r--r--debian/patches/lazy_init.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/debian/patches/lazy_init.patch b/debian/patches/lazy_init.patch
deleted file mode 100644
index cc0fe17..0000000
--- a/debian/patches/lazy_init.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Description: Avoid spawning notification daemon right at startup, instead initialize it lazily when actually doing a notification. Improves boot speed.
-Bug: https://launchpad.net/bugs/912150
-Author: Martin Pitt <martin.pitt@ubuntu.com>
-Forwarded: https://code.launchpad.net/~pitti/indicator-sound/lazy-notification-init/+merge/87576
-
---- a/src/sound-state-manager.c 2011-04-05 03:14:19 +0000
-+++ b/src/sound-state-manager.c 2012-01-05 08:46:07 +0000
-@@ -80,8 +80,6 @@
-
- priv->settings_manager = g_settings_new("com.canonical.indicators.sound");
-
-- sound_state_manager_notification_init (self);
--
- sound_state_manager_prepare_state_image_names (self);
- sound_state_manager_prepare_blocked_animation (self);
-
-@@ -134,6 +132,13 @@
- static void
- sound_state_manager_notification_init (SoundStateManager* self)
- {
-+ static gboolean initialized = FALSE;
-+
-+ /* one-time lazy initialization */
-+ if (initialized)
-+ return;
-+ initialized = TRUE;
-+
- SoundStateManagerPrivate* priv = SOUND_STATE_MANAGER_GET_PRIVATE(self);
-
- if (!notify_init(PACKAGE_NAME))
-@@ -164,6 +169,8 @@
- {
- SoundStateManagerPrivate* priv = SOUND_STATE_MANAGER_GET_PRIVATE(self);
-
-+ sound_state_manager_notification_init (self);
-+
- if (priv->notification == NULL ||
- g_settings_get_boolean (priv->settings_manager, "show-notify-osd-on-scroll") == FALSE){
- return;
-