Re: How to determine the type of a widget?

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

 



Hi,

"Marc K." <marc@xxxxxxxxxxxxxx> 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux