how to get the text from menu item?



hi all,
 
I want to get the selection of user from the menu item and then put the content into a character point (char *) for display, but I can't do it.
 
I try use gtk_option_get_menu() to get the selected item from menu, then use gtk_entry_get_text() to put the GtkWidget into char *.  When I run the program, the shell display something like that "invalid cast from GtkMenu to GtkEntry".
 
Pls anyone can help me!
 
Best Regards,
Terry Ha


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