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

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

Re: Undefined class


From: David Pirotte
Subject: Re: Undefined class
Date: Mon, 20 Jun 2016 14:39:26 -0300

Hi Tommi,

> It seems that class <gtk-radio-group> is not defined in the guile-gnome
> environment although it is used in some function declarations.

> I'm using guile-gnome-platform version 2.16.4.

        great, it is indeed the latest.

The class is called <gtk-radio-group*>, but it is a 'special' class which you 
can't
instantiate 'by yourself', you need to grab the radio group instantiated by Gtk 
and
specially wrapped by Guile-GNOME so you can use it for the buttons of a same 
group,
here is an example:

        scheme@(guile-user)> ,use (gnome-2)
        scheme@(guile-user)> ,use (gnome gtk)
        scheme@(guile-user)> (gtk-radio-button-new #f) ;; #f means create a new 
group
        $2 = #<<gtk-radio-button> 185a680>
        scheme@(guile-user)> (get-group $2)
        $3 = #<gw:wcp <gtk-radio-group*> 0x1d149b0>
        scheme@(guile-user)> (gtk-radio-button-new $3)
        $4 = #<<gtk-radio-button> 17bf9e0>
        scheme@(guile-user)> 

Cheers,
David

Attachment: pgpl5x4BZ8w8q.pgp
Description: OpenPGP digital signature


reply via email to

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