Radio_Menu_Item get_active?
- From: Christian Schneider <christian_schneider_2000 yahoo de>
- To: gtk-app-devel-list gnome org
- Subject: Radio_Menu_Item get_active?
- Date: Thu, 8 Jul 2004 23:12:09 +0200 (CEST)
Hallo,
I want to use a function like the
gtk_toggle_button_get_active for Radio-Buttons in the
Menubar.
At the moment I use the following call:
gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM
(radiobutton));
But when this call is reached I get an error:
"(programm.exe:2612): Glib_GObject-Warning **: invalid
cast from 'GtkMenuItem' to GtkCheckMenuItem
(programm.exe:2612): Gtk-CRITICAL ** file
gtkcheckmenuitem.c line 225
(gtk_check_menu_item_get_active): assertion
'GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed
"
But the function returns the right value (FALSE if is
not active and TRUE if it is active).
How can I avoid this error message?
Regards
Christian SChneider
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]