Re: [gtk-list] Disabling callbacks



I'm not sure exactly what you're looking for, however,
     while(gtk_events_pending())
          gtk_main_iteration();
will update your screen.
 

K. M. Hawarden-Ogata wrote:

Hello all.

I was wondering if anyone has any ideas about this:

I have a widget that calls a callback, which in turn changes a variable.
Fine.

Going the other way, I change that variable and I want to undate (redraw)
the widget to reflect the new state of the variable, without triggering the
callback.

I read the documentation about signals and blocking them, but it's very
sketchy. Does anyone have an idea about what I need to do?

Any help would be much appreciated!

Thanks, Miranda

/------------------------------------------------------------------------\
| Miranda Hawarden-Ogata             Email: hawarden@irtf.ifa.hawaii.edu |
| NASA IRTF, Institute of Astronomy  Phone: (808) 974-4206               |
| 1175 Manono St., Bldg 393            Fax: (808) 974-4207               |
| Hilo, HI 96720                                                         |
\------------------------------------------------------------------------/

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

 
-- 
Bill Smith wsmith@gi.com 215-323-2074
There are 2 Bill Smith's working at GI.
* Please use correct email addr, and phone #. *
 

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