summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-02-05 09:36:49 +0100
committerAlexander Larsson <alexl@redhat.com>2013-02-07 11:11:37 +0100
commit3d4cd4db3ed9f6c47566a69d745441e2662ac2ab (patch)
treeea187ad53de4aa570e53449b674507022d47d1ee /gtk/gtkinvisible.c
parent4d3c77f9200dbdfa71e2aaa390d11e88099b5c6e (diff)
downloadgtk+-3d4cd4db3ed9f6c47566a69d745441e2662ac2ab.tar.gz
Add gtk_widget_(un)register_window
This replaces the previously hardcoded calls to gdk_window_set_user_data, and also lets us track which windows are a part of a widget. Old code should continue working as is, but new features that require the windows may not work perfectly. We need this for the transparent widget support to work, as we need to specially mark the windows of child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index a98b18d508..27ca2502cb 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -260,7 +260,7 @@ gtk_invisible_realize (GtkWidget *widget)
window = gdk_window_new (parent, &attributes, attributes_mask);
gtk_widget_set_window (widget, window);
- gdk_window_set_user_data (window, widget);
+ gtk_widget_register_window (widget, window);
}
static void