GIMP Widgets Library Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
GimpCellRendererToggleGimpCellRendererToggle — A GtkCellRendererToggle that displays icons instead of a checkbox. |
GimpCellRendererToggle; GtkCellRenderer * gimp_cell_renderer_toggle_new (const gchar *stock_id
); void gimp_cell_renderer_toggle_clicked (GimpCellRendererToggle *cell
,const gchar *path
,GdkModifierType state
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkCellRenderer +----GtkCellRendererToggle +----GimpCellRendererToggle
"stock-id" gchar* : Read / Write / Construct "stock-size" gint : Read / Write / Construct
GtkCellRenderer * gimp_cell_renderer_toggle_new (const gchar *stock_id
);
Creates a custom version of the GtkCellRendererToggle. Instead of
showing the standard toggle button, it shows a stock icon if the
cell is active and no icon otherwise. This cell renderer is for
example used in the Layers treeview to indicate and control the
layer's visibility by showing GIMP_STOCK_VISIBLE
.
|
the stock_id of the icon to use for the active state |
Returns : |
a new GimpCellRendererToggle |
Since GIMP 2.2
void gimp_cell_renderer_toggle_clicked (GimpCellRendererToggle *cell
,const gchar *path
,GdkModifierType state
);
Emits the "clicked" signal from a GimpCellRendererToggle.
|
a GimpCellRendererToggle |
|
the path to the clicked row |
|
the modifier state |
Since GIMP 2.2
"clicked"
signalvoid user_function (GimpCellRendererToggle *gimpcellrenderertoggle,
gchar *arg1,
GdkModifierType arg2,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |