mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
Use a weak reference instead of ref()/unref(). (#60857, reported by Joshua
Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue): Use a weak reference instead of ref()/unref(). (#60857, reported by Joshua N Pritikin) * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
This commit is contained in:
parent
4ec8e2b20e
commit
01440e457e
@ -1,3 +1,11 @@
|
||||
Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
|
||||
Use a weak reference instead of ref()/unref(). (#60857, reported
|
||||
by Joshua N Pritikin)
|
||||
|
||||
* gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
|
||||
|
||||
Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
|
||||
Use a weak reference instead of ref()/unref(). (#60857, reported
|
||||
by Joshua N Pritikin)
|
||||
|
||||
* gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
|
||||
|
||||
Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
|
||||
Use a weak reference instead of ref()/unref(). (#60857, reported
|
||||
by Joshua N Pritikin)
|
||||
|
||||
* gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
|
||||
|
||||
Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
|
||||
Use a weak reference instead of ref()/unref(). (#60857, reported
|
||||
by Joshua N Pritikin)
|
||||
|
||||
* gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
|
||||
|
||||
Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
|
||||
Use a weak reference instead of ref()/unref(). (#60857, reported
|
||||
by Joshua N Pritikin)
|
||||
|
||||
* gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
|
||||
|
||||
Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
|
||||
|
@ -914,7 +914,11 @@ queue_delete_link (GQueue *queue,
|
||||
static void
|
||||
queue_item_free (GdkWindowQueueItem *item)
|
||||
{
|
||||
g_object_unref (item->window);
|
||||
if (item->window)
|
||||
{
|
||||
g_object_remove_weak_pointer (G_OBJECT (item->window),
|
||||
(gpointer *)&(item->window));
|
||||
}
|
||||
|
||||
if (item->type == GDK_WINDOW_QUEUE_ANTIEXPOSE)
|
||||
gdk_region_destroy (item->u.antiexpose.area);
|
||||
@ -980,11 +984,12 @@ gdk_window_queue (GdkWindow *window,
|
||||
}
|
||||
}
|
||||
|
||||
g_object_ref (window);
|
||||
|
||||
item->window = window;
|
||||
item->serial = NextRequest (GDK_WINDOW_XDISPLAY (window));
|
||||
|
||||
g_object_add_weak_pointer (G_OBJECT (window),
|
||||
(gpointer *)&(item->window));
|
||||
|
||||
g_queue_push_tail (display_x11->translate_queue, item);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user