[Glade-users] about optionmenu ...



On Wed, 2003-07-09 at 03:02, asmouta nomade fr wrote:
Hi all

I need some clarification about the optionmenu, I used the
optiomenu in my glade interface and now I need to get the
value selected ...I seems to me that's an entry and I tried
to get it first with the following function :

GtkWidget *mois;
gchar *x;

mois = gtk_option_menu_get_menu (GTK_OPTION_MENU(optionmenu1));
x = gtk_entry_get_text(GTK_MENU(mois));

Of course, it doesn't work !!! Can someone help me to get
the value selected.

gtk_option_menu_get_history() will get the currently selected option (as
an integer, the first option being 0)

-------------------------------------------------------------------
Rajarshi Guha <rajarshi presidency com> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
C Code.
C Code Run.
Run, Code, RUN!
PLEASE!!!!





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