Icon name "application-exit" doesn't work
The icon name application-exit
mentioned here doesn't show up in a Gtk.Menubar
or a Gtk.Toolbar
.
I can reproduce this with that code on Debian unstable.
#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class Window(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self)
self.set_default_size(200, 100)
self.menubar = Gtk.MenuBar.new()
item_file = Gtk.MenuItem.new_with_label('File')
self.menubar.append(item_file)
menu_file = Gtk.Menu.new()
item_file.set_submenu(menu_file)
item_update = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_QUIT, None)
item_update.set_label('Exit with Stock-Icon')
menu_file.append(item_update)
item_exit = Gtk.ImageMenuItem.new_from_stock('application-exit', None)
item_exit.set_label('Exit NOT WORKING Icon-Name')
menu_file.append(item_exit)
item_other = Gtk.ImageMenuItem.new_from_stock('gtk-save', None)
item_other.set_label('Save with Icon-Name')
menu_file.append(item_other)
# layout
self.layout = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.layout.pack_start(self.menubar, False, False, 0)
self.add(self.layout)
self.connect('destroy', Gtk.main_quit)
self.show_all()
def on_menu(self, caller):
print(caller)
if __name__ == '__main__':
win = Window()
Gtk.main()
Same for
image-missing
no
preferences-system
process-stop
- (stoped here for testing more) :)