diff options
author | rillig <rillig@pkgsrc.org> | 2006-02-11 13:06:43 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-02-11 13:06:43 +0000 |
commit | e7d134db03bc076ed722c33992304ef2d9eba33d (patch) | |
tree | b8d96e4badb845295e5dc45849cfd015988ce6ec /graphics/pornview/patches/patch-ad | |
parent | 7135541b60e4955ae3fe4efd6e703c8861cd7a26 (diff) | |
download | pkgsrc-e7d134db03bc076ed722c33992304ef2d9eba33d.tar.gz |
Imported pornview from pkgsrc-wip.
PornView is an image and movie viewer/manager with thumbnail previews.
Additional features includes thumbnail caching, directory tree views,
adjustable zoom, fullscreen view, and slideshow mode.
PornView contains no objectionable content.
This package is built with GTK+ 1.0 support.
Packaged by David Howland.
Diffstat (limited to 'graphics/pornview/patches/patch-ad')
-rw-r--r-- | graphics/pornview/patches/patch-ad | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/graphics/pornview/patches/patch-ad b/graphics/pornview/patches/patch-ad new file mode 100644 index 00000000000..5a9b1d24014 --- /dev/null +++ b/graphics/pornview/patches/patch-ad @@ -0,0 +1,76 @@ +$NetBSD: patch-ad,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $ + +--- src/support/widgets/gtkmplayer.c.orig 2002-12-13 11:15:21.000000000 +0000 ++++ src/support/widgets/gtkmplayer.c +@@ -30,6 +30,7 @@ + #include <errno.h> + #include <ctype.h> + #include <math.h> ++#include <signal.h> + + #include <gtk/gtk.h> + #include <gdk/gdkx.h> +@@ -72,9 +73,9 @@ struct ChildContext_Tag + int stderr_fd; + int stdin_fd; + +- gchar stdout[GTK_MPLAYER_BUF_SIZE]; ++ gchar stdoutb[GTK_MPLAYER_BUF_SIZE]; + gint stdout_size; +- gchar stderr[GTK_MPLAYER_BUF_SIZE]; ++ gchar stderrb[GTK_MPLAYER_BUF_SIZE]; + gint stderr_size; + + ProcessLineFunc process_line_fn; +@@ -1049,13 +1050,13 @@ start_command (GtkMPlayer * player, GLis + context->stdout_fd = out_fd[0]; + fcntl (context->stdout_fd, F_SETFL, O_NONBLOCK); + close (out_fd[1]); +- context->stdout[0] = '\0'; ++ context->stdoutb[0] = '\0'; + context->stdout_size = 0; + + context->stderr_fd = err_fd[0]; + fcntl (context->stderr_fd, F_SETFL, O_NONBLOCK); + close (err_fd[1]); +- context->stderr[0] = '\0'; ++ context->stderrb[0] = '\0'; + context->stderr_size = 0; + + context->stdin_fd = in_fd[1]; +@@ -1193,7 +1194,7 @@ process_output (ChildContext * context) + + if (size > 0 && size < GTK_MPLAYER_BUF_SIZE) + { +- memcpy (buf, context->stderr, size); ++ memcpy (buf, context->stderrb, size); + next = buf + size; + } + else +@@ -1211,7 +1212,7 @@ process_output (ChildContext * context) + size += MIN (GTK_MPLAYER_BUF_SIZE - 1, n); + + process_lines (context, buf, size, +- context->stderr, &context->stderr_size, TRUE); ++ context->stderrb, &context->stderr_size, TRUE); + } + + /* +@@ -1221,7 +1222,7 @@ process_output (ChildContext * context) + + if (size > 0 && size < GTK_MPLAYER_BUF_SIZE) + { +- memcpy (buf, context->stdout, size); ++ memcpy (buf, context->stdoutb, size); + next = buf + size; + } + else +@@ -1240,7 +1241,7 @@ process_output (ChildContext * context) + pos = context->player->pos; + + process_lines (context, buf, size, +- context->stdout, &context->stdout_size, FALSE); ++ context->stdoutb, &context->stdout_size, FALSE); + + if (fabs (context->player->pos - pos) > 0.1) + gtk_signal_emit (GTK_OBJECT (context->player), |