diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-05-03 10:39:24 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-05-07 16:40:17 +0200 |
commit | adffcf8af64a21bb639c2e71199d1be63d1dd4fe (patch) | |
tree | b8ab9e6338a6702737bc745eff1aa70ca973b051 /gdk/gdkwindow.h | |
parent | cad751c76245c57ea803c166af437d3a32966288 (diff) | |
download | gtk+-adffcf8af64a21bb639c2e71199d1be63d1dd4fe.tar.gz |
Add gdk_window_get_children_with_user_data
This function returns all the children that has a specific user_data set.
This is used a lot in the new GtkWidget drawing code and doing
it this way is faster than getting every child and calling get_user_data
on each (which was a non-neglible part of the profiles). Additionally it
also allows use to use some kind of hashtable to make this operation even
faster if needed in the future.
Diffstat (limited to 'gdk/gdkwindow.h')
-rw-r--r-- | gdk/gdkwindow.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h index 73e6f86494..ddc8e70ca5 100644 --- a/gdk/gdkwindow.h +++ b/gdk/gdkwindow.h @@ -856,6 +856,10 @@ GDK_AVAILABLE_IN_ALL GList * gdk_window_get_children (GdkWindow *window); GDK_AVAILABLE_IN_ALL GList * gdk_window_peek_children (GdkWindow *window); +GDK_AVAILABLE_IN_3_10 +GList * gdk_window_get_children_with_user_data (GdkWindow *window, + gpointer user_data); + GDK_AVAILABLE_IN_ALL GdkEventMask gdk_window_get_events (GdkWindow *window); GDK_AVAILABLE_IN_ALL |