plugin: add a plugin to toggle the menubar's visibility #2263
Conversation
Hmm, more relevantly though: this behaviour already works without the plugin for me (Ubuntu 16.10, GTK 3.20.9). Is this an OS X only problem? |
I could not tell because I don't use OS X. I run my Mac on Fedora 25, and I don't have the menu bar toggle... Hence my plugin :) Is this only on Ubuntu ? Can you see it on other GTK applications ? |
window = app.window | ||
|
||
# Maybe this should be made directly accessible | ||
menubar = window.get_children()[0].get_children()[0] |
lazka
Feb 24, 2017
Member
Good enough for a one time thing I guess.
Good enough for a one time thing I guess.
This is only the case for Ubuntu + Unity with their patched gtk. |
Thanks! |
A possible enhancement would be to listen to click events if shown and see if they are not on the menu or any submenu and then hide the menu again. that would more closely follow what for example firefox does. But I'm not sure how hard that is to implement. |
Oh yes indeed. I never did pay attention firefox/atom did that... |
By pressing the Alt key you can toggle the menubar's visibility (ala Firefox, Atom, ...)