GtkCellRendererAccel

GtkCellRendererAccel — Renders a keyboard accelerator in a cell

Functions

Types and Values

Includes

#include <gtk/gtk.h>

Description

GtkCellRendererAccel displays a keyboard accelerator (i.e. a key combination like Control + a). If the cell renderer is editable, the accelerator can be changed by simply typing the new combination.

The GtkCellRendererAccel cell renderer was added in GTK+ 2.10.

Functions

gtk_cell_renderer_accel_new ()

GtkCellRenderer *
gtk_cell_renderer_accel_new (void);

Creates a new GtkCellRendererAccel.

Returns

the new cell renderer

Since: 2.10

Types and Values

struct GtkCellRendererAccel

struct GtkCellRendererAccel {
  GtkCellRendererText parent;
};

enum GtkCellRendererAccelMode

Determines if the edited accelerators are GTK+ accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK+ are allowed, and the accelerators are rendered in the same way as they are in menus.

Members

GTK_CELL_RENDERER_ACCEL_MODE_GTK

GTK+ accelerators mode

 

GTK_CELL_RENDERER_ACCEL_MODE_OTHER

Other accelerator mode