GNOME Bugzilla – Bug 457384
critical warning from entrycompletion
Last modified: 2007-08-28 20:48:06 UTC
Steps to repro: 0) Start gtk+/tests/testentrycompletion 1) Use the Properties button on the 1st entry to set "inline selection" to TRUE 2) Type "t" in the 1st entry. The completion will pop up and insert "tot" in the 1st entry. 3) Press ESC Results: Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed
+ Trace 148378
This is with gtk+ svn trunk.
2007-07-16 Matthias Clasen <mclasen@redhat.com> Fix some issues with some combinations of inline-selection and inline-completion. (#457384, Christian Persch) * gtk/gtkentry.c (gtk_entry_completion_key_press): Don't store the completion_prefix here, and be careful when using completion_prefix, because it may be NULL. * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Free completion_prefix here. * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): (gtk_entry_completion_insert_completion_text): Store the completion_prefix here.
*** Bug 456852 has been marked as a duplicate of this bug. ***
BTW, I just noticed this totally breaks anyone not using the default handler for cursor-on-match (for example, epiphany), as the completion-prefix is now stored there. Any reason not to move it back to gtk_entry_completion_key_press and just be more careful when using it?