From b32da181eeff38f141c5239d109c4ece4c64df02 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 14 Jun 2002 14:16:06 +0000 Subject: [PATCH] ri Jun 14 10:00:29 2002 Owen Taylor * gdk/gdkwindow.c (gdk_window_update_idle): Add missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). (Report of non-thread-safety from Nicholas Allen) * gtk/gtkmain.c (rewrite_events_translate): Fix sign problem with coordinate translation. (Fix from Robin Lu, #85229) --- ChangeLog | 10 ++++++++++ ChangeLog.pre-2-10 | 10 ++++++++++ ChangeLog.pre-2-2 | 10 ++++++++++ ChangeLog.pre-2-4 | 10 ++++++++++ ChangeLog.pre-2-6 | 10 ++++++++++ ChangeLog.pre-2-8 | 10 ++++++++++ gdk/gdkwindow.c | 2 ++ gtk/gtkmain.c | 4 ++-- 8 files changed, 64 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6b14fb5b3..8d9abb8739 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Fri Jun 14 10:00:29 2002 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_update_idle): Add + missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). + (Report of non-thread-safety from Nicholas Allen) + + * gtk/gtkmain.c (rewrite_events_translate): Fix sign + problem with coordinate translation. (Fix from + Robin Lu, #85229) + Thu Jun 13 19:41:56 2002 Owen Taylor * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a6b14fb5b3..8d9abb8739 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +Fri Jun 14 10:00:29 2002 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_update_idle): Add + missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). + (Report of non-thread-safety from Nicholas Allen) + + * gtk/gtkmain.c (rewrite_events_translate): Fix sign + problem with coordinate translation. (Fix from + Robin Lu, #85229) + Thu Jun 13 19:41:56 2002 Owen Taylor * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index a6b14fb5b3..8d9abb8739 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,13 @@ +Fri Jun 14 10:00:29 2002 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_update_idle): Add + missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). + (Report of non-thread-safety from Nicholas Allen) + + * gtk/gtkmain.c (rewrite_events_translate): Fix sign + problem with coordinate translation. (Fix from + Robin Lu, #85229) + Thu Jun 13 19:41:56 2002 Owen Taylor * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a6b14fb5b3..8d9abb8739 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,13 @@ +Fri Jun 14 10:00:29 2002 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_update_idle): Add + missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). + (Report of non-thread-safety from Nicholas Allen) + + * gtk/gtkmain.c (rewrite_events_translate): Fix sign + problem with coordinate translation. (Fix from + Robin Lu, #85229) + Thu Jun 13 19:41:56 2002 Owen Taylor * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a6b14fb5b3..8d9abb8739 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +Fri Jun 14 10:00:29 2002 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_update_idle): Add + missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). + (Report of non-thread-safety from Nicholas Allen) + + * gtk/gtkmain.c (rewrite_events_translate): Fix sign + problem with coordinate translation. (Fix from + Robin Lu, #85229) + Thu Jun 13 19:41:56 2002 Owen Taylor * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a6b14fb5b3..8d9abb8739 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +Fri Jun 14 10:00:29 2002 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_update_idle): Add + missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). + (Report of non-thread-safety from Nicholas Allen) + + * gtk/gtkmain.c (rewrite_events_translate): Fix sign + problem with coordinate translation. (Fix from + Robin Lu, #85229) + Thu Jun 13 19:41:56 2002 Owen Taylor * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 32f286dc48..b2dce87b74 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -2182,7 +2182,9 @@ gdk_window_process_all_updates (void) static gboolean gdk_window_update_idle (gpointer data) { + GDK_THREADS_ENTER (); gdk_window_process_all_updates (); + GDK_THREADS_LEAVE (); return FALSE; } diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index e9b059983c..e710b37bbc 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1041,8 +1041,8 @@ rewrite_events_translate (GdkWindow *old_window, gdk_window_get_origin (old_window, &old_origin_x, &old_origin_y); gdk_window_get_origin (new_window, &new_origin_x, &new_origin_y); - *x += new_origin_x - old_origin_x; - *y += new_origin_y - old_origin_y; + *x += old_origin_x - new_origin_x; + *y += old_origin_y - new_origin_y; } static GdkEvent *