X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fink-action.h;h=ed3c925115e28a3b49a6f31e1b63b28d4f13bff5;hb=96c274534e3b260291098b7da1875695fe5b30a7;hp=8122393f9a61f5d59ec84ce527954fee1731b647;hpb=a538d96e8f6f16a20dc28b0418031a632e4a7663;p=inkscape.git diff --git a/src/ink-action.h b/src/ink-action.h index 8122393f9..ed3c92511 100644 --- a/src/ink-action.h +++ b/src/ink-action.h @@ -5,7 +5,11 @@ #include #include #include +#include #include +#include "icon-size.h" + +/* Equivalent to GTK Actions of the same type, but can support Inkscape SVG icons */ G_BEGIN_DECLS @@ -71,15 +75,50 @@ struct _InkToggleActionClass GType ink_toggle_action_get_type( void ); InkToggleAction* ink_toggle_action_new( const gchar *name, - const gchar *label, - const gchar *tooltip, - const gchar *inkId, - Inkscape::IconSize size ); + const gchar *label, + const gchar *tooltip, + const gchar *inkId, + Inkscape::IconSize size ); + + +/* --------------------------------------------------------------- */ +/* --------------------------------------------------------------- */ +/* --------------------------------------------------------------- */ +/* --------------------------------------------------------------- */ +#define INK_RADIO_ACTION_TYPE ( ink_radio_action_get_type() ) +#define INK_RADIO_ACTION( obj ) ( G_TYPE_CHECK_INSTANCE_CAST( (obj), INK_RADIO_ACTION_TYPE, InkRadioAction) ) +#define INK_RADIO_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_CAST( (klass), INK_RADIO_ACTION_TYPE, InkRadioActionClass) ) +#define IS_INK_RADIO_ACTION( obj ) ( G_TYPE_CHECK_INSTANCE_TYPE( (obj), INK_RADIO_ACTION_TYPE) ) +#define IS_INK_RADIO_ACTION_CLASS( klass ) ( G_TYPE_CHECK_CLASS_TYPE( (klass), INK_RADIO_ACTION_TYPE) ) +#define INK_RADIO_ACTION_GET_CLASS( obj ) ( G_TYPE_INSTANCE_GET_CLASS( (obj), INK_RADIO_ACTION_TYPE, InkRadioActionClass) ) -G_END_DECLS +typedef struct _InkRadioAction InkRadioAction; +typedef struct _InkRadioActionClass InkRadioActionClass; +typedef struct _InkRadioActionPrivate InkRadioActionPrivate; -#endif /* SEEN_INK_ACTION */ +struct _InkRadioAction +{ + GtkRadioAction action; + InkRadioActionPrivate *private_data; +}; + +struct _InkRadioActionClass +{ + GtkRadioActionClass parent_class; +}; + +GType ink_radio_action_get_type( void ); +InkRadioAction* ink_radio_action_new( const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *inkId, + Inkscape::IconSize size ); + + +G_END_DECLS + +#endif /* SEEN_INK_ACTION */