Use gtk_option_menu_set_history
2001-12-17 Bradford Hovinen <hovinen@ximian.com> * gconf-property-editor.c (peditor_select_menu_value_changed): Use gtk_option_menu_set_history
This commit is contained in:
parent
aa5de9e7cc
commit
ac131fc554
2 changed files with 3 additions and 3 deletions
|
@ -11,6 +11,8 @@
|
|||
(gconf_property_editor_get_key): Implement
|
||||
(peditor_color_widget_changed): Use correct signature for the
|
||||
signal handler
|
||||
(peditor_select_menu_value_changed): Use
|
||||
gtk_option_menu_set_history
|
||||
|
||||
2001-12-08 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
|
|
|
@ -428,9 +428,7 @@ peditor_select_menu_value_changed (GConfEngine *engine, guint cnxn_id, GConfEntr
|
|||
|
||||
if (value != NULL) {
|
||||
option_menu = g_object_get_data (G_OBJECT (peditor), "option-menu");
|
||||
menu = GTK_MENU (gtk_option_menu_get_menu (option_menu));
|
||||
item = g_list_nth (GTK_MENU_SHELL (menu)->children, gconf_value_get_int (value));
|
||||
gtk_menu_item_activate (GTK_MENU_ITEM (item->data));
|
||||
gtk_option_menu_set_history (option_menu, gconf_value_get_int (value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue