Regrading gtk thread

2007-09-08 Thread Sohel
Hi, I have two buttons using one button I start a thread and using the other button I want to stop this thread. I get the following error when trying to do this : Xlib: unexpected async reply (sequence 0x26ad)! How do I solve this error and if there is a better way to do this ?? I am

Re: Regrading gtk thread

2007-09-08 Thread Yeti
On Sat, Sep 08, 2007 at 02:17:11AM -0700, Sohel wrote: I have two buttons using one button I start a thread and using the other button I want to stop this thread. I get the following error when trying to do this : Xlib: unexpected async reply (sequence 0x26ad)! How do I solve this

Re: Conversion functions.

2007-09-08 Thread Yeti
On Fri, Sep 07, 2007 at 05:02:37PM +0200, Magnus Myrefors wrote: By the way I have found out that I used a way of reading lines from the input-file which can cause some problem. I read in a book that fgets(string, sizeof(string), input) should read one line up to sizeof(string) -1 or to the

Re: Regrading gtk thread

2007-09-08 Thread Sohel
Hi David, Thanks for the reply. I resolved that error but I have one more problem. I want to exit the thread when I call the following function: //I have only one thread in my code gtk_thread_exit(NULL) my entire program exits, instead of the thread being stopped ?? What is the best way to

Re: Regrading gtk thread

2007-09-08 Thread Eduardo M KALINOWSKI
Sohel wrote: Hi David, Thanks for the reply. I resolved that error but I have one more problem. I want to exit the thread when I call the following function: //I have only one thread in my code gtk_thread_exit(NULL) my entire program exits, instead of the thread being stopped ?? What

Re: Regrading gtk thread

2007-09-08 Thread Sohel
thanks for the input. problem has been solved Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: Sohel wrote: Hi David, Thanks for the reply. I resolved that error but I have one more problem. I want to exit the thread when I call the following function: //I have only one thread in my code

regarding scrolled window

2007-09-08 Thread Sohel
Hi, I have a paned window which consists of a listwindow at the top and textwindow at the bottom. The text window gets periodically updated but I am unable to see the complete text as the scroll bars are not scrolling completely. //Declare a scroll window widget GtkWidget

GTK drawing area cannot get keyboard events

2007-09-08 Thread Tom Trebisky
Hello, I have spent a couple of half-days trying to get keyboard events from a GTK drawing area with no luck, so I figure it is time to ask the experts here. My application has a very simple widget hierarchy, a main window holds a vbox which holds a drawing area. The vbox is there because

Re: GTK drawing area cannot get keyboard events

2007-09-08 Thread Yeti
On Sat, Sep 08, 2007 at 02:21:11PM -0700, Tom Trebisky wrote: I have spent a couple of half-days trying to get keyboard events from a GTK drawing area with no luck, I suppose you have read thread http://mail.gnome.org/archives/gtk-list/2007-September/msg00015.html I am getting mouse events