[Glade-users] lookup_widget oddness

--- Neil Hodge <neh attbi com> wrote:

I have just started porting my app to gtk2 using glade2.  Using the
following code:

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

I keep getting the following warning:

warning: assignment makes pointer from integer without a cast

Any ideas?  Thanks.

 You mainwindow is probably a GtkWindow* or something else other than a
GtkWidget*. Try casting it to a GtkWidget*

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


Glade-users maillist  -  Glade-users lists ximian com

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

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