Commit 86ce9fdf authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

lower case the key_val. (gtk_accel_group_connect_by_path) : ditto.

2002-02-23  Jody Goldberg <jody@gnome.org>

	* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
	  key_val.
	(gtk_accel_group_connect_by_path) : ditto.
	(gtk_accel_group_disconnect_key) : ditto.

	* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
	(gtk_widget_real_key_press_event) : ditto.
parent 095ae0c0
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
2002-02-23 Jody Goldberg <jody@gnome.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
key_val.
(gtk_accel_group_connect_by_path) : ditto.
(gtk_accel_group_disconnect_key) : ditto.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
(gtk_widget_real_key_press_event) : ditto.
Sat Feb 23 00:28:47 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviecolumn.c: Documented undocumented functions.
......
......@@ -513,7 +513,9 @@ gtk_accel_group_connect (GtkAccelGroup *accel_group,
g_object_ref (accel_group);
if (!closure->is_invalid)
quick_accel_add (accel_group, accel_key, accel_mods, accel_flags, closure, 0);
quick_accel_add (accel_group,
gdk_keyval_to_lower (accel_key),
accel_mods, accel_flags, closure, 0);
g_object_unref (accel_group);
}
......@@ -552,7 +554,7 @@ gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group,
if (gtk_accel_map_lookup_entry (accel_path, &key))
{
accel_key = key.accel_key;
accel_key = gdk_keyval_to_lower (key.accel_key),
accel_mods = key.accel_mods;
}
......@@ -615,6 +617,7 @@ gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group,
g_object_ref (accel_group);
accel_key = gdk_keyval_to_lower (accel_key);
entries = quick_accel_find (accel_group, accel_key, accel_mods, &n);
while (n--)
{
......
......@@ -2868,24 +2868,14 @@ static gboolean
gtk_widget_real_key_press_event (GtkWidget *widget,
GdkEventKey *event)
{
gboolean handled = FALSE;
if (!handled)
handled = _gtk_bindings_activate_event (GTK_OBJECT (widget), event);
return handled;
return _gtk_bindings_activate_event (GTK_OBJECT (widget), event);
}
static gboolean
gtk_widget_real_key_release_event (GtkWidget *widget,
GdkEventKey *event)
{
gboolean handled = FALSE;
if (!handled)
handled = _gtk_bindings_activate_event (GTK_OBJECT (widget), event);
return handled;
return _gtk_bindings_activate_event (GTK_OBJECT (widget), event);
}
static gboolean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment