guile-gtk-general
[Top][All Lists]
Advanced

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

Re: gtk.notebook example


From: Patrick Bernaud
Subject: Re: gtk.notebook example
Date: Thu, 24 Apr 2014 18:56:52 +0200

Hello,

Max writes:
 > [...]
 >  (use-modules (oop goops) (gnome gobject) (gnome gtk) (gnome gobject utils))
 > 
 > (define notebook (make <gtk-notebook>))
 > 
 > (define (hello)
 >   (let* ((window (make <gtk-window> #:type 'toplevel))
 >      (append-page notebook scrolled
 >               (make <gtk-label> :label name :use-underline #t)))
 >     (set-border-width window 10)
 >     (show-all window)
 >     (gtk-main)))
 > 
 > (hello)
 > 
 > Any ideas why? Shall I add created notebook to some top-level
 > window?

Yes, the notebook has to be added to the window:
(add window notebook)

Also note that in the code above 'scrolled' is not defined, neither is
'name', the binding block of the 'let*' is not closed correctly and
you are mixing two keyword read syntaxes. No wonder it does not
compile ! :)

Regards,

-- 
Patrick Bernaud



reply via email to

[Prev in Thread] Current Thread [Next in Thread]