Re: Gtk screen refresh



What kind of data are you placing in the GtkEntry? I mean GtkEntry can show only UTF-8 characters, and I don't think the serial device uses that encoding. GtkEntry uses to do strange things when you put not UFT-8 data, it seems to work but after a while it can fail, or may be you are freeing a string
after a call to gtk_entry_get_text, which make it fail...

Regards,

D. Campos


Jirka Pirko escribió:

look here... www.chobex.cz/entrypok.c i invalidate whole window and call main_loop_iteration_do - but it still dont work

Daniel Campos napsal(a):

Try to invalidate the widget so it must redraw again...



Jirka Pirko escribió:

it dont work - im calling gtk_main_iteration_do from different pthread than where is running gtk_main... but it makes sense... just for sure im not doing anything wrong...

jirka

Daniel Campos napsal(a):

Jirka Pirko escribió:

hi

i have following problem:

need to append chars to GTK_ENTRY as they are coming from serial port (/dev/ttyS0) i'm reading chars, appending (gtk_entry_appent_text()) them into GTK_ENTRY, but i CANT SEE them. (until i press key or when i put cursor into GTK_ENTRY)

i think i must force gtk_main loop to loop once i recieve each char but i don't know how to do...





Hi:

gtk_main_iteration_do

Regards,

D. Campos


it must be easy to do this but i can't find solution in documentation.

thanks for any helping

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


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









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