From 0fc36cf61dcf46ef4f190feba6a37af22eb6fa34 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Wed, 16 Jan 2013 11:43:52 +0000 Subject: Cleanup SPDropperContext: * Use G_DEFINE_TYPE rather than explicit _get_type function * Hide private members (bzr r12031) --- src/dropper-context.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/dropper-context.h') 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 /* -- cgit v1.2.3