Re: Differences and similarities between gtk_menu_set_active, gtk_menu_shell_activate_item and gtk_menu_shell_select_item
- Date: Tue, 24 Jun 2008 16:18:21 +0300
- From: "Kalle Vahlman" <kalle.vahlman@xxxxxxxxx>
- Subject: Re: Differences and similarities between gtk_menu_set_active, gtk_menu_shell_activate_item and gtk_menu_shell_select_item
2008/6/24 BJörn Lindqvist <bjourne@xxxxxxxxx>:
> gtk_menu_shell_activate_item activates an item in a
> GtkMenuShell which presumedly is the same thing as setting the active
> item, isn't it?
Not really. Activating means that the "activate" signal is emitted for
the item. Selecting means that the item is painted blue etc.
The gtk_menu_get/set_active() seem like badly worded and
half-duplicated gtk_menu_shell_select_item() and the non-existing
gtk_menu_shell_get_selected_item() to me. There seems to be no way to
get the currently selected item at all with the menu shell API.
The whole menu API is in dire need of review & redefinition... :(
--
Kalle Vahlman, zuh@xxxxxx
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-devel-list