summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@gtk.org>1998-05-01 16:15:39 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-05-01 16:15:39 +0000
commitde210bbdec0d4ad614785638a2da00e091a61118 (patch)
tree596e18b58d557d7749e8fae8fa6c4562312c208e /gdk/gdkwindow.c
parent61554862e6620b7355df62f6842133c35010ad0d (diff)
downloadgtk+-de210bbdec0d4ad614785638a2da00e091a61118.tar.gz
New function to reset the RC styles for a heirarchy
Fri May 1 12:06:43 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkwindow.[ch] (gtk_widget_reset_rc_styles): New function to reset the RC styles for a heirarchy Clear the window background if necessary in gtk_window_style_set. * gtk/gtkrc.[ch]: New function gtk_rc_reparse_all() which rereads all previously read RC files. * gdk/gdkwindow.c gdk/gdk.h: New function gdk_window_get_toplevels(). (Should it just be called gdk_get_toplevels?) * gtk/testgtk.c: New test to reload RC files.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index d95327ca16..022baa370b 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -233,7 +233,7 @@ gdk_window_new (GdkWindow *parent,
private->parent = parent;
- if (parent_private != &gdk_root_parent)
+ if (parent_private)
parent_private->children = g_list_prepend (parent_private->children, window);
private->xdisplay = parent_display;
@@ -1956,3 +1956,20 @@ gdk_window_set_functions (GdkWindow *window,
gdk_window_set_mwm_hints (window, &hints);
}
+
+GList *
+gdk_window_get_toplevels (void)
+{
+ GList *new_list = NULL;
+ GList *tmp_list;
+
+ tmp_list = gdk_root_parent.children;
+ while (tmp_list)
+ {
+ new_list = g_list_prepend (new_list, tmp_list->data);
+ tmp_list = tmp_list->next;
+ }
+
+ return new_list;
+}
+