[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 01/01: Fix xfce_dialog_show_help usage, link to new docs.xfce page
noreply at xfce.org
noreply at xfce.org
Sun Sep 3 02:44:03 CEST 2017
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-pulseaudio-plugin.
commit adc16b9af644f2d50f46d56fc6095fd4ba6bbb7c
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sat Sep 2 20:43:55 2017 -0400
Fix xfce_dialog_show_help usage, link to new docs.xfce page
---
panel-plugin/pulseaudio-dialog.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/panel-plugin/pulseaudio-dialog.c b/panel-plugin/pulseaudio-dialog.c
index d9c1d39..2ee18db 100644
--- a/panel-plugin/pulseaudio-dialog.c
+++ b/panel-plugin/pulseaudio-dialog.c
@@ -43,7 +43,7 @@
#include "pulseaudio-dialog.h"
#include "pulseaudio-dialog_ui.h"
-#define PLUGIN_WEBSITE "http://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin"
+#define PLUGIN_WEBSITE "https://docs.xfce.org/apps/pulseaudio-plugin/start"
#ifdef LIBXFCE4UI_CHECK_VERSION
#if LIBXFCE4UI_CHECK_VERSION (4, 9, 0)
@@ -227,25 +227,24 @@ static void
pulseaudio_dialog_help_button_clicked (PulseaudioDialog *dialog,
GtkWidget *button)
{
- //#ifndef HAS_ONLINE_HELP
+ #ifndef HAS_ONLINE_HELP
gboolean result;
- //#endif
+ #endif
g_return_if_fail (IS_PULSEAUDIO_DIALOG (dialog));
g_return_if_fail (GTK_IS_BUTTON (button));
g_return_if_fail (GTK_IS_WINDOW (dialog->dialog));
- /* FIXME: Doesn't seem to work */
- //#ifdef HAS_ONLINE_HELP
- //xfce_dialog_show_help (GTK_WINDOW (dialog->dialog), "xfce4-pulseaudio", "dialog", NULL);
- //#else
+ #ifdef HAS_ONLINE_HELP
+ xfce_dialog_show_help (GTK_WINDOW (dialog->dialog), "pulseaudio-plugin", "start", NULL);
+ #else
result = g_spawn_command_line_async ("exo-open --launch WebBrowser " PLUGIN_WEBSITE, NULL);
if (G_UNLIKELY (result == FALSE))
g_warning ("Unable to open the following url: %s", PLUGIN_WEBSITE);
- //#endif
+ #endif
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list