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]

Re: where is gtk-window-set-modal?


tb@becket.net (Thomas Bushnell, BSG) writes:

> Where is gtk-window-set-modal?  How can I turn that on

gtk-window-set-modal is right there, along with the other functions.
You would use it like this:

    (use-modules (gtk gtk))

    (define (annoy)
      (let ((d (gtk-window-new 'dialog))
	    (b (gtk-button-new-with-label "click me")))
	(gtk-signal-connect b "clicked" (lambda () (gtk-object-destroy d)))
	(gtk-container-add d b)
	(gtk-window-set-modal d #t)
        (gtk-widget-show-all d)))

    (let ((w (gtk-window-new 'dialog))
	  (b (gtk-button-new-with-label "annoy me")))
      (gtk-signal-connect b "clicked" annoy)
      (gtk-container-add w b)
      (gtk-widget-show-all w)
      (gtk-standalone-main w))

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