[Glade-users] lookup_widget oddness


On Tue, 2003-01-28 at 02:13, Tomi Manninen OH2BNS wrote:
On 27 Jan 2003, Neil Hodge wrote:

It definitely is a GtkWindow *, but when I cast it using GTK_WIDGET, the
result is identical.  I have some inkling that the error has something
to do with the return type.  I just tried this:

tree = (GtkWidget *)lookup_widget(GTK_WIDGET(mainwindow), "pctv");

everything works no problem.  But this should not really be necessary.

Anyone, any ideas what's going on here?

Maybe you are lacking a

 #include "support.h"

in your source file?


(One annoying little detail I noticed when starting to work with Glade2:
-Wall is not anymore by default among the CFLAGS, you will have to edit
configure.in. Enabling warnings would catch these errors right away as you
would _also_ get a "implicit definition" warning...)

Correct again.  Adding this makes world of difference.  Thanks for the


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