[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Top Level Windows



> Hi all,
> 
> Q1.
> How can I get all the top level windows using GTK or GDK. I've found the
> function
> gdk_window_get_toplevels();, can I use it?

    If you want to get the top window of a widget, simpley use
    gtk_widget_get_toplevel();
    If you want to get all the ancestors of a widget, you
    should use gtk_widget_get_ancestor(). Have a look at
    the FAQ #5.5 on gtk.org/faq 

> 
> Michael

    Yours,

Emmanuel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]