![]() |
![]() |
![]() |
Exo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <exo/exo.h>
ExoCellRendererIcon;
GtkCellRenderer * exo_cell_renderer_icon_new (void
);
An ExoCellRendererIcon can be used to render an icon in a cell. It allows to render either a named icon, which is looked up using the GtkIconTheme, or an image file loaded from the file system. The icon name or absolute path to the image file is set via the icon property.
To support the ExoIconView (and GtkIconView), ExoCellRendererIcon supports rendering icons based on the state of the view if the follow-state property is set.
typedef struct _ExoCellRendererIcon ExoCellRendererIcon;
The ExoIconChooserDialog struct contains only private fields and should not be directly accessed.
GtkCellRenderer * exo_cell_renderer_icon_new (void
);
Creates a new ExoCellRendererIcon. Adjust rendering parameters using object properties,
which can be set globally via g_object_set()
. Also, with GtkCellLayout and
GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. For example
you can bind the icon property on the
cell renderer to an icon name in the model, thus rendering a different icon in each row
of the GtkTreeView.
Returns : |
the newly allocated ExoCellRendererIcon. |
Since 0.3.1.9