mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
89b2a072ff
commit
b3097032f8
@ -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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
|
||||
|
@ -363,7 +363,6 @@ gdk_event_is_allocated (GdkEvent *event)
|
||||
GdkEvent*
|
||||
gdk_event_copy (GdkEvent *event)
|
||||
{
|
||||
GdkEventPrivate *private;
|
||||
GdkEventPrivate *new_private;
|
||||
GdkEvent *new_event;
|
||||
|
||||
@ -372,13 +371,16 @@ gdk_event_copy (GdkEvent *event)
|
||||
new_event = gdk_event_new (GDK_NOTHING);
|
||||
new_private = (GdkEventPrivate *)new_event;
|
||||
|
||||
private = (GdkEventPrivate *)event;
|
||||
|
||||
*new_event = *event;
|
||||
if (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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user