This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

inhibiting a signal temporarily


Hi,

Is there a "standard" way of inhibiting a signal temporarily ?

for example, let's have:

	spin-button 	accepting integers (through adjustment)
			upon which I also have a

    			(gtk-signal-connect <spin-b> "changed"
					    (lambda ()
			  		      (let ((val (gtk-spin-button-get-value-as-int <spin-b>)))
			    		        (gtk-clist-select-row clist (- val 1) 0)
			    		        )))

	clist		upon which I also have a

			(gtk-signal-connect clist "select_row"
			                    (lambda (row col event) 
					       ;; ...
				               (gtk-entry-set-text <spin-b>
   								   (number->string (+ row 1))
								   )))
		
			which among other things wants to set the spin-b entry
			to (number->string (+ row 1))

well, something like

	select-row-no-callback
	set-spin-no-callback

of course I can write code to detect wether the caller was the user or my
signal code, but before I wanted to check if other people had a better idea

thanks,
david


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]