You can use Accessibility APIs [1]. It will let you access *any*object(frames, text field, buttons etc) of a "GTK" based application.
If you want to access only windows, you can use the Libwnck API [2]. ( using the wnck_screen_get_windows() function ) [1] http://library.gnome.org/devel/at-spi-cspi/unstable/ [2] http://library.gnome.org/devel/libwnck/stable/ On Mon, May 3, 2010 at 9:39 PM, Jordi Rubio <jordi.ru...@evolium.com> wrote: > Hi, I need to list all windows and objects from all the GTK (not only my > application) > > I tried to use GDK function gdk_window_get_children, but only recives my > windows... > > Anyone can help me? Thanks > > paste code from my test: > GdkScreen *screen; > GdkWindow *root; > GList *windows; > > screen = gdk_screen_get_default(); > root = gdk_screen_get_root_window(screen); > windows = gdk_window_get_children (root); > > for(; windows; windows = windows->next) > { > GdkWindow *window = windows->data; > GdkWindowType type = gdk_window_get_window_type(window); > if ( type == GDK_WINDOW_TOPLEVEL || type == GDK_WINDOW_DIALOG ) > { > g_print("gtkwindow: %p\n", window); > gdk_window_set_title(window,"Test"); > } > else > { > g_print("unknown window: %p\n", window); > } > } > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > -- regards, Nischal E Rao blogs.sun.com/nischal Join RVCE OSUM at http://osum.sun.com/group/rvceosum _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list