GNOME Bugzilla – Bug 684532
Add method for creating StockItem which takes fields as params
Last modified: 2012-09-21 08:49:12 UTC
Currently there is no way to set the string fields of a GtkStockItem through python as the introspection API does not support memory management of string fields. See: http://developer.gnome.org/gi/stable/gi-GIFieldInfo.html#g-field-info-set-field A method for creating a GtkStockItem would help resolve this issue at least for GtkStockItems. Something along the lines of: /** * gtk_stock_item_create: * @stock_id: a stock item name * @label: user-visible label * @modifier: keyboard accelerator modifier key * @keyval: keyboard accelerator * @translation_domain: translation domain of the menu or toolbar item * * Creates a new stock item with the given fields. * * Return value: a new #GtkStockItem **/ GtkStockItem * gtk_stock_item_new(const gchar *stock_id, const gchar *label, GdkModifierType modifier, guint keyval, const gchar *translation_domain);
*** This bug has been marked as a duplicate of bug 652697 ***