diff options
author | Stefano Karapetsas <[email protected]> | 2014-10-15 12:04:27 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-10-15 12:04:27 +0200 |
commit | fac066f2db02e2d370a1c227508ec315ffb127c2 (patch) | |
tree | 1e08695dc82a0cf30673d7000582f5fd02b4963b | |
parent | e90e46ed381f215e05d1739b27506fd16c30e0eb (diff) | |
download | mate-media-fac066f2db02e2d370a1c227508ec315ffb127c2.tar.bz2 mate-media-fac066f2db02e2d370a1c227508ec315ffb127c2.tar.xz |
Fix opening of mate-volume-control from status icon
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | mate-volume-control/src/gvc-stream-status-icon.c | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 91b9074..b1ff545 100644 --- a/configure.ac +++ b/configure.ac @@ -124,7 +124,7 @@ if test "x$enable_pulseaudio" != "xno"; then libcanberra-gtk$CANBERRA_API_VERSION >= $CANBERRA_REQUIRED_VERSION unique-$UNIQUE_API_VERSION libxml-2.0 -dnl mate-desktop-2.0 >= $MATE_DESKTOP_REQUIRED_VERSION + mate-desktop-2.0 >= $MATE_DESKTOP_REQUIRED_VERSION libmatemixer ) diff --git a/mate-volume-control/src/gvc-stream-status-icon.c b/mate-volume-control/src/gvc-stream-status-icon.c index b7c1b73..3ede4b1 100644 --- a/mate-volume-control/src/gvc-stream-status-icon.c +++ b/mate-volume-control/src/gvc-stream-status-icon.c @@ -26,9 +26,8 @@ #include <libmatemixer/matemixer.h> -//#define MATE_DESKTOP_USE_UNSTABLE_API - -//#include <libmate-desktop/mate-desktop-utils.h> +#define MATE_DESKTOP_USE_UNSTABLE_API +#include <libmate-desktop/mate-desktop-utils.h> #include "gvc-channel-bar.h" #include "gvc-stream-status-icon.h" @@ -219,11 +218,10 @@ on_menu_activate_open_volume_control (GtkMenuItem *item, { GError *error = NULL; -/* - mate_spawn_command_line_on_screen (gtk_widget_get_screen (icon->priv->dock), - "mate-volume-control", - &error); - */ + mate_gdk_spawn_command_line_on_screen (gtk_widget_get_screen (icon->priv->dock), + "mate-volume-control", + &error); + if (error != NULL) { GtkWidget *dialog; |