How to get a widget from a dialog widget



Hi all,

In function 1, I have created a a dialog widget which has 5 check buttons
and I am check marking first 2 check buttons.

The dialog widget is being passed as an argument for this function 2. How
will I see which check buttons are checked and which are not.

The declaration for check buttons and dialog widget are global.

I use in function 2
int r = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(chkbutton2));

It is always getting 0 for variable r and the following message.

 Gtk-CRITICAL **: file gtktogglebutton.c: line 326
(gtk_toggle_button_get_active): assertion `GTK_IS_TOGGLE_BUTTON
(toggle_button)' failed

Suggestions please.




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