Re: gtktextchild.c, another one



Daniel Elstner <daniel elstner gmx net> writes:
> 
>   g_return_if_fail (widget_segment->type = &gtk_text_child_type);
> 
> Maybe I'm missing something, but the assignment isn't there by
> intention, is it?  This occurs several times in the file.
> 
> Since there's no way that the check ever fails, I guess it's just a
> typo.  If so, I'd be happy to commit the attached patch.
> 

Yes, please go ahead. (I guess gcc didn't warn about that because the
return_if_fail macro adds parens?)

Do you get the feeling you're the first person to try to use child
widgets in GtkTextView? ;-)

Havoc



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