Details
struct GtkStockItem
struct GtkStockItem
{
gchar *stock_id;
gchar *label;
GdkModifierType modifier;
guint keyval;
gchar *translation_domain;
}; |
gtk_stock_add ()
Registers each of the stock items in items. If an item already
exists with the same stock ID as one of the items, the old item
gets replaced. The stock items are copied, so GTK+ does not hold
any pointer into items and items can be freed. Use
gtk_stock_add_static() if items is persistent and GTK+ need not
copy the array.
gtk_stock_add_static ()
Same as gtk_stock_add(), but doesn't copy items, so
items must persist until application exit.
gtk_stock_item_copy ()
Copies a stock item, mostly useful for language bindings and not in applications.
gtk_stock_item_free ()
Frees a stock item allocated on the heap, such as one returned by
gtk_stock_item_copy(). Also frees the fields inside the stock item,
if they are not NULL.
gtk_stock_list_items ()
GSList* gtk_stock_list_items (void); |
Retrieves a list of all known GtkStockItem. The items are not copied;
they should not be freed. However, the list itself must be freed
with g_slist_free().
gtk_stock_lookup ()
Fills item with the registered values for stock_id, returning TRUE
if stock_id was known.
GTK_STOCK_BUTTON_APPLY
#define GTK_STOCK_BUTTON_APPLY "gtk-button-apply" |
GTK_STOCK_BUTTON_CANCEL
#define GTK_STOCK_BUTTON_CANCEL "gtk-button-cancel" |
GTK_STOCK_BUTTON_CLOSE
#define GTK_STOCK_BUTTON_CLOSE "gtk-button-close" |
GTK_STOCK_BUTTON_NO
#define GTK_STOCK_BUTTON_NO "gtk-button-no" |
GTK_STOCK_BUTTON_OK
#define GTK_STOCK_BUTTON_OK "gtk-button-ok" |
GTK_STOCK_BUTTON_YES
#define GTK_STOCK_BUTTON_YES "gtk-button-yes" |
GTK_STOCK_DIALOG_ERROR
#define GTK_STOCK_DIALOG_ERROR "gtk-dialog-error" |
GTK_STOCK_DIALOG_INFO
#define GTK_STOCK_DIALOG_INFO "gtk-dialog-info" |
GTK_STOCK_DIALOG_QUESTION
#define GTK_STOCK_DIALOG_QUESTION "gtk-dialog-question" |
GTK_STOCK_DIALOG_WARNING
#define GTK_STOCK_DIALOG_WARNING "gtk-dialog-warning" |
GTK_STOCK_HELP
#define GTK_STOCK_HELP "gtk-help" |
GTK_STOCK_NEW
#define GTK_STOCK_NEW "gtk-new" |
GTK_STOCK_OPEN
#define GTK_STOCK_OPEN "gtk-open" |
GTK_STOCK_QUIT
#define GTK_STOCK_QUIT "gtk-quit" |
GTK_STOCK_SAVE
#define GTK_STOCK_SAVE "gtk-save" |
GTK_STOCK_CLOSE
#define GTK_STOCK_CLOSE "gtk-close" |
GTK_STOCK_MISSING_IMAGE
#define GTK_STOCK_MISSING_IMAGE "gtk-missing-image" |