Re: Problem with continuous image updation

2009-03-23 Thread Adeel Malik
threads in this case. Adeel --- On Fri, 3/20/09, Ardhan Madras aj...@knac.com wrote: From: Ardhan Madras aj...@knac.com Subject: Re: Problem with continuous image updation To: adeelmali...@yahoo.com Cc: gtk-app-devel-list@gnome.org Date: Friday, March 20, 2009, 8:55 AM Hi, As i said before, don't

Re: Problem with continuous image updation

2009-03-23 Thread Ardhan Madras
@gnome.org Subject: Re: Problem with continuous image updation Date: Mon, 23 Mar 2009 00:35:41 -0700 (PDT) Hi, In the button calback function I need to do data acquisition and processing in real-time before updating the status periodically (i.e every 1ms) using g_timeout_add function. So thatswhy

Re: Problem with continuous image updation

2009-03-23 Thread Adeel Malik
Madras aj...@knac.com wrote: From: Ardhan Madras aj...@knac.com Subject: Re: Problem with continuous image updation To: adeelmali...@yahoo.com Cc: gtk-app-devel-list@gnome.org Date: Monday, March 23, 2009, 2:13 PM If you want to use a thread and to prevent blocking, the thread code maybe something

Re: Problem with continuous image updation

2009-03-23 Thread Ardhan Madras
Subject: Re: Problem with continuous image updation Date: Mon, 23 Mar 2009 05:45:03 -0700 (PDT) Hi Ardhan, Currently I have GTK+1.2 version installed on the system which is giving 'undefined reference' errors for function g_thread_create function once I compile the code. Is there any

Re: Problem with continuous image updation

2009-03-19 Thread Adeel Malik
: From: Ardhan Madras aj...@knac.com Subject: Re: Problem with continuous image updation To: adeelmali...@yahoo.com Cc: gtk-app-devel-list@gnome.org Date: Wednesday, March 18, 2009, 5:05 PM Looks like you want to update a widget state by running a busy loop in a main loop or by using small delay

Re: Problem with continuous image updation

2009-03-19 Thread Ardhan Madras
To: aj...@knac.com Cc: gtk-app-devel-list@gnome.org Subject: Re: Problem with continuous image updation Date: Thu, 19 Mar 2009 06:02:14 -0700 (PDT) Hi Ardhan, Thanks for the reply. I modified the code as per your suggestion by attaching the new source in the button callback function

Re: Problem with continuous image updation in a while loop

2009-03-18 Thread Adeel Malik
In my application, I am implementing status indication (displaying either 'red' or 'green' ) by using Gdkpixmap to assign an image to 'red' or 'green' pixel array. i display or hide the image by calling gtk_widget_show (..) or gtk_widget_hide(..) . The structure of my application is as follows:

Re: Problem with continuous image updation in a while loop

2009-03-18 Thread Adeel Malik
In my application, I am implementing status indication (displaying either 'red' or 'green' ) by using Gdkpixmap to assign an image to 'red' or 'green' pixel array. i display or hide the image by calling gtk_widget_show (..) or gtk_widget_hide(..) . The structure of my application is as follows:

Re: Problem with continuous image updation

2009-03-18 Thread Ardhan Madras
thread, then call g_idle_add() to set your widgets. --- ajhwb --- adeelmali...@yahoo.com wrote: From: Adeel Malik adeelmali...@yahoo.com To: Jim George jimgeo...@gmail.com Cc: gtk-app-devel-list@gnome.org Subject: Re: Problem with continuous image updation Date: Wed, 18 Mar 2009 02:31:23 -0700