Re: Getting at widget toplevel parent...




Ron Forrester <rjf@zero-ping.com> writes:

> I would like to call gtk_object_set_data() on the root level window
> after I create it, and then, from within callbacks for various widgets
> (menu items, buttons, etc), get back that data.
> 
> Is there a way for me to get the toplevel windows data (without making
> its variable global) from anywhere in a GTK app, i.e. via some
> gtk_get_toplevel_window() call?

GtkWidget*   gtk_widget_get_toplevel	(GtkWidget	*widget);

Regards,
                                        Owen



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