GvaCellRendererPixbuf

GvaCellRendererPixbuf — A clickable GtkCellRendererPixbuf

Functions

Properties

gboolean active Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkCellRenderer
            ╰── GtkCellRendererPixbuf
                ╰── GvaCellRendererPixbuf

Description

This is a clickable GtkCellRendererPixbuf subclass. It implements the activate method to emit a “clicked” signal when the cell is activated.

Functions

gva_cell_renderer_pixbuf_new ()

GtkCellRenderer *
gva_cell_renderer_pixbuf_new (void);

Creates a new GvaCellRendererPixbuf object.

Returns

a new GvaCellRendererPixbuf


gva_cell_renderer_pixbuf_get_active ()

gboolean
gva_cell_renderer_pixbuf_get_active (GvaCellRendererPixbuf *cell);

Returns whether cell should be drawn as active.

Parameters

Returns

whether to draw the pixbuf as active


gva_cell_renderer_pixbuf_set_active ()

void
gva_cell_renderer_pixbuf_set_active (GvaCellRendererPixbuf *cell,
                                     gboolean active);

Sets whether cell should be drawn as active.

Parameters

cell

a GvaCellRendererPixbuf

 

active

whether to draw the pixbuf as active

 

Types and Values

struct GvaCellRendererPixbuf

struct GvaCellRendererPixbuf;

Contains only private data that should be read and manipulated using the functions below.

Property Details

The “active” property

  “active”                   gboolean

Whether to draw the pixbuf as active.

Owner: GvaCellRendererPixbuf

Flags: Read / Write

Default value: FALSE

Signal Details

The “clicked” signal

void
user_function (GvaCellRendererPixbuf *renderer,
               GtkTreePath           *tree_path,
               gpointer               user_data)

The ::clicked signal is emitted when the cell is activated.

Parameters

renderer

the GvaCellRendererPixbuf that received the signal

 

tree_path

the GtkTreePath to the row containing the activated pixbuf

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last