Re: How to clear GTK_ENTRY




try this:

gtk_editable_delete_text(GTK_EDITABLE(entry), 0, -1);

----- Original Message -----
From: RAT <rat mujmail cz>
Date: Sun, 03 Oct 2004 12:47:53 +0200
To: gtk-app-devel-list gnome org
Subject: 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

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze



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