[gtk+/broadway: 5/71] [broadway] Keep track of all (toplevel) windows
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/broadway: 5/71] [broadway] Keep track of all (toplevel) windows
- Date: Thu, 25 Nov 2010 21:15:41 +0000 (UTC)
commit 85515b7775a4ed38290e50f281fde60309332a03
Author: Alexander Larsson <alexl redhat com>
Date: Mon Nov 15 21:44:38 2010 +0100
[broadway] Keep track of all (toplevel) windows
gdk/broadway/gdkwindow-broadway.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c
index f8db486..7103ab5 100644
--- a/gdk/broadway/gdkwindow-broadway.c
+++ b/gdk/broadway/gdkwindow-broadway.c
@@ -74,6 +74,8 @@ G_DEFINE_TYPE_WITH_CODE (GdkWindowImplX11,
G_IMPLEMENT_INTERFACE (GDK_TYPE_WINDOW_IMPL,
gdk_window_impl_iface_init));
+static GList *all_windows;
+
GType
_gdk_window_impl_get_type (void)
{
@@ -83,6 +85,7 @@ _gdk_window_impl_get_type (void)
static void
gdk_window_impl_x11_init (GdkWindowImplX11 *impl)
{
+ all_windows = g_list_prepend (all_windows, impl);
impl->toplevel_window_type = -1;
impl->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) gdk_cursor_unref);
@@ -115,6 +118,8 @@ gdk_window_impl_x11_finalize (GObject *object)
g_hash_table_destroy (window_impl->device_cursor);
+ all_windows = g_list_remove (all_windows, window_impl);
+
G_OBJECT_CLASS (gdk_window_impl_x11_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]