[Glade-users] lookup_widget oddness



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

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");


Harring.


_______________________________________________
Glade-users maillist  -  Glade-users lists ximian com
http://lists.ximian.com/mailman/listinfo/glade-users


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com




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