diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2013-01-16 11:43:52 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2013-01-16 11:43:52 +0000 |
| commit | 0fc36cf61dcf46ef4f190feba6a37af22eb6fa34 (patch) | |
| tree | 5004b09363d1a07d6c247270e83d87c7ae2d5a19 /src/dropper-context.h | |
| parent | German translation update (diff) | |
| download | inkscape-0fc36cf61dcf46ef4f190feba6a37af22eb6fa34.tar.gz inkscape-0fc36cf61dcf46ef4f190feba6a37af22eb6fa34.zip | |
Cleanup SPDropperContext:
* Use G_DEFINE_TYPE rather than explicit _get_type function
* Hide private members
(bzr r12031)
Diffstat (limited to 'src/dropper-context.h')
| -rw-r--r-- | src/dropper-context.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/dropper-context.h b/src/dropper-context.h index 22c6a1cf3..68ae3df07 100644 --- a/src/dropper-context.h +++ b/src/dropper-context.h @@ -14,6 +14,8 @@ #include "event-context.h" +G_BEGIN_DECLS + #define SP_TYPE_DROPPER_CONTEXT (sp_dropper_context_get_type ()) #define SP_DROPPER_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_DROPPER_CONTEXT, SPDropperContext)) #define SP_IS_DROPPER_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_DROPPER_CONTEXT)) @@ -28,17 +30,6 @@ enum { struct SPDropperContext { SPEventContext event_context; - - unsigned int dragging : 1; - - SPCanvasItem *grabbed; - SPCanvasItem *area; - Geom::Point centre; - - double R; - double G; - double B; - double alpha; }; struct SPDropperContextClass { @@ -49,6 +40,8 @@ GType sp_dropper_context_get_type (void); guint32 sp_dropper_context_get_color(SPEventContext *ec); +G_END_DECLS + #endif /* |
