summaryrefslogtreecommitdiffstats
path: root/src/event-context.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-27 18:03:09 +0000
committerTed Gould <ted@canonical.com>2008-10-27 18:03:09 +0000
commit7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch)
tree7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/event-context.h
parentMerging from trunk (diff)
downloadinkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz
inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip
From trunk
(bzr r6885)
Diffstat (limited to 'src/event-context.h')
-rw-r--r--src/event-context.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/event-context.h b/src/event-context.h
index fbffc4065..9b464b7fa 100644
--- a/src/event-context.h
+++ b/src/event-context.h
@@ -21,7 +21,8 @@
#include <gdk/gdktypes.h>
#include <gdk/gdkevents.h>
-#include <2geom/forward.h>
+#include "2geom/forward.h"
+#include "preferences.h"
struct GrDrag;
struct SPDesktop;
@@ -48,7 +49,7 @@ struct SPEventContext : public GObject {
SPEventContext *next;
unsigned key;
SPDesktop *desktop;
- Inkscape::XML::Node *prefs_repr;
+ Inkscape::Preferences::Observer *pref_observer;
gchar const *const *cursor_shape;
gint hot_x, hot_y; ///< indicates the cursor's hot spot
GdkCursor *cursor;
@@ -83,7 +84,7 @@ struct SPEventContext : public GObject {
struct SPEventContextClass : public GObjectClass {
void (* setup)(SPEventContext *ec);
void (* finish)(SPEventContext *ec);
- void (* set)(SPEventContext *ec, gchar const *key, gchar const *val);
+ void (* set)(SPEventContext *ec, Inkscape::Preferences::Entry *val);
void (* activate)(SPEventContext *ec);
void (* deactivate)(SPEventContext *ec);
gint (* root_handler)(SPEventContext *ec, GdkEvent *event);
@@ -95,7 +96,7 @@ struct SPEventContextClass : public GObjectClass {
#define SP_EVENT_CONTEXT_STATIC 0
-SPEventContext *sp_event_context_new(GType type, SPDesktop *desktop, Inkscape::XML::Node *prefs_repr, unsigned key);
+SPEventContext *sp_event_context_new(GType type, SPDesktop *desktop, gchar const *pref_path, unsigned key);
void sp_event_context_finish(SPEventContext *ec);
void sp_event_context_read(SPEventContext *ec, gchar const *key);
void sp_event_context_activate(SPEventContext *ec);