mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
Treat "" like NULL when parsing the menu-bar-accel setting. Here too.
2006-07-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmenubar.c (window_key_press_handler): Treat "" like NULL when parsing the menu-bar-accel setting. * gtk/gtkmenu.c (gtk_menu_key_press): Here too. (#346420, Yevgen Muntyan)
This commit is contained in:
parent
4492978d31
commit
8b77374789
@ -1,4 +1,9 @@
|
||||
2006-07-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenubar.c (window_key_press_handler): Treat
|
||||
"" like NULL when parsing the menu-bar-accel setting.
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): Here too.
|
||||
(#346420, Yevgen Muntyan)
|
||||
|
||||
* configure.in: Require cairo 1.2 and GLib 2.12,
|
||||
set version to 2.10
|
||||
|
@ -1,4 +1,9 @@
|
||||
2006-07-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenubar.c (window_key_press_handler): Treat
|
||||
"" like NULL when parsing the menu-bar-accel setting.
|
||||
* gtk/gtkmenu.c (gtk_menu_key_press): Here too.
|
||||
(#346420, Yevgen Muntyan)
|
||||
|
||||
* configure.in: Require cairo 1.2 and GLib 2.12,
|
||||
set version to 2.10
|
||||
|
@ -2688,7 +2688,7 @@ gtk_menu_key_press (GtkWidget *widget,
|
||||
"gtk-can-change-accels", &can_change_accels,
|
||||
NULL);
|
||||
|
||||
if (accel)
|
||||
if (accel && *accel)
|
||||
{
|
||||
guint keyval = 0;
|
||||
GdkModifierType mods = 0;
|
||||
|
@ -594,11 +594,10 @@ window_key_press_handler (GtkWidget *widget,
|
||||
gboolean retval = FALSE;
|
||||
|
||||
g_object_get (gtk_widget_get_settings (widget),
|
||||
"gtk-menu-bar-accel",
|
||||
&accel,
|
||||
"gtk-menu-bar-accel", &accel,
|
||||
NULL);
|
||||
|
||||
if (accel)
|
||||
if (accel && *accel)
|
||||
{
|
||||
guint keyval = 0;
|
||||
GdkModifierType mods = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user