Re: GTK Queue Draw Subtle Question
- From: cecashon aol com
- To: paul linuxaudiosystems com
- Cc: tdineen ix netcom com, gtk-list gnome org
- Subject: Re: GTK Queue Draw Subtle Question
- Date: Sat, 18 Feb 2017 14:27:15 -0500
Thanks Paul,
I put the g_idle_add() in to join the thread. A better place for doing that. Could move the widgets queue redraws from the timer there also. Probably a better design. Some options I will have to consider. The timer is still needed for updating the progress bar and status bar text during drawing though.
A lot you can do with threads but they aren't the easiest to figure out.
Eric
-----Original Message-----
From: Paul Davis <paul linuxaudiosystems com>
To: cecashon <cecashon aol com>
Cc: Thomas Dineen <tdineen ix netcom com>; ML-gtk <gtk-list gnome org>
Sent: Sat, Feb 18, 2017 8:33 am
Subject: Re: GTK Queue Draw Subtle Question
You can call g_idle_add() and various related functions from a non-GTK thread. This is easier and more reliable than using a timer. When your other thread has finished some work, add an idle callback in the main context. the idle callback should call gtk_queue_redraw() for the appropriate window/widgets.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]