On Tue, Apr 14, 2009 at 10:46 AM, donglongchao <donglongc...@163.com> wrote:
[...]
> And I want to show the value of "myspinbutton" by pass its point to callback 
> function.But every time I click the button there is no response.Just left 
> "(gtk_toggle_button_get_active): assertion `GTK_IS_TOGGLE_BUTTON
> (toggle_button)' failed".
>
> But if i do not pass the "&spinbutton", and the function only have one 
> para(GtkButton *checkbutton1), it works,no error,no warning.
>
> I do not know why.Any one could help?Thanks.

With libglade, if you specify an object... it is like reffering to prehistoric
gtk_signal_connect_object(), which swaps your instance/user-data arguments
free-of-charge, allowing for direct hooking up of function calls from
within Glade.

i.e. connect to button1 "clicked", specify "window1" as the object, and then
just put "gtk_widget_hide" as the callback... you just wrote a button that
closes the window without any code...

Yeah its a little awkard an unclear... just forget about it ;-)

Cheers,
             -Tristan
_______________________________________________
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