How can i enable/disable a GtkCheckButton ??
i was trying with this
Code:
do{
switch(acl_rights[count]){
case 'l':
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(checkbutton_l), TRUE);
break;
...
But i get this message when i run and the program goes through that code...
Code:
(gyrus:20019): GLib-GObject-WARNING **: invalid cast from `GtkCheckButton' to `GtkCheckMenuItem'
(gyrus:20019): Gtk-CRITICAL **: file gtkcheckmenuitem.c: line 205 (gtk_check_menu_item_set_active): assertion `GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed
and off course, the checkbutton dont get activated...
So anyone can tell me how it's really supposed to be done??? Thank you..