Gio menu with nested submenus ?



Hi,
   I'm porting a gedit plugin to the new menu system.   Are there any examples of using nested submenus with Gtk Builder XML ?

I use this to have an examples menu by checking subdirs then creating XML + feeding it to Gtk Builder.

Examples
   Image
       Photobot
   Etc
       A
       B
       C 
   Etc
 

I create the menu like this:
        builder = Gtk.Builder()
        builder.add_from_string(ui_str)
        builder.connect_signals(self)

        examples_menu = builder.get_object("menubar")

But only seem to get the first level of the menu.

S++


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]