[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: incompatible pointer warning
From:       Raj <ringuva () novell ! com>
Date:       2005-04-27 10:36:07
Message-ID: 426F6847.5000706 () novell ! com
[Download RAW message or body]

> 
> This is my piece of code
> 
>  Mykeytxt=lookup_widget(VCTG,"keytxt");
> gtk_entry_set_text(Mykeytxt, strkeyval);
> 
> This gives me the warnings as 
> callbacks.c:429: warning: passing arg 1 of `gtk_entry_get_text' from
> incompatible
>  pointer type

You must have declared Mykeytxt to be a pointer to
GtkWidget. To remove your warning, you can try this:
gtk_entry_set_text(GTK_ENTRY(Mykeytxt), strkeyval);

Raj
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic