Re: Using Gtk.Builder to create a menubar.

2018-04-27 Thread Luca Bacci
Yes, actions get a prefix depending on where you put them. Every "action container" has a prefix. In your case you add_action() to GtkApplicationWindow and its prefix is "win" I used your code to create an answer to my StackOverflow question > https://stackoverflow.com/a/50051155/4865723 > great!

Re: Using Gtk.Builder to create a menubar.

2018-04-27 Thread Marius Gedminas
On Thu, Apr 26, 2018 at 09:46:57PM +0200, c.bu...@posteo.jp wrote: > Thank you very much. Your example works for me but I don't understand > why. ;) > > > win.bar > > > action_bar = Gio.SimpleAction.new('bar', None) > > The name of the action in the XML and the code is di