jverzani / gWidgets2

Rewrite of gWidgets
35 stars 9 forks source link

GLib-CRITICAL **: Source ID 8658 was not found when attempting to remove it #62

Closed landroni closed 10 years ago

landroni commented 10 years ago

I notice this strange message with gcombobox(..., use_completion=TRUE). Try:

w <- gwindow()
cb <- gcombobox(letters, editable=TRUE, use_completion=TRUE, cont=ggroup(cont=w))

Now type asdf, then rather quickly and in succession: backspace four times on it then hit a. The a should be almost immediately after the last backspace. Here I get this message:

 GLib-CRITICAL **: Source ID 8658 was not found when attempting to remove it
jverzani commented 10 years ago

Interesting. I can't seem to replicate (I'm getting too old to type rather quickly perhaps?). Hazarding a guess, I'd bet this comes from the Gtk completion code. I have hacked that in to the edit widget. Not sure how one would throttle the keyboard activity to suppress this. Is it more than a cosmetic issue. (Not to trivialize. New users see these warnings and rightly think something is not right.)

landroni commented 10 years ago

So far it feels cosmetic, and seems to pop up only when you're typing quickly and in a specific sequence.

Funnily I see this with a different Gtk programme, emelFM2, a file manager:

(emelfm2:20222): GLib-CRITICAL **: Source ID 135 was not found when attempting to remove it

I don't know how to get that, but maybe it goes deeper into Gtk internals.

Anyways, this seems to be innocuous, so is it possible to catch and suppress these messages?

jverzani commented 10 years ago

I don't know how to do that, sorry.