summaryrefslogtreecommitdiffstats
path: root/src/widgets/button.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-07-05 11:28:36 +0000
committerMartin Owens <doctormo@gmail.com>2013-07-05 11:28:36 +0000
commitead55a54d3ca8f822969180cadcb2b14f78aec93 (patch)
tree6422564d837d9d4b8aa4762703c9eb8ef2bc44ae /src/widgets/button.cpp
parentMake handle colour a configurable property. (diff)
parentFix for builds without --enable-dbusapi (missing #ifdef) (diff)
downloadinkscape-ead55a54d3ca8f822969180cadcb2b14f78aec93.tar.gz
inkscape-ead55a54d3ca8f822969180cadcb2b14f78aec93.zip
Merge: Command-line and DBus refactoring to improve inkscapes ability to be run headless.
(bzr r12402)
Diffstat (limited to 'src/widgets/button.cpp')
-rw-r--r--src/widgets/button.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/button.cpp b/src/widgets/button.cpp
index 467f0d70e..a1bd9b792 100644
--- a/src/widgets/button.cpp
+++ b/src/widgets/button.cpp
@@ -20,6 +20,7 @@
#include "icon.h"
#include "shortcuts.h"
#include "interface.h"
+#include "helper/action-context.h"
#include <gdk/gdkkeysyms.h>
@@ -309,7 +310,7 @@ sp_button_new_from_data( Inkscape::IconSize size,
const gchar *tip )
{
GtkWidget *button;
- SPAction *action=sp_action_new(view, name, name, tip, name, 0);
+ SPAction *action=sp_action_new(Inkscape::ActionContext(view), name, name, tip, name, 0);
button = sp_button_new (size, type, action, NULL);
g_object_unref(action);
return button;