diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2013-09-05 21:55:17 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2013-09-05 21:55:17 +0000 |
commit | 8136a2a264180fd8a41dbbb4a7334a2ce8b347fc (patch) | |
tree | c93737153e977597c829b214d25af1649f8dfb2a /x11/gnome-swallow | |
parent | 458a779c787ac152104094cce6f48887a9b1dcee (diff) | |
download | ports-8136a2a264180fd8a41dbbb4a7334a2ce8b347fc.tar.gz ports-8136a2a264180fd8a41dbbb4a7334a2ce8b347fc.zip |
Notes
Diffstat (limited to 'x11/gnome-swallow')
-rw-r--r-- | x11/gnome-swallow/files/patch-gnome-swallow.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/x11/gnome-swallow/files/patch-gnome-swallow.c b/x11/gnome-swallow/files/patch-gnome-swallow.c index 49b5b5c1fba6..3f69db4716fb 100644 --- a/x11/gnome-swallow/files/patch-gnome-swallow.c +++ b/x11/gnome-swallow/files/patch-gnome-swallow.c @@ -1,12 +1,20 @@ ---- gnome-swallow.c.orig Fri Sep 12 00:21:55 2003 -+++ gnome-swallow.c Sun Apr 24 00:28:34 2005 -@@ -1,3 +1,5 @@ +--- gnome-swallow.c.orig 2003-09-12 00:21:55.000000000 -0400 ++++ gnome-swallow.c 2013-09-05 17:51:55.000000000 -0400 +@@ -1,5 +1,8 @@ +#include <sys/types.h> +#include <sys/time.h> #include <string.h> #include <stdio.h> ++#include <stdlib.h> #include <signal.h> -@@ -55,7 +57,7 @@ gboolean swallow(char* wantedWindow, Dis + #include <sys/wait.h> + +@@ -51,11 +54,11 @@ gboolean swallow(char* wantedWindow, Dis + struct timeval tv; + char ret; + +- if(! display) return; /* WTF? */ ++ if(! display) return FALSE; /* WTF? */ XSync (display, FALSE); @@ -15,7 +23,7 @@ now = start = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); while (ready == FALSE && now < (start + 10.0)) -@@ -131,7 +133,7 @@ gboolean swallow(char* wantedWindow, Dis +@@ -131,7 +134,7 @@ gboolean swallow(char* wantedWindow, Dis fprintf(stderr,"Loop"); gtk_main_iteration_do(FALSE); @@ -24,7 +32,7 @@ now = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); } -@@ -249,13 +251,13 @@ void exitProgram(GtkWidget* w, gpointer +@@ -249,13 +252,13 @@ void exitProgram(GtkWidget* w, gpointer void forkApplet(struct AppletConfigure* ap) { if(ap->pid > -1) { |