[Glade-users] lookup_widget oddness
Tomi Manninen OH2BNS
tpm@prkele.tky.hut.fi
Tue, 28 Jan 2003 12:13:18 +0200 (EET)
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...)
--
Tomi Manninen Internet: oh2bns@sral.fi
OH2BNS AX.25: oh2bns@oh2rbi.fin.eu
KP20ME04 Amprnet: oh2bns@oh2rbi.ampr.org