From ea30986e03e54ee650a1cca610904de9f4d0f745 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 6 Mar 2013 22:40:55 -0500 Subject: Remove libsoundmenu (panel plugin) Indicator panel plugins are deprecated. --- debian/control | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 320f8b7..85dac7e 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9.0), autotools-dev, valac-0.18, libglib2.0-dev (>= 2.22.3), - libgtk-3-dev, + libgdk-pixbuf2.0-dev, libdbusmenu-glib-dev (>= 0.5.90), libdbusmenu-gtk3-dev (>= 0.5.90), libindicator3-dev (>= 0.3.90), @@ -20,7 +20,6 @@ Build-Depends: debhelper (>= 9.0), libido3-0.1-dev (>= 0.2.90), libgee-dev, libxml2-dev, - libnotify-dev, Standards-Version: 3.9.3 Homepage: https://launchpad.net/indicator-sound # If you aren't a member of ~indicator-applet-developers but need to upload -- cgit v1.2.3 From e38bff2ef074638c05aa8d57c2c4d09ed7c31780 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Thu, 4 Apr 2013 06:17:10 +0200 Subject: Drop unneeded deps --- configure.ac | 17 ++--------------- debian/control | 5 ----- 2 files changed, 2 insertions(+), 20 deletions(-) (limited to 'debian/control') diff --git a/configure.ac b/configure.ac index 6441b49..d5713a4 100644 --- a/configure.ac +++ b/configure.ac @@ -24,28 +24,15 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) # Dependencies ########################### -POLKIT_REQUIRED_VERSION=0.92 PULSE_AUDIO_REQUIRED_VERSION=0.9.19 -DBUSMENUGLIB_REQUIRED_VERSION=0.3.101 GIO_2_0_REQUIRED_VERSION=2.25.13 PKG_CHECK_MODULES(PULSEAUDIO, libpulse-mainloop-glib >= $PULSE_AUDIO_REQUIRED_VERSION gio-unix-2.0) -AC_SUBST(PULSEAUDIO_CFLAGS) -AC_SUBST(PULSEAUDIO_LIBS) -PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION - indicator3-0.4 - gee-1.0 +PKG_CHECK_MODULES(SOUNDSERVICE, gee-1.0 gio-unix-2.0 - libxml-2.0 - gdk-pixbuf-2.0) - -AC_SUBST(APPLET_CFLAGS) -AC_SUBST(APPLET_LIBS) - -AC_SUBST(SOUNDSERVICE_CFLAGS) -AC_SUBST(SOUNDSERVICE_LIBS) + libxml-2.0) ########################### # gcov coverage reporting diff --git a/debian/control b/debian/control index 85dac7e..338d253 100644 --- a/debian/control +++ b/debian/control @@ -11,13 +11,8 @@ Build-Depends: debhelper (>= 9.0), autotools-dev, valac-0.18, libglib2.0-dev (>= 2.22.3), - libgdk-pixbuf2.0-dev, - libdbusmenu-glib-dev (>= 0.5.90), - libdbusmenu-gtk3-dev (>= 0.5.90), - libindicator3-dev (>= 0.3.90), libpulse-dev (>= 0.9.18), libpulse-mainloop-glib0 (>= 0.9.18), - libido3-0.1-dev (>= 0.2.90), libgee-dev, libxml2-dev, Standards-Version: 3.9.3 -- cgit v1.2.3 From 9d78a433b18fd14af4d3cfa01684c32b93f91966 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 19 Jun 2013 18:40:31 -0400 Subject: Fold all patches into source These patches didn't apply to the current source. They added support for sound settings panels in various desktop environments. We need a better solution for that, which doesn't require patching the source when a desktop environment wants a different command line. --- debian/control | 3 +-- debian/patches/series | 3 --- debian/patches/sound_nua.patch | 20 -------------------- debian/patches/sound_ubuntustudio.patch | 18 ------------------ debian/patches/sound_xubuntu.patch | 17 ----------------- debian/rules | 2 +- po/POTFILES.in | 1 + src/service.vala | 11 ++++++++++- 8 files changed, 13 insertions(+), 62 deletions(-) delete mode 100644 debian/patches/series delete mode 100644 debian/patches/sound_nua.patch delete mode 100644 debian/patches/sound_ubuntustudio.patch delete mode 100644 debian/patches/sound_xubuntu.patch (limited to 'debian/control') diff --git a/debian/control b/debian/control index ee5e310..8abcf59 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,6 @@ XSBC-Original-Maintainer: Conor Curran Build-Depends: debhelper (>= 9.0), dh-autoreconf, dh-translations, - quilt, gnome-common, autotools-dev, valac (>= 0.18), @@ -15,7 +14,7 @@ Build-Depends: debhelper (>= 9.0), libpulse-mainloop-glib0 (>= 0.9.18), libgee-dev, libxml2-dev, -Standards-Version: 3.9.3 +Standards-Version: 3.9.4 Homepage: https://launchpad.net/indicator-sound # If you aren't a member of ~indicator-applet-developers but need to upload # packaging changes, just go ahead. ~indicator-applet-developers will notice diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index 92929c8..0000000 --- a/debian/patches/series +++ /dev/null @@ -1,3 +0,0 @@ -sound_nua.patch -sound_xubuntu.patch -sound_ubuntustudio.patch diff --git a/debian/patches/sound_nua.patch b/debian/patches/sound_nua.patch deleted file mode 100644 index 869ae24..0000000 --- a/debian/patches/sound_nua.patch +++ /dev/null @@ -1,20 +0,0 @@ -=== modified file 'src/sound-service-dbus.c' ---- old/src/sound-service-dbus.c 2012-03-16 17:59:34 +0000 -+++ new/src/sound-service-dbus.c 2012-03-19 14:54:30 +0000 -@@ -227,8 +227,14 @@ - gpointer user_data) - { - GError * error = NULL; -+ gchar* cmd; -+ if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) -+ cmd = "gnome-control-center sound-nua"; -+ else -+ cmd = "gnome-control-center sound"; -+ - if (!g_spawn_command_line_async("gnome-volume-control --page=applications", &error) && -- !g_spawn_command_line_async("gnome-control-center sound", &error) && -+ !g_spawn_command_line_async(cmd, &error) && - !g_spawn_command_line_async("xfce4-mixer", &error)) - { - g_warning("Unable to show dialog: %s", error->message); - diff --git a/debian/patches/sound_ubuntustudio.patch b/debian/patches/sound_ubuntustudio.patch deleted file mode 100644 index 23d27de..0000000 --- a/debian/patches/sound_ubuntustudio.patch +++ /dev/null @@ -1,18 +0,0 @@ -Description: Use pavucontrol on Ubuntu Studio by default - Xfce4-mixer uses gstreamer0.10-pulseaudio, which doesn't provide full access - to all audio channels, only to 'Master'. -Author: Lionel Le Folgoc -Author: Janne Jokitalo (astraljava) -Last-Update: 2012-04-03 - ---- indicator-sound-0.8.5.0.orig/src/sound-service-dbus.c -+++ indicator-sound-0.8.5.0/src/sound-service-dbus.c -@@ -232,6 +232,8 @@ show_sound_settings_dialog (DbusmenuMenu - cmd = "gnome-control-center sound-nua"; - else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu")) - cmd = "pavucontrol"; -+ else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "ubuntustudio")) -+ cmd = "pavucontrol"; - else - cmd = "gnome-control-center sound"; - diff --git a/debian/patches/sound_xubuntu.patch b/debian/patches/sound_xubuntu.patch deleted file mode 100644 index bbf3db2..0000000 --- a/debian/patches/sound_xubuntu.patch +++ /dev/null @@ -1,17 +0,0 @@ -Description: Use pavucontrol on Xubuntu by default - Xfce4-mixer uses gstreamer0.10-pulseaudio, which doesn't provide full access - to all audio channels, only to 'Master'. -Author: Lionel Le Folgoc -Last-Update: 2012-03-21 - ---- indicator-sound-0.8.4.1.orig/src/sound-service-dbus.c -+++ indicator-sound-0.8.4.1/src/sound-service-dbus.c -@@ -230,6 +230,8 @@ show_sound_settings_dialog (DbusmenuMenu - gchar* cmd; - if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) - cmd = "gnome-control-center sound-nua"; -+ else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu")) -+ cmd = "pavucontrol"; - else - cmd = "gnome-control-center sound"; - diff --git a/debian/rules b/debian/rules index bbe2908..2ce3519 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4 %: - dh $@ --with translations,autoreconf,quilt + dh $@ --with translations,autoreconf override_dh_autoreconf: NOCONFIGURE=1 dh_autoreconf ./autogen.sh diff --git a/po/POTFILES.in b/po/POTFILES.in index 71b76e0..09797c8 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,2 +1,3 @@ [encoding: UTF-8] src/service.vala +src/service.c diff --git a/src/service.vala b/src/service.vala index add5658..d638b10 100644 --- a/src/service.vala +++ b/src/service.vala @@ -76,8 +76,17 @@ public class IndicatorSound.Service { uint player_action_update_id; void activate_settings (SimpleAction action, Variant? param) { + var env = Environment.get_variable ("DESKTOP_SESSION"); + string cmd; + if (env == "unity") + cmd = "gnome-control-center sound-nua"; + else if (env == "xubuntu" || env == "ubuntustudio") + cmd = "pavucontrol"; + else + cmd = "gnome-control-center sound"; + try { - Process.spawn_command_line_async ("gnome-control-center sound"); + Process.spawn_command_line_async (cmd); } catch (Error e) { warning ("unable to launch sound settings: %s", e.message); } -- cgit v1.2.3