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.
This commit is contained in:
Jody Goldberg 2002-02-23 07:56:41 +00:00 committed by Jody Goldberg
parent 095ae0c09d
commit 86ce9fdf04
9 changed files with 77 additions and 14 deletions

View File

@ -1,3 +1,13 @@
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.

View File

@ -1,3 +1,13 @@
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.

View File

@ -1,3 +1,13 @@
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.

View File

@ -1,3 +1,13 @@
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.

View File

@ -1,3 +1,13 @@
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.

View File

@ -1,3 +1,13 @@
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.

View File

@ -1,3 +1,13 @@
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.

View File

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

View File

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