check GTK_MENU_ITEM (menu_item)->accel_path first when looking up the

2001-12-12  James Henstridge  <james@daa.com.au>

	* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
	(menu_item)->accel_path first when looking up the accel path.
This commit is contained in:
James Henstridge 2001-12-12 12:21:52 +00:00 committed by James Henstridge
parent 793bbc7a7f
commit 44b9c2d13f
8 changed files with 38 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1,3 +1,8 @@
2001-12-12 James Henstridge <james@daa.com.au>
* gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
(menu_item)->accel_path first when looking up the accel path.
Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (layout_expose_handler): Only draw

View File

@ -1659,7 +1659,9 @@ gtk_menu_key_press (GtkWidget *widget,
gboolean replace_accels = TRUE;
const gchar *path;
path = _gtk_widget_get_accel_path (menu_item);
path = GTK_MENU_ITEM (menu_item)->accel_path;
if (!path)
path = _gtk_widget_get_accel_path (menu_item);
if (!path)
{
/* can't change accelerators on menu_items without paths