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:
Matthias Clasen 2006-07-03 00:25:06 +00:00 committed by Matthias Clasen
parent 4492978d31
commit 8b77374789
4 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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;