Re: how to set optionmenu to selection?
- From: Owen Taylor <otaylor redhat com>
- To: Ralf Müller <ralf deres-mueller de>
- Cc: Gtk Mailing List <gtk-app-devel-list gnome org>
- Subject: Re: how to set optionmenu to selection?
- Date: 08 Aug 2003 09:29:43 -0400
On Fri, 2003-08-08 at 04:45, Ralf MÃller wrote:
Hello,
in my option_menu I have
menu=GTK_OPTION_MENU(lookup_widget(GTK_WIDGET(dialog1), "optionmenu1"))->menu;
gtk_menu_set_active (GTK_MENU(menu),index);
this does not update the widget.
How can I show the active item in the widget?
http://developer.gnome.org/doc/API/2.0/gtk/GtkOptionMenu.html#gtk-option-menu-set-history
And please see:
http://lists.ximian.com/archives/public/glade-devel/2003-February/000015.html
as to why generating code with glade is harmful. Use libglade instead.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]