summaryrefslogtreecommitdiffstats
path: root/src/ink-action.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-01-10 22:21:59 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-01-10 22:21:59 +0000
commit43e79a060f82609db18b84c7db1c60f638e2ac8c (patch)
tree7207ebfa250a6817ca6e020225049af2902cb732 /src/ink-action.cpp
parentFixes rendering of feImage (using bitmaps) by preventing the error "Unable to... (diff)
downloadinkscape-43e79a060f82609db18b84c7db1c60f638e2ac8c.tar.gz
inkscape-43e79a060f82609db18b84c7db1c60f638e2ac8c.zip
Added a new toolbar with snapping controls
(bzr r7107)
Diffstat (limited to 'src/ink-action.cpp')
-rw-r--r--src/ink-action.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ink-action.cpp b/src/ink-action.cpp
index acb65d131..7bcb297d3 100644
--- a/src/ink-action.cpp
+++ b/src/ink-action.cpp
@@ -15,8 +15,6 @@
#include "widgets/button.h"
#include "widgets/icon.h"
-
-
static void ink_action_class_init( InkActionClass* klass );
static void ink_action_init( InkAction* action );
static void ink_action_finalize( GObject* obj );
@@ -354,7 +352,8 @@ InkToggleAction* ink_toggle_action_new( const gchar *name,
const gchar *label,
const gchar *tooltip,
const gchar *inkId,
- Inkscape::IconSize size )
+ Inkscape::IconSize size,
+ SPAttributeEnum attr)
{
GObject* obj = (GObject*)g_object_new( INK_TOGGLE_ACTION_TYPE,
"name", name,
@@ -362,8 +361,10 @@ InkToggleAction* ink_toggle_action_new( const gchar *name,
"tooltip", tooltip,
"iconId", inkId,
"iconSize", Inkscape::getRegisteredIconSize(size),
+ //"SP_ATTR_INKSCAPE", attr, // Why doesn't this work and do I need to use g_object_set_data below?
NULL );
+ g_object_set_data(obj, "SP_ATTR_INKSCAPE", GINT_TO_POINTER(attr));
InkToggleAction* action = INK_TOGGLE_ACTION( obj );
return action;