Comment 3 for bug 305287

Revision history for this message
mokabar (tim-klingt) wrote :

doing some debugging, i found, there is an issue in the resolution of the gtk_text_view key bindings:

considering the following backtrace:
(gdb) bt
#0 gtk_text_view_select_all (widget=0x1e281b0, select=1)
    at /build/buildd/gtk+2.0-2.14.4/gtk/gtktextview.c:7452
#1 0x00007fad4e59625d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#2 0x00007fad4e5abc3b in ?? () from /usr/lib/libgobject-2.0.so.0
#3 0x00007fad5139d83c in gtk_binding_entry_activate (entry=0x1e1ccb0,
    object=0x1e281b0) at /build/buildd/gtk+2.0-2.14.4/gtk/gtkbindings.c:537
#4 0x00007fad5139dd21 in binding_match_activate (
    pspec_list=<value optimized out>, object=0x1e281b0, path_length=11,
    path=0x1ea3fe0 "GtkTextView", path_reversed=0x1c75640 "weiVtxeTktG",
    unbound=0x7fff5a4cc8e0)
    at /build/buildd/gtk+2.0-2.14.4/gtk/gtkbindings.c:1109
#5 0x00007fad5139df9a in gtk_bindings_activate_list (object=0x1e281b0,
    entries=<value optimized out>, is_release=<value optimized out>)
    at /build/buildd/gtk+2.0-2.14.4/gtk/gtkbindings.c:1254
#6 0x00007fad5139e105 in IA__gtk_bindings_activate_event (object=0x1e281b0,
    event=0x204f6e0) at /build/buildd/gtk+2.0-2.14.4/gtk/gtkbindings.c:1347
#7 0x00007fad514ffff0 in gtk_text_view_key_press_event (widget=0x1e281b0,
    event=0x204f6e0) at /build/buildd/gtk+2.0-2.14.4/gtk/gtktextview.c:4113
#8 0x00007fad5191a9d2 in ?? () from /usr/lib/libgtksourceview-2.0.so.0
#9 0x00007fad5144c908 in _gtk_marshal_BOOLEAN__BOXED (closure=0x19b5750,
    return_value=0x7fff5a4ccdc0, n_param_values=<value optimized out>,
    param_values=0x2052640, invocation_hint=<value optimized out>,
    marshal_data=0x7fad5191a8a0)

in frame 7, event->keyval has the value 81 (`q')
in frame 3, entry->keyval has the value 97 (`a')

so somehow the event `q' is mapped to the entry for the of shortcut `a' on the way from frame 7 to frame 3.