Fix for the case when gdk_event_copy() is called on a non-allocated event.
Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c (gdk_event_copy): Fix for the case when gdk_event_copy() is called on a non-allocated event. (#109716, reported by Rich Burridge)
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/gdkevents.c (gdk_event_copy): Fix for the
|
||||||
|
case when gdk_event_copy() is called on a non-allocated
|
||||||
|
event. (#109716, reported by Rich Burridge)
|
||||||
|
|
||||||
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/gdkevents.c (gdk_event_copy): Fix for the
|
||||||
|
case when gdk_event_copy() is called on a non-allocated
|
||||||
|
event. (#109716, reported by Rich Burridge)
|
||||||
|
|
||||||
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/gdkevents.c (gdk_event_copy): Fix for the
|
||||||
|
case when gdk_event_copy() is called on a non-allocated
|
||||||
|
event. (#109716, reported by Rich Burridge)
|
||||||
|
|
||||||
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/gdkevents.c (gdk_event_copy): Fix for the
|
||||||
|
case when gdk_event_copy() is called on a non-allocated
|
||||||
|
event. (#109716, reported by Rich Burridge)
|
||||||
|
|
||||||
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/gdkevents.c (gdk_event_copy): Fix for the
|
||||||
|
case when gdk_event_copy() is called on a non-allocated
|
||||||
|
event. (#109716, reported by Rich Burridge)
|
||||||
|
|
||||||
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
||||||
|
|||||||
@ -363,7 +363,6 @@ gdk_event_is_allocated (GdkEvent *event)
|
|||||||
GdkEvent*
|
GdkEvent*
|
||||||
gdk_event_copy (GdkEvent *event)
|
gdk_event_copy (GdkEvent *event)
|
||||||
{
|
{
|
||||||
GdkEventPrivate *private;
|
|
||||||
GdkEventPrivate *new_private;
|
GdkEventPrivate *new_private;
|
||||||
GdkEvent *new_event;
|
GdkEvent *new_event;
|
||||||
|
|
||||||
@ -372,13 +371,16 @@ gdk_event_copy (GdkEvent *event)
|
|||||||
new_event = gdk_event_new (GDK_NOTHING);
|
new_event = gdk_event_new (GDK_NOTHING);
|
||||||
new_private = (GdkEventPrivate *)new_event;
|
new_private = (GdkEventPrivate *)new_event;
|
||||||
|
|
||||||
private = (GdkEventPrivate *)event;
|
|
||||||
|
|
||||||
*new_event = *event;
|
*new_event = *event;
|
||||||
if (new_event->any.window)
|
if (new_event->any.window)
|
||||||
g_object_ref (new_event->any.window);
|
g_object_ref (new_event->any.window);
|
||||||
|
|
||||||
new_private->screen = private->screen;
|
if (gdk_event_is_allocated (event))
|
||||||
|
{
|
||||||
|
GdkEventPrivate *private = (GdkEventPrivate *)event;
|
||||||
|
|
||||||
|
new_private->screen = private->screen;
|
||||||
|
}
|
||||||
|
|
||||||
switch (event->any.type)
|
switch (event->any.type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user