summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2006-07-04 15:17:32 +0000
committerMarkus Dittrich <markusle@gentoo.org>2006-07-04 15:17:32 +0000
commit68aa59afa83eb7088023bfb0fa3adaebdb681e39 (patch)
treed4008457983cdec2f163c4d686aad662d2609d6a /sci-mathematics/scilab/files
parentFix Manifest (a couple of files mysteriously ended up with an off-by-one size... (diff)
downloadgentoo-2-68aa59afa83eb7088023bfb0fa3adaebdb681e39.tar.gz
gentoo-2-68aa59afa83eb7088023bfb0fa3adaebdb681e39.tar.bz2
gentoo-2-68aa59afa83eb7088023bfb0fa3adaebdb681e39.zip
Added patch from CVS head to fix crashing scicos due to gtk. This fixes bug #138252.
(Portage version: 2.1.1_pre2-r1)
Diffstat (limited to 'sci-mathematics/scilab/files')
-rw-r--r--sci-mathematics/scilab/files/scilab-4.0-gtk-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-mathematics/scilab/files/scilab-4.0-gtk-fix.patch b/sci-mathematics/scilab/files/scilab-4.0-gtk-fix.patch
new file mode 100644
index 000000000000..a6b01366c1b0
--- /dev/null
+++ b/sci-mathematics/scilab/files/scilab-4.0-gtk-fix.patch
@@ -0,0 +1,23 @@
+--- scilab-4.0/routines/graphics/periGtk.c 2006-02-08 11:33:40.000000000 -0500
++++ scilab-4.0-b4-20060515/routines/graphics/periGtk.c 2006-02-20 04:05:05.000000000 -0500
+@@ -395,16 +395,17 @@
+ GdkEventButton *event,
+ BCG *gc)
+ {
++ int display_double_click_distance;
+ static GdkDisplay *display=NULL;
++ if ( display == NULL) display=gdk_display_get_default();
+
+ /* to compile with gdk<2.4 */
+ #if GTK_MAJOR_VERSION==2 && GTK_MINOR_VERSION>=4
+- int display_double_click_distance = display->double_click_distance;
++ display_double_click_distance = display->double_click_distance;
+ #else
+- int display_double_click_distance=5;
++ display_double_click_distance=5;
+ #endif
+
+- if ( display == NULL) display=gdk_display_get_default();
+ if ((event->time < (last_press.time + 2*display->double_click_time)) &&
+ (event->window == last_press.window) &&
+ (event->button == last_press.button) &&