Top |
GimpCellRendererToggleGimpCellRendererToggle — A GtkCellRendererToggle that displays icons instead of a checkbox. |
GtkCellRenderer * | gimp_cell_renderer_toggle_new () |
void | gimp_cell_renderer_toggle_clicked () |
char * | icon-name | Read / Write / Construct |
gboolean | override-background | Read / Write / Construct |
char * | stock-id | Read / Write / Construct |
int | stock-size | Read / Write / Construct |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkCellRenderer ╰── GtkCellRendererToggle ╰── GimpCellRendererToggle
GtkCellRenderer *
gimp_cell_renderer_toggle_new (const gchar *icon_name
);
Creates a custom version of the GtkCellRendererToggle. Instead of
showing the standard toggle button, it shows a named 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
.
Since: 2.2
void gimp_cell_renderer_toggle_clicked (GimpCellRendererToggle *cell
,const gchar *path
,GdkModifierType state
);
Emits the "clicked" signal from a GimpCellRendererToggle.
Since: 2.2
“icon-name”
property “icon-name” char *
The icon to display.
Owner: GimpCellRendererToggle
Flags: Read / Write / Construct
Default value: NULL
“override-background”
property “override-background” gboolean
Draw the background if the row is selected.
Owner: GimpCellRendererToggle
Flags: Read / Write / Construct
Default value: FALSE
“stock-id”
property “stock-id” char *
The icon to display, deprecated.
Owner: GimpCellRendererToggle
Flags: Read / Write / Construct
Default value: NULL
“clicked”
signalvoid user_function (GimpCellRendererToggle *gimpcellrenderertoggle, char *arg1, GdkModifierType arg2, gpointer user_data)
Flags: Run Last