Re: How to determine the type of a widget?
- From: Sven Neumann <sven gimp org>
- To: marc centrin net id
- Cc: gtk-list gnome org
- Subject: Re: How to determine the type of a widget?
- Date: Sat, 27 Nov 2004 19:26:00 +0100
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]