Re: Dynamic creation of GtkMenuBar from GModule
- From: Ed Catmur <ed catmur co uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: Dynamic creation of GtkMenuBar from GModule
- Date: Tue, 30 Jan 2007 23:28:15 +0000
On Tue, 2007-01-30 at 10:12 +0100, Alessandro Oliva wrote:
is it possible to access the variabile of a main program from a dynamic
module ?
example:
a menu is created in the main program, a function in one dynamic module
(created with GModule)
call:
menuitem_test = gtk_menu_item_new_with_mnemonic ("_TEST");
gtk_widget_show (menuitem_test);
gtk_container_add (/top_menubar/, menuitem_test);
where /top_menubar/ is created in the main program
You should be using GtkUIManager for that. Pass the application's
GtkUIManager into the setup function for the module.
Ed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]