Re: [gtk-list] Re: Converting pointers
- From: Anthony Tekatch <tekatch idirect com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Converting pointers
- Date: Fri, 31 Dec 1999 11:21:36 -0500
Your suggested changes removed the warning I was getting but now this line:
text = group->name;
produces this warning:
warning: assignment discards `const' from pointer target type
On Fri, 31 Dec 1999, Havoc Pennington wrote:
> Anthony Tekatch <firstname.lastname@example.org> writes:
> > I'm not sure how to convert an xmlNodePtr to the gchar pointer
> > required by arg 4 of gtk_ctree_insert_node.
> It's a character array not a gchar pointer. Try this:
> gchar* text;
> text = group->name;
> text = NULL; /* not required, just anal */
> pass "text" as that argument. Note: "text" must have an element for
> each column in the CTree.
> > warning: passing arg 4 of `gtk_ctree_insert_node' from incompatible
> > pointer type
> Type error. Solution is: write down the type you have. Write down the
> expected type. Consider how to convert and if conversion is possible.
] [Thread Prev