From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16266.31074.688738.837862 at akasha.ijm.jussieu.fr> Date: Mon, 13 Oct 2003 12:07:30 +0200 To: lablgtk at kaba.or.jp Subject: Re: ANNOUNCE: lablGL, LablGTK1, LablGTK2 combined release In-Reply-To: <20031010205947.GA31778 at cs.unibo.it> References: <20031010185936H.garrigue at kurims.kyoto-u.ac.jp> <20031010134222.GA12891@iliana> <20031010205947.GA31778@cs.unibo.it> Claudio Sacerdoti Coen [Friday 10 October 2003] : > > Hi Sven, > > > Saddly, Olivier's patch which add support for set/get_label on buttons > > was not included, this means people using this feature cannot use the > > prebuilt windows libaries, and i was wanting to do just that :(( > > I can not really understand your concerns. > "label" is a property of a button and you can always use properties > by means of set/get. Indeed the patch of Olivier boils down to: > > method set_label = set Button.P.label obj > method label = get Button.P.label obj > > that means that, given a button b, you should always be able to > set Button.P.label b#as_widget and > get Button.P.label b#as_widget actually you have to do a downcast because #as_widget returns a [`gtk|`widget] obj and the property setter/getter needs a [> `button] obj. So that would be : Gobject.set GtkButtonProps.Button.P.label (GtkButtonProps.Button.cast b#as_widget) -- Olivier