Wrong keycode retrieve recursive error

Bug #185951 reported by David Ribeiro
6
Affects Status Importance Assigned to Milestone
btnx-config
In Progress
Medium
Olli Salonen

Bug Description

- In "Button properties" tab, select any button.
- Set the "Event Type" as "Key combination".
- Set the "Keycode" manually with a wrong keycode (example: select the NONE value and replace by f).
- Change the focus and an error is retrieved
Console message:

/usr/share/btnx-config/btnx-config.glade
Warning: dialog_btnd_empty_store could not get an iter.
Warning: tree_config_find_iter could not match name.
Warning: keycodes_get_index could not find keycode: f

- If the Close button is pressed in the error dialog it will come back. It should select the value inserted or change to the previous value.

Console message:

(btnx-config:17626): Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you
connect a handler to this signal, it must return
FALSE so the entry gets the event as well
Error: no keycode by that name exists.
Warning: keycodes_get_index could not find keycode: f
Warning: keycodes_get_index could not find keycode: f

Only way to get out is to kill btnx-config and configuration lost

Tags: keycode
description: updated
Revision history for this message
Olli Salonen (daou) wrote :

I have heard mention of this bug before. Like before, I'm unable to reproduce the recursive error.
On my system, btnx-config shows the error dialog, then does like you suggested: it highlights the erroneous value. This stops the error from continuing.
What version of gtk and glib do you have?

I admit the keycode entry is not ideal, and will probably be reimplemented with the btnx-config C++ rewrite, which is under way.

Revision history for this message
David Ribeiro (david-r-ribeiro) wrote :

Hi,

These are the versions:

> pkg-config --modversion gtk+-2.0
2.12.0
> pkg-config --modversion libglade-2.0
2.6.2

I hope this is useful. But if you need assistance in terms of debugging I can help.
I just need some guidance in turning on the debug mode. :)

Revision history for this message
David Ribeiro (david-r-ribeiro) wrote :

Oops wrong package...
Here is the one asked:
> pkg-config --modversion glib-2.0
2.14.1

Revision history for this message
Olli Salonen (daou) wrote :

Seeing that the bug occurs on newer versions of glib and gtk+-2.0, I consider it a bug.
I won't be publishing a fix to the current branch of btnx-config. The fix will be incorporated to the C++ version of btnx-config.

Thanks for reporting the bug, David.

Changed in btnx-config:
assignee: nobody → daou
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Alexander Kosenkov (a-kosenkov) wrote :

The same problem with 0.4.6 built on Ubuntu 7.10:

(btnx-config:21643): Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you
connect a handler to this signal, it must return
FALSE so the entry gets the event as well

Revision history for this message
semmelb (hajimemasudozo) wrote :

I have the same problem, too. Using 0.4.9 on Ubuntu 8.04

So btnx is unusable for now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.