about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTodd T. Fries <todd@fries.net>2012-08-08 10:39:12 -0500
committerTodd T. Fries <todd@fries.net>2012-08-08 11:06:19 -0500
commit5742cb70caadb4159a7091d60dd17be465f1654d (patch)
treee35d82fba0c98ced772e4e9dee6882e7105e67f0
parent34456aad5080dd830ff4af982e7ec1d4dcde2622 (diff)
downloadxombrero-5742cb70caadb4159a7091d60dd17be465f1654d.tar.gz
initial stab at toplevel window infoz
-rw-r--r--about.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/about.c b/about.c
index 2125b71..e415938 100644
--- a/about.c
+++ b/about.c
@@ -2187,6 +2187,8 @@ allthethings(struct tab *t, struct karg *arg)
 {
 	char			*page, *body, *b;
 	extern GtkWidget	*main_window;
+	GList			*list, *liter;
+	int			toplevelcount = 0;
 
 	body = xt_append_settings(NULL, G_OBJECT(t->wv), "t->wv", 1);
 	body = xt_append_settings(body, G_OBJECT(t->inspector),
@@ -2195,7 +2197,15 @@ allthethings(struct tab *t, struct karg *arg)
 	body = xt_append_settings(body, G_OBJECT(session),
 	    "session", 1);
 #endif
+	list = gtk_window_list_toplevels();
+	for(liter = list; liter = liter->next; liter != NULL) {
+		b = g_strdup_printf("toplevel#%x", toplevelcount++);
+		
+		body = xt_append_settings(body, G_OBJECT(liter->data), b, 1);
 
+		g_free(b);
+	}
+		
 	b = body;
 	body = g_strdup_printf("<pre>%scan paste clipboard = %d\n</pre>", body,
 	    webkit_web_view_can_paste_clipboard(t->wv));