Re: Dynamic creation of GtkMenuBar from GModule



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]