[gedit-list] Gio menu with nested submenus ?
- From: Stuart Axon <stuaxo2 yahoo com>
- To: Gedit-list <gedit-list gnome org>, Gtk-devel-list <gtk-devel-list gnome org>
- Subject: [gedit-list] Gio menu with nested submenus ?
- Date: Fri, 27 Nov 2015 07:34:24 +0000 (UTC)
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]