forked from AuroraMiddleware/gtk
cell renderer toggle: Make final
This commit is contained in:
parent
ebc2bb9a2f
commit
c1cc94b08b
@ -90,6 +90,25 @@ enum {
|
|||||||
|
|
||||||
static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
|
static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
|
||||||
|
|
||||||
|
typedef struct _GtkCellRendererTogglePrivate GtkCellRendererTogglePrivate;
|
||||||
|
typedef struct _GtkCellRendererToggleClass GtkCellRendererToggleClass;
|
||||||
|
|
||||||
|
struct _GtkCellRendererToggle
|
||||||
|
{
|
||||||
|
GtkCellRenderer parent;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
GtkCellRendererTogglePrivate *priv;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct _GtkCellRendererToggleClass
|
||||||
|
{
|
||||||
|
GtkCellRendererClass parent_class;
|
||||||
|
|
||||||
|
void (* toggled) (GtkCellRendererToggle *cell,
|
||||||
|
const char *path);
|
||||||
|
};
|
||||||
|
|
||||||
struct _GtkCellRendererTogglePrivate
|
struct _GtkCellRendererTogglePrivate
|
||||||
{
|
{
|
||||||
guint active : 1;
|
guint active : 1;
|
||||||
|
@ -30,36 +30,10 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define GTK_TYPE_CELL_RENDERER_TOGGLE (gtk_cell_renderer_toggle_get_type ())
|
#define GTK_TYPE_CELL_RENDERER_TOGGLE (gtk_cell_renderer_toggle_get_type ())
|
||||||
#define GTK_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggle))
|
#define GTK_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggle))
|
||||||
#define GTK_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass))
|
|
||||||
#define GTK_IS_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE))
|
#define GTK_IS_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE))
|
||||||
#define GTK_IS_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE))
|
|
||||||
#define GTK_CELL_RENDERER_TOGGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass))
|
|
||||||
|
|
||||||
typedef struct _GtkCellRendererToggle GtkCellRendererToggle;
|
typedef struct _GtkCellRendererToggle GtkCellRendererToggle;
|
||||||
typedef struct _GtkCellRendererTogglePrivate GtkCellRendererTogglePrivate;
|
|
||||||
typedef struct _GtkCellRendererToggleClass GtkCellRendererToggleClass;
|
|
||||||
|
|
||||||
struct _GtkCellRendererToggle
|
|
||||||
{
|
|
||||||
GtkCellRenderer parent;
|
|
||||||
|
|
||||||
/*< private >*/
|
|
||||||
GtkCellRendererTogglePrivate *priv;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _GtkCellRendererToggleClass
|
|
||||||
{
|
|
||||||
GtkCellRendererClass parent_class;
|
|
||||||
|
|
||||||
void (* toggled) (GtkCellRendererToggle *cell_renderer_toggle,
|
|
||||||
const gchar *path);
|
|
||||||
|
|
||||||
/* Padding for future expansion */
|
|
||||||
void (*_gtk_reserved1) (void);
|
|
||||||
void (*_gtk_reserved2) (void);
|
|
||||||
void (*_gtk_reserved3) (void);
|
|
||||||
void (*_gtk_reserved4) (void);
|
|
||||||
};
|
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GType gtk_cell_renderer_toggle_get_type (void) G_GNUC_CONST;
|
GType gtk_cell_renderer_toggle_get_type (void) G_GNUC_CONST;
|
||||||
|
Loading…
Reference in New Issue
Block a user