diff options
author | Adam Petaccia <adam@tpetaccia.com> | 2009-05-06 23:01:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-06 23:04:51 +0800 |
commit | 8cf036faffe5985d34c310ee89b133200380b757 (patch) | |
tree | 953aed4588e04bc8ddd3cbcebee507ce27ae674a /calendar/gui/alarm-notify | |
parent | 28e7ec6a858fe6f8ceaaa22167584bb8f2b1728d (diff) | |
download | gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.tar gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.tar.gz gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.tar.bz2 gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.tar.lz gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.tar.xz gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.tar.zst gsoc2013-evolution-8cf036faffe5985d34c310ee89b133200380b757.zip |
Bug 571496 – Migrate from deprecated gnome_execute to g_spawn/xdg-terminal
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index f3167d813c..859b775607 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -34,7 +34,6 @@ #include <bonobo/bonobo-main.h> #include <gtk/gtk.h> #include <glib/gi18n.h> -#include <libgnome/gnome-exec.h> #include <libgnome/gnome-sound.h> #include <libecal/e-cal-time-util.h> @@ -1759,7 +1758,7 @@ procedure_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id icalattach *attach; const char *url; char *cmd; - int result; + gboolean result = TRUE; d(printf("%s:%d (procedure_notification)\n",__FILE__, __LINE__)); @@ -1793,9 +1792,8 @@ procedure_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id else cmd = (char *) url; - result = 0; if (procedure_notification_dialog (cmd, url)) - result = gnome_execute_shell (NULL, cmd); + result = g_spawn_command_line_async (cmd, NULL); if (cmd != (char *) url) g_free (cmd); @@ -1803,7 +1801,7 @@ procedure_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id icalattach_unref (attach); /* Fall back to display notification if we got an error */ - if (result < 0) + if (result == FALSE) goto fallback; return; @@ -1813,8 +1811,6 @@ procedure_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id display_notification (trigger, cqa, alarm_id, FALSE); } - - static gboolean check_midnight_refresh (gpointer user_data) { |