Touch sensitivity for gtk application.

2010-04-29 Thread guru prasad
Hi all, I have a GTK application running on ARM platform having touchscreen. I have to control the back light of the display means whenever display is not touched for certain time I have turn off back light. And again I touches back back light should become ON. Can anyone suggest what can be done f

Re: How to handle GIO channel when the other side kills the connection

2010-04-29 Thread Ardhan Madras
Hi, Do you keep reading channel's data although the other side close connection? maybe you have to check every read call (g_io_channel_read_chars()) for errors. GIOChannel is a wrapper of system related I/O such as socket, this will be more clear if you try socket API related calls than using G

Re: how to get the parent of a selected row in treeview?

2010-04-29 Thread Damien Caliste
Hello, Le 26/04/2010, Arthur 1989 a écrit : > Although I can get selection with gtk_tree_selection_get_selected(), > but i don't know how to get the selected row's parent.for example, > when i click on "Ubuntu 10.04",how to get its' parent "Linux"? You can use gtk_tree_model_iter_parent () when d

Pango underline does not work with cairo scale.

2010-04-29 Thread Magicloud Magiclouds
Hi, the code is following. In a scaled cairo context, the underline is not scaled as the text. test.png shows that the underline is ever larger than the "00". The version of pango is 1.28.0-1. The version of cairo is 1.8.10-4. #include #include int main () { cairo_surface_t * s = cairo_image_