Learn R Programming

RGtk2 (version 2.20.31)

gtkButtonNewFromStock: gtkButtonNewFromStock

Description

Creates a new GtkButton containing the image and text from a stock item. Some stock ids have preprocessor functions like GTK_STOCK_OK and GTK_STOCK_APPLY.

Usage

gtkButtonNewFromStock(stock.id, show = TRUE)

Arguments

stock.id
the name of the stock item

Value

GtkWidget] a new GtkButton

Details

If stock.id is unknown, then it will be treated as a mnemonic label (as for gtkButtonNewWithMnemonic).