Optionmenuitem and labels



Hi,
i build a option menu like in the gtk-docs and it works fine. Now i want to 
retrieve the label of the selected menuitem.
my code
ConfDatei.NewEntry ("Language", gtk_label_get_text 
(GTK_LABEL(gtk_bin_get_child(GTK_BIN(gtk_menu_get_active 
(GTK_MENU(General.LanguageSubMenu)))))));

Theoretically this should work and it should give me the label.
Compiling runs without any warning.
But i get this during execution:

(trollhunter:7444): Gtk-CRITICAL **: file ../../gtk/gtklabel.c: line 1142 
(gtk_label_get_text): assertion `GTK_IS_LABEL (label)' failed
Aborted (core dumped)

Thanks for help
alex



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