diff options
author | Markus Dittrich <markusle@gentoo.org> | 2006-02-07 04:37:09 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2006-02-07 04:37:09 +0000 |
commit | 2664bc510f8859c0bcae08935d063e31261a6486 (patch) | |
tree | e50197d53872dd184d0d1af4d9ae9b72f9d1df6f /sci-visualization/gfsview/files | |
parent | Stable on x86; bug #121776 (diff) | |
download | gentoo-2-2664bc510f8859c0bcae08935d063e31261a6486.tar.gz gentoo-2-2664bc510f8859c0bcae08935d063e31261a6486.tar.bz2 gentoo-2-2664bc510f8859c0bcae08935d063e31261a6486.zip |
Initial import (fixes bug #102325). Many thanks to Tim Cera <timcera@earthlink.net> for his ebuild and patches.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sci-visualization/gfsview/files')
-rw-r--r-- | sci-visualization/gfsview/files/digest-gfsview-0.4 | 3 | ||||
-rw-r--r-- | sci-visualization/gfsview/files/gtk-client-events-handling.patch | 35 |
2 files changed, 38 insertions, 0 deletions
diff --git a/sci-visualization/gfsview/files/digest-gfsview-0.4 b/sci-visualization/gfsview/files/digest-gfsview-0.4 new file mode 100644 index 000000000000..5bc0e696e354 --- /dev/null +++ b/sci-visualization/gfsview/files/digest-gfsview-0.4 @@ -0,0 +1,3 @@ +MD5 b352c141754faa7302ac4ba9af29738f gfsview-0.4.tar.gz 299158 +RMD160 77d5bdfec579eddfe3e16478257cf6b9658e4ec8 gfsview-0.4.tar.gz 299158 +SHA256 34b976f742976e07b0671bae5e8a4717f5dd4d0e5afebfa95238e72e7b4908a5 gfsview-0.4.tar.gz 299158 diff --git a/sci-visualization/gfsview/files/gtk-client-events-handling.patch b/sci-visualization/gfsview/files/gtk-client-events-handling.patch new file mode 100644 index 000000000000..f6f9ff7c8099 --- /dev/null +++ b/sci-visualization/gfsview/files/gtk-client-events-handling.patch @@ -0,0 +1,35 @@ +diff -Naur gfsview-0.4/view/gfkgl.c gfsview-0.4-new/view/gfkgl.c +--- gfsview-0.4/view/gfkgl.c 2005-10-11 22:55:13.000000000 +0000 ++++ gfsview-0.4-new/view/gfkgl.c 2006-02-06 20:07:45.000000000 +0000 +@@ -2376,16 +2376,21 @@ + + static gboolean client_event (GtkWidget * view, GdkEventClient * msg) + { +- FILE * fp; +- GfsGl2PSParams * p; +- +- GFK_GL_UNPACK_MSG (msg, fp, p); +- gfs_gl2ps (p, fp, "", view); +- if (fp == stdout || fp == stderr) +- fflush (fp); +- else +- fclose (fp); +- g_free (p); ++ gchar * name = gdk_atom_name (msg->message_type); ++ ++ if (!strcmp (name, "GFS_SAVE_EVENT")) { ++ FILE * fp; ++ GfsGl2PSParams * p; ++ ++ GFK_GL_UNPACK_MSG (msg, fp, p); ++ gfs_gl2ps (p, fp, "", view); ++ if (fp == stdout || fp == stderr) ++ fflush (fp); ++ else ++ fclose (fp); ++ g_free (p); ++ } ++ g_free (name); + return TRUE; + } + |