[Glade-users] signal loop problem
- From: damon ximian com (Damon Chaplin)
- Subject: [Glade-users] signal loop problem
- Date: Thu, 14 Jun 2001 20:20:30 -0400
Jason LaPenta wrote:
Hi,
I have a widget A and a widget B. When a user
edits widget A the signal handler sets some
widget B data. When the user in turn modifies
widget B, the B signal handler sets widget A
data. Now I run into a problem because setting
the widget causes a signal to be called... which
dumps me into a loop between signal... bad.
How do I keep this from happening?
Either:
o block the signals as James said.
o set a variable like 'updating_widgets', and in your signal
handlers check for that and just return if it is set.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]