Re: Create new instance of Glade widget
- From: Piero Rossi <epierostaamori gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Create new instance of Glade widget
- Date: Tue, 20 Jul 2010 11:02:41 -0700 (PDT)
Hi all,
I had the same problem and I solved as Murray Cumming told you.
But I still have a problem: when these instances are being closed, they
don't release memory, also if I delete the pointer to the window.
How can I do?
Regards
Murray Cumming wrote:
>
> On Sat, 2008-03-01 at 16:40 +0100, Andreas Volz wrote:
>> Hello,
>>
>> In most cases I create a complex container with widgets in Glade and
>> then bind the signals in gtkmm to work with it. Now I have the case to
>> design a container in Glade, but use it as "factory template".
>>
>> By default libglademm creates a single instance for me. If I call
>> get_widget() again I get each time a pointer to the same instance. But
>> I like multiple instances of the same widget to add it to different
>> places. How could I do this with libglademm?
>
> You need to create a new instance of Glade::Xml to get a new instance of
> the widget.
>
> --
> murrayc murrayc com
> www.murrayc.com
> www.openismus.com
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
--
View this message in context: http://old.nabble.com/Create-new-instance-of-Glade-widget-tp15777359p29216135.html
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]