Re: using two or more glade files in one dialog

From: Date: Wed, 01 Sep 2004 21:45:56 +0000
Subject: Re: using two or more glade files in one dialog
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5036@lists.php.net to get a copy of this message
Hi
im wanting split up some of my glade files into menubar,body,statusbar ect... and display them all in one dialog. so if i change a menu item in one dialog it will update all the other dialogs.
You mean: - One glade file for the menu, one for the status bar and so? - OR define the menu and the statusbar in the glade file and load just a part of the file, e.g. the menu in all your applications? That is easy; see http://gtk.php.net/manual/en/glade.gladexml.constructor.php and give the second constructor parameter "root" the name of the toplevel menu widget. Then you can place the widget with the normal pack_start(), pack_end() and add() functions on your applications. AppWizard doesn't directly support this; you have to this on your own. Regards/MfG, Christian Weiske -- XMMS is playing now: Nickelback - Leader of men

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5036) next »