Re: duplicating GtkBuilder created widget objects

2012-12-07 Thread Joe Steeve
I decided to construct a new GtkBuilder every time, and destroy it. It works for me. My xml files are not that big anyway. On Tue, 2012-12-04 at 01:33 +0900, Tristan Van Berkom wrote: Probably you want to use GResource to store your builder xml (or const gchar* memory) instead of scratching

Re: duplicating GtkBuilder created widget objects

2012-12-03 Thread Giuseppe Penone
Hi, AFAIK there's no other way than recall the glade parser many times in different main windows functions. Note that if you call your objects in glade ending with _1 then you copy and paste the first copy will be _2, the second _3 and so on, it happened to me to use this trick and create a vector

Re: duplicating GtkBuilder created widget objects

2012-12-03 Thread Tristan Van Berkom
On Mon, Dec 3, 2012 at 3:12 PM, Joe Steeve j...@hipro.co.in wrote: On Sun, 2012-12-02 at 13:35 +0100, Tomasz Jankowski wrote: I think, that you cannot easily copy widgets. In such situation I usually use gtk_builder_add_objects_from_file(). When we do this, can there be two sets of objects

Re: duplicating GtkBuilder created widget objects

2012-12-02 Thread Joe Steeve
On Sun, 2012-12-02 at 13:35 +0100, Tomasz Jankowski wrote: I think, that you cannot easily copy widgets. In such situation I usually use gtk_builder_add_objects_from_file(). When we do this, can there be two sets of objects with the same name? I dont think so. Scenario: There is one top-level

duplicating GtkBuilder created widget objects

2012-12-01 Thread Joe Steeve
Hello All, I have a GtkBuilder xml created using Glade. I have a top-level window in it named act-window. I need to create multiple act-window objects at the same time. How do I do this? Regards, Joe -- Joe Steeve HiPro IT Solutions Private Limited http://hipro.co.in/