Re: GtkOptionMenu



On Qui, 2003-03-06 at 07:52, Audrey Vernon wrote:
I'm trying to use a GtkOptionMenu, but I can't figure out how to
retrieve the selected text.  I can retrieve the MenuItem but not any
text associated with it.  I was using a combo box but I read that if I
don't want to edit the text, it is better to use an option menu.  This
seems like it should be very basic, but the API doesn't help any.

  If you can retrieve the menu item already:
        char *text = gtk_label_get_text (GTK_LABEL 
                        (GTK_BIN (menu_item)->child)):

  Or something like that...

-- 
Gustavo João Alves Marques Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>





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