use:

GtkWidget button;

gtk_button_set_label(GTK_BUTTON(button));

How did you initialise the button, that is what I want to ask.

On 4/6/06, 3saul < [EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> Whenever I call gtk_button_set_label I get the following error and the
> function does not succeed.
>
> GTK-CRITICAL **: gtk_button_set_label: assertion 'GTK_IS_BUTTON (button)
> failed.
>
> Is there a common reason for this error? I get no errors or warnings when
> compiling.
> --
> View this message in context:
> http://www.nabble.com/gtk_button_set_label-ERROR-t1403878.html#a3778435
> Sent from the Gtk+ - Apps Dev forum at Nabble.com.
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to