Re: How to determine the type of a widget?



Hi,

"Marc K." <marc centrin net id> writes:

> Question: how can I determine the type of a widget
> when all I know is that it is a GtkWidget? i.e. it may
> be a GtkButton, GtkFrame, etc.

> I tried to dig into the manual for an easy solution but
> I cant seem to find any. Or maybe I miss something?

You should make yourself familiar with GObject. You are probably
looking for G_TYPE_FROM_INSTANCE().


Sven



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