pyfa-org / Pyfa

Python fitting assistant, cross-platform fitting tool for EVE Online
GNU General Public License v3.0
1.61k stars 406 forks source link

Menu item icons are not shown under linux (gnome) #1896

Open DarkFenX opened 5 years ago

DarkFenX commented 5 years ago

Debian Testing x86-64 Python 3.7.2 wxPython version: 4.0.4 (wxWidgets 3.0.4) from debian repos

image

This might provide more info:

https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-menu-images

GtkSettings:gtk-menu-images has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is deprecated. Application developers control whether or not a GtkMenuItem should have an icon or not, on a per widget basis. Either use a GtkMenuItem with a GtkBox containing a GtkImage and a GtkAccelLabel, or describe your menus using a GMenu XML description

blitzmann commented 5 years ago

https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.SetBitmap

Notice that GTK+ uses a global setting called gtk-menu-images to determine if the images should be shown in the menus at all. If it is off (which is the case in e.g. Gnome 2.28 by default), no images will be shown, consistently with the native behaviour.

I'm not sure if there's a workaround available, but it might just be something we'll have to deal with unfortunately. :/