The menu bar is hidden for all my GTK applications (LXTerminal, Leafpad, Thunar…). How can I show it? I have the issue with OpenBox, and with Gnome-shell.
Menu not shown in GTK applications
gtkmenu
Related Solutions
You say Gedit is not usng X11; which version of gtk-quartz does it uses?
Maybe it is the osX specific layer used that is not properly supported by gtk? see also: https://bugzilla.gnome.org/show_bug.cgi?id=617583
It seems GTK and GTK+ are the same and GTK1 is quite old so on my system I have:
- GTK2 (same as GTK+ 2)
- GTK3 (same as GTK+ 3)
- QT5
One way to tell what toolkit an application is using is to look at the dependencies for the application, so for example on a Debian system like Ubuntu to find the dependencies for application mousepad:
dpkg -s mousepad | grep "Depends"
Depends: libc6 (>= 2.4), libdbus-1-3 (>= 1.9.14), libdbus-glib-1-2 (>= 0.88), libglib2.0-0 (>= 2.41.1), libgtk-3-0 (>= 3.2.1), libgtksourceview-3.0-1 (>= 2.91.4), libpango-1.0-0 (>= 1.14.0), dconf-gsettings-backend | gsettings-backend
So here you can see that mousepad depends on libgtk-3-0. Likewise the dependencies for a GTK2 application like leafpad have libgtk2.0-0 and dependencies for a QT application like VirtualBox have something like libqt5core5a
Note to find out package name for application like virtualbox you can use
dpkg -l | grep -i virtualbox
so in this example it returns "virtualbox-5.1" as the package name.
Once you have found what each of GTK2, GTK3 and QT look like, then you can tell from the icons what an application is using at it seems it is unlikely that GTK2, GTK3 and QT will share the same icon theme (in fact I have not being able to find an icon theme that I can use for both GTK2 and GTK3).
It is not just the look of the icons, you can also tell from what is displayed in the left pane when opening a file as it seems:
GTK2 will display:
Search
Recently Used
Home folder
Desktop
Devices (so will always show FileSystem, plus any separate partitions)
ALL bookmarks
GTK3 will display:
Recently Used
Home folder
Desktop
Documents
Downloads
Music
Pictures
Videos
Rubbish Bin
Bookmarks excluding Documents, Downloads, Music, Pictures and Videos
+ Other Locations
So in GTK3 it would appear you cannot show Devices in the left pane (other than removable devices) so you have to click on "+ Other Locations" to get to your partitions and there seems no way of excluding Documents, Downloads, Music, Pictures, Videos and Rubbish Bin. If there is a way of customising the GTK3 file chooser to show Devices, then I would be interested to know.
The reason you cannot use the same icon theme for both GTK2 and GTK3 is that they don't use the same names for the icon files, so you would have to find an icon scheme that has the icon names for both GTK2 and GTK3.
QT looks completely different, so the left pane looks like:
So this is a very minimalist view
Best Answer
I had the same problem on OpenSUSE 42.3 with GTK 2.0 appplications. When searching for a solution I often stumbled upon
unity
and on ubuntu forums there is a post that states this is a unity bug.As I do no use unity, I tried removing related packages. For me the packages to remove were
unity-gtk2-module
,unity-gtk3-module
andunity-gtk-module-common
. Removing these packages solved my problem. All menubars were back after the next login.