diff options
author | marcus <marcus@FreeBSD.org> | 2006-12-29 04:55:36 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2006-12-29 04:55:36 +0800 |
commit | 54a17cf463d7e04cade7817f21d705eb49a3faf8 (patch) | |
tree | ef0ff2e59a5d32664d439fd0415f2902d49e9039 /x11-toolkits/gtk20 | |
parent | 13c4d0612c9c30bc21686b5e8c2553c9d4fdafef (diff) | |
download | freebsd-ports-graphics-54a17cf463d7e04cade7817f21d705eb49a3faf8.tar.gz freebsd-ports-graphics-54a17cf463d7e04cade7817f21d705eb49a3faf8.tar.zst freebsd-ports-graphics-54a17cf463d7e04cade7817f21d705eb49a3faf8.zip |
Fix LPR printing for applications that use gtkprint. See
http://bugzilla.gnome.org/show_bug.cgi?id=390159 for more details.
Reported by: oliver
Diffstat (limited to 'x11-toolkits/gtk20')
-rw-r--r-- | x11-toolkits/gtk20/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/gtk20/files/patch-modules_printbackends_lpr_gtkprintbackendlpr.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index 937047d3b0f..2ee80b8b9fe 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -8,7 +8,7 @@ PORTNAME= gtk PORTVERSION= 2.10.6 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/,} \ ftp://ftp.gtk.org/pub/gtk/v2.10/ \ diff --git a/x11-toolkits/gtk20/files/patch-modules_printbackends_lpr_gtkprintbackendlpr.c b/x11-toolkits/gtk20/files/patch-modules_printbackends_lpr_gtkprintbackendlpr.c new file mode 100644 index 00000000000..c82b4939d12 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-modules_printbackends_lpr_gtkprintbackendlpr.c @@ -0,0 +1,11 @@ +--- modules/printbackends/lpr/gtkprintbackendlpr.c.orig Wed Dec 27 21:25:12 2006 ++++ modules/printbackends/lpr/gtkprintbackendlpr.c Wed Dec 27 21:14:47 2006 +@@ -372,6 +372,8 @@ gtk_print_backend_lpr_print_stream (GtkP + goto out; + } + ++ g_io_channel_set_close_on_unref (ps->in, TRUE); ++ + g_io_add_watch (data_io, + G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP, + (GIOFunc) lpr_write, |