How to clear GTK_ENTRY



I've got really simple problem. I need to clear Gtk_Entry. I've used
gtk_entry_set_text(entry,""); but! I've got this error

** (communicator:6408): WARNING **: Invalid UTF8 string passed to
pango_layout_s et_text()

** (communicator:6408): CRITICAL **: file pango-layout.c: line 1767
(pango_layou t_get_cursor_pos): assertion `index >= 0 && index <=
layout->length' failed

** (communicator:6408): CRITICAL **: file pango-layout.c: line 1767
(pango_layou t_get_cursor_pos): assertion `index >= 0 && index <=
layout->length' failed

** (communicator:6408): CRITICAL **: file pango-layout.c: line 1767
(pango_layou t_get_cursor_pos): assertion `index >= 0 && index <=
layout->length' failed

** (communicator:6408): WARNING **: Invalid UTF8 string passed to
pango_layout_s et_text()

Why is this error. I see that the text should be longer than 0 - eg. ""
is ok?!

RAT




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]