mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
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:
parent
ec765b2492
commit
bf4b559a31
@ -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>
|
2007-08-27 Cody Russell <bratsche@gnome.org>
|
||||||
|
|
||||||
* modules/engines/ms-windows/msw_style.c: Correct draw_box()
|
* modules/engines/ms-windows/msw_style.c: Correct draw_box()
|
||||||
|
@ -1574,6 +1574,7 @@ gtk_window_add_accel_group (GtkWindow *window,
|
|||||||
g_signal_connect_object (accel_group, "accel_changed",
|
g_signal_connect_object (accel_group, "accel_changed",
|
||||||
G_CALLBACK (gtk_window_notify_keys_changed),
|
G_CALLBACK (gtk_window_notify_keys_changed),
|
||||||
window, G_CONNECT_SWAPPED);
|
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,
|
gtk_window_notify_keys_changed,
|
||||||
window);
|
window);
|
||||||
_gtk_accel_group_detach (accel_group, G_OBJECT (window));
|
_gtk_accel_group_detach (accel_group, G_OBJECT (window));
|
||||||
|
gtk_window_notify_keys_changed (window);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GtkMnemonicHash *
|
static GtkMnemonicHash *
|
||||||
|
Loading…
Reference in New Issue
Block a user