GNOME Bugzilla – Bug 652697
bindings can't create stock items, gtk_stock_item_new is needed
Last modified: 2014-01-25 03:37:51 UTC
The struct GtkStockItem cannot be set from introspected bindings. Eg with python: >from gi.repository import Gtk >a = Gtk.StockItem() >a.keyval = 3L >a.label = "test" RuntimeError: unable to set value for field On IRC it was indicated that the solution would be to have C API for gtk_stock_item_new. This blocks conversion of larger apps to GTK3 that need to register their own stock items via stock_add.
Ok, after 3 days of evening hackings to convert, I finally start to see parts of the interface, and all custom stock items are found. I conclude that add_stock is not really needed to make stock icons known, it suffices for the app to create IconFactory and friends to find custom stock icons. So for me, at the moment the priority of this missing binding is low.
*** Bug 684532 has been marked as a duplicate of this bug. ***
*** Bug 684515 has been marked as a duplicate of this bug. ***