summaryrefslogtreecommitdiffstats
path: root/src/ink-action.h
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-03-24 06:05:04 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-03-24 06:05:04 +0000
commit61bf214b6e7303ea1877e6916cb7147e3eddd5fb (patch)
treef8ba95490c12244289e696a2460673494d170f25 /src/ink-action.h
parenttesting my first commit (dummy) (diff)
downloadinkscape-61bf214b6e7303ea1877e6916cb7147e3eddd5fb.tar.gz
inkscape-61bf214b6e7303ea1877e6916cb7147e3eddd5fb.zip
Updating star toolbar with radio toggles
(bzr r2748)
Diffstat (limited to 'src/ink-action.h')
-rw-r--r--src/ink-action.h48
1 files changed, 44 insertions, 4 deletions
diff --git a/src/ink-action.h b/src/ink-action.h
index 8122393f9..8e82efeda 100644
--- a/src/ink-action.h
+++ b/src/ink-action.h
@@ -5,8 +5,11 @@
#include <glib.h>
#include <gtk/gtkaction.h>
#include <gtk/gtktoggleaction.h>
+#include <gtk/gtkradioaction.h>
#include <glib-object.h>
+/* Equivalent to GTK Actions of the same type, but can support Inkscape SVG icons */
+
G_BEGIN_DECLS
#define INK_ACTION_TYPE ( ink_action_get_type() )
@@ -71,10 +74,47 @@ 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) )
+
+typedef struct _InkRadioAction InkRadioAction;
+typedef struct _InkRadioActionClass InkRadioActionClass;
+typedef struct _InkRadioActionPrivate InkRadioActionPrivate;
+
+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 );