Re: [evolution-patches] fix for grab time.
- From: Larry Ewing <lewing ximian com>
- To: patches <evolution-patches ximian com>
- Cc: Radek Doulik <rodo ximian com>
- Subject: Re: [evolution-patches] fix for grab time.
- Date: 07 May 2003 18:32:22 -0500
Revised patch to include the ungrab as well.
--Larry
On Wed, 2003-05-07 at 18:13, Larry Ewing wrote:
> We were previously passing 0 for the grab time in a call to
> gdk_pointer_grab. This fixes that and the bad things it was causing.
>
> --Larry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1791
diff -u -p -r1.1791 ChangeLog
--- ChangeLog 6 May 2003 11:04:57 -0000 1.1791
+++ ChangeLog 7 May 2003 23:28:42 -0000
@@ -1,3 +1,9 @@
+2003-05-07 Larry Ewing <lewing ximian com>
+
+ * gtkhtml.c (button_press_event): pass event->time to
+ gdk_pointer_grab instead of 0.
+ (button_release_event): pass event->time instead of 0.
+
2003-05-02 Radek Doulik <rodo ximian com>
* htmlsearch.h: make start_pos and end_pos signed
Index: gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.507
diff -u -p -r1.507 gtkhtml.c
--- gtkhtml.c 6 May 2003 11:03:16 -0000 1.507
+++ gtkhtml.c 7 May 2003 23:28:43 -0000
@@ -1498,7 +1498,7 @@ button_press_event (GtkWidget *widget,
(GDK_BUTTON_RELEASE_MASK
| GDK_BUTTON_MOTION_MASK
| GDK_POINTER_MOTION_HINT_MASK),
- NULL, NULL, 0) == 0) {
+ NULL, NULL, event->time) == 0) {
html->selection_x1 = x;
html->selection_y1 = y;
}
@@ -1546,7 +1546,7 @@ button_release_event (GtkWidget *initial
remove_scroll_timeout (html);
gtk_grab_remove (widget);
- gdk_pointer_ungrab (0);
+ gdk_pointer_ungrab (event->time);
engine = html->engine;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]