Blinking cursor assertion when hiding widget
- From: Arjan Molenaar <arjan noterik nl>
- To: gtk-devel-list gnome org
- Subject: Blinking cursor assertion when hiding widget
- Date: Mon, 08 Dec 2003 10:20:34 +0100
Hi,
I have some trouble with the blinking cursor feature. It aborts my app
if the text view doesn't have focus and I hide the text widget.
I use GtkTextView to edit text in DiaCanvas (just add it to the canvas
view (which is a GnomeCanvas / GtkLayout). The text view should hide
when it no longer has the focus. This, quite often causes in this
message:
Gtk-ERROR **: file gtktextview.c: line 4427 (blink_cb): assertion
failed: (GTK_WIDGET_HAS_FOCUS (text_view))
... followed by a core dump.
The question is: What is the best way to hide the text view when/after
it has lost it focus. I tried a idle callback, which works but is IMHO
not a very elegant solution. Doing a text_view.hide() or .destroy() in
the focus_out callback causes the app to dump core...
Any suggestions?
Thanks in advance,
Arjan Molenaar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]