Re: How to determine the type of a widget?

2004-11-28 Thread Sven Neumann
Hi, Marc K. [EMAIL PROTECTED] writes: After reading the tutorial (again, counting 3), still, the question is the same. Never mind. I dont think it's possible. I think we are thinking in different worlds. I am pretty sure it is possible but perhaps you should try to come up with a question

Re: How to determine the type of a widget?

2004-11-28 Thread Marc K.
Hmm ... You are right. I wasn't being very clear. My apology. I must admit that I'm a bit confused with the typing system works (i.e. I'm using classes with everything without any type). Anyway my solution, at the moment at least, is to use GTK_IS_XXX as you said. Same thing as ruby_gtk. I just

Re: How to determine the type of a widget?

2004-11-27 Thread Sven Neumann
Hi, Marc K. [EMAIL PROTECTED] 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

Re: How to determine the type of a widget?

2004-11-27 Thread Marc K.
On Sunday 28 November 2004 01:26, you wrote: Hi, Marc K. [EMAIL PROTECTED] 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

Re: How to determine the type of a widget?

2004-11-27 Thread Sven Neumann
Hi, Marc K. [EMAIL PROTECTED] writes: What I want to achieve is to collect some IDs (or something similar) when I create the internal classes. At this point, I have not created any instances. So I think I cant use G_TYPE_FROM_INSTANCE. Still, the answer is in GObject. Types can be referred

Re: How to determine the type of a widget?

2004-11-27 Thread Marc K.
What I want to achieve is to collect some IDs (or something similar) when I create the internal classes. At this point, I have not created any instances. So I think I cant use G_TYPE_FROM_INSTANCE. Still, the answer is in GObject. Types can be referred to by name and you can instantiate