Update menu accelerators, when adding/removing AccelGroups dynamically.

* gtk/gtkwindow.c: Update menu accelerators, when adding/removing
	AccelGroups dynamically. (#469374)


svn path=/trunk/; revision=18691
This commit is contained in:
Stefan Kost 2007-08-27 17:46:53 +00:00
parent ec765b2492
commit bf4b559a31
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-08-27 Stefan Kost <ensonic@users.sf.net>
* gtk/gtkwindow.c: Update menu accelerators, when adding/removing
AccelGroups dynamically. (#469374)
2007-08-27 Cody Russell <bratsche@gnome.org>
* modules/engines/ms-windows/msw_style.c: Correct draw_box()

View File

@ -1574,6 +1574,7 @@ gtk_window_add_accel_group (GtkWindow *window,
g_signal_connect_object (accel_group, "accel_changed",
G_CALLBACK (gtk_window_notify_keys_changed),
window, G_CONNECT_SWAPPED);
gtk_window_notify_keys_changed (window);
}
/**
@ -1594,6 +1595,7 @@ gtk_window_remove_accel_group (GtkWindow *window,
gtk_window_notify_keys_changed,
window);
_gtk_accel_group_detach (accel_group, G_OBJECT (window));
gtk_window_notify_keys_changed (window);
}
static GtkMnemonicHash *