Re: set_label of GtkFrame

From: Date: Thu, 02 Feb 2006 16:22:29 +0000
Subject: Re: set_label of GtkFrame
References: 1 2 3 4  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2321@lists.php.net to get a copy of this message
Instead of using this way: $this->frame_codigo=$this->xml->get_widget('frame_codigo'); $this->frame_codigo->set_label($this->Fcodigo); The solution is: $this->frame_codigo=$this->xml->get_widget('frame_codigo'); $tmp=$this->frame_codigo->get_children(); $tmp[1]->set_label($this->Fcodigo); Thanks for the help. 2006/2/2, Eduardo RBS <edurbs@gmail.com>: > > sorry... the correct code... > > when I put the line of Dev_GuiInspector.... the label is shown correctly. > $this->frame_codigo=$this->xml->get_widget('frame_codigo'); > $this->frame_codigo->set_label('testing'); > $gi = new Dev_GuiInspector($this->frame_codigo); > > 2006/2/2, Eduardo RBS <edurbs@gmail.com>: > > > > This code loose the label... > > $this->frame_codigo=$this->xml->get_widget('frame_codigo'); > > $this->frame_codigo->set_label('testing'); > > > > but... when I put the line of Dev_GuiInspector.... the label is shown > > correctly. > > > > $this->frame_codigo=$this->xml->get_widget('frame_codigo'); > > $this->frame_codigo->set_label('testing'); > > $gi = new Dev_GuiInspector($this->frame_descricao); > > > > This question should be in the list php-gtk-general? > > > > > > 2006/2/2, Christian Weiske < cweiske@cweiske.de>: > > > > > > Eduardo, > > > > > > > > > > I'm using glade2 to make the interface with an GtkFrame. But if I > > > try to > > > > change the label, the GtkFrame then looses the label. This is the > > > code: > > > I assume that Glade adds some special alignments or so as label widget > > > to the gtkframe, and adds the label itself as child of the alignment. > > > That would cause GtkFrame's internal set_label method to fail. > > > > > > You can check this by using the Dev_GuiInspector tool to examine the > > > nesting of the frame. Or try to get the frame's label widget and see > > > what type it is. > > > > > > -- > > > Regards/MfG, > > > Christian Weiske > > > > > > > > > > > > > > > -- > > []'s > > Eduardo RBS > > http://linuxstok.sourceforge.net > > > > > > -- > []'s > Eduardo RBS > http://linuxstok.sourceforge.net > -- []'s Eduardo RBS http://linuxstok.sourceforge.net

« previous php.gtk.dev (#2321) next »