[xfce4-genmon-plugin] Upload missing patch

Christoph Wickert cwickert at fedoraproject.org
Sat Dec 11 23:38:15 UTC 2010


commit 7f339829f764901841a3a22bc8ee2b4dd4fceafc
Author: Christoph Wickert <cwickert at fedoraproject.org>
Date:   Sun Dec 12 00:38:06 2010 +0100

    Upload missing patch

 xfce4-genmon-plugin-3.2-no-zombies.patch |   32 ++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/xfce4-genmon-plugin-3.2-no-zombies.patch b/xfce4-genmon-plugin-3.2-no-zombies.patch
new file mode 100644
index 0000000..c3e054d
--- /dev/null
+++ b/xfce4-genmon-plugin-3.2-no-zombies.patch
@@ -0,0 +1,32 @@
+--- a/panel-plugin/main.c       2008-03-15 15:38:18.000000000 -0700
++++ a/panel-plugin/main.c       2008-04-16 12:46:22.000000000 -0700
+@@ -32,6 +32,7 @@ 
+ 
+ #include <libxfce4util/libxfce4util.h>
+ #include <libxfcegui4/dialogs.h>
++#include <libxfcegui4/xfce-exec.h>
+ #include <libxfce4panel/xfce-panel-plugin.h>
+ #include <libxfce4panel/xfce-panel-convenience.h>
+ 
+@@ -94,10 +95,18 @@ 
+ {
+     struct genmon_t *poPlugin = (genmon_t *) p_pvPlugin;
+     struct monitor_t *poMonitor = &(poPlugin->oMonitor);
+-    char result[256];
++    GError *error = NULL;
++
++       xfce_exec(poMonitor->onClickCmd, 0, 0, &error);
++    if (error) {
++        char first[256];
++        g_snprintf (first, sizeof(first), _("Could not run \"%s\""), poMonitor->onClickCmd);
++        xfce_message_dialog (NULL, _("Xfce Panel"), 
++                             GTK_STOCK_DIALOG_ERROR, first, error->message,
++                             GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL);
++        g_error_free (error);
++    }
+ 
+-    genmon_SpawnCmd (poMonitor->onClickCmd, result,
+-        sizeof (poMonitor->onClickCmd), 0);
+ }
+ 
+ /**************************************************************/


More information about the scm-commits mailing list