gimp r26064 - in trunk: . app/tools



Author: martinn
Date: Sat Jul  5 08:51:03 2008
New Revision: 26064
URL: http://svn.gnome.org/viewvc/gimp?rev=26064&view=rev

Log:
2008-07-05  Martin Nordholts  <martinn svn gnome org>

	* app/tools/gimpeditselectiontool.[ch]: Don't expose the icky
	implementation details.


Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpeditselectiontool.c
   trunk/app/tools/gimpeditselectiontool.h

Modified: trunk/app/tools/gimpeditselectiontool.c
==============================================================================
--- trunk/app/tools/gimpeditselectiontool.c	(original)
+++ trunk/app/tools/gimpeditselectiontool.c	Sat Jul  5 08:51:03 2008
@@ -64,6 +64,38 @@
 #define ARROW_VELOCITY          25
 
 
+typedef struct _GimpEditSelectionTool
+{
+  GimpDrawTool        parent_instance;
+
+  gint                origx, origy;    /*  Last x and y coords               */
+  gint                cumlx, cumly;    /*  Cumulative changes to x and yed   */
+  gint                x, y;            /*  Current x and y coords            */
+  gint                num_segs_in;     /*  Num seg in selection boundary     */
+  gint                num_segs_out;    /*  Num seg in selection boundary     */
+  BoundSeg           *segs_in;         /*  Pointer to the channel sel. segs  */
+  BoundSeg           *segs_out;        /*  Pointer to the channel sel. segs  */
+
+  gint                x1, y1;          /*  Bounding box of selection mask    */
+  gint                x2, y2;
+
+  GimpTranslateMode   edit_mode;       /*  Translate the mask or layer?      */
+
+  gboolean            first_move;      /*  Don't push undos after the first  */
+
+  gboolean            propagate_release;
+
+  gboolean            constrain;       /*  Constrain the movement            */
+  gdouble             start_x, start_y;/*  Coords when button was pressed    */
+  gdouble             last_x,  last_y; /*  Previous coords sent to _motion   */
+} GimpEditSelectionTool;
+
+typedef struct _GimpEditSelectionToolClass
+{
+  GimpDrawToolClass   parent_class;
+} GimpEditSelectionToolClass;
+
+
 static void       gimp_edit_selection_tool_button_release      (GimpTool                    *tool,
                                                                 GimpCoords                  *coords,
                                                                 guint32                      time,

Modified: trunk/app/tools/gimpeditselectiontool.h
==============================================================================
--- trunk/app/tools/gimpeditselectiontool.h	(original)
+++ trunk/app/tools/gimpeditselectiontool.h	Sat Jul  5 08:51:03 2008
@@ -30,41 +30,6 @@
 #define GIMP_IS_EDIT_SELECTION_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_EDIT_SELECTION_TOOL))
 
 
-typedef struct _GimpEditSelectionTool      GimpEditSelectionTool;
-typedef struct _GimpEditSelectionToolClass GimpEditSelectionToolClass;
-
-struct _GimpEditSelectionTool
-{
-  GimpDrawTool        parent_instance;
-
-  gint                origx, origy;    /*  Last x and y coords               */
-  gint                cumlx, cumly;    /*  Cumulative changes to x and yed   */
-  gint                x, y;            /*  Current x and y coords            */
-  gint                num_segs_in;     /*  Num seg in selection boundary     */
-  gint                num_segs_out;    /*  Num seg in selection boundary     */
-  BoundSeg           *segs_in;         /*  Pointer to the channel sel. segs  */
-  BoundSeg           *segs_out;        /*  Pointer to the channel sel. segs  */
-
-  gint                x1, y1;          /*  Bounding box of selection mask    */
-  gint                x2, y2;
-
-  GimpTranslateMode   edit_mode;       /*  Translate the mask or layer?      */
-
-  gboolean            first_move;      /*  Don't push undos after the first  */
-
-  gboolean            propagate_release;
-
-  gboolean            constrain;       /*  Constrain the movement            */
-  gdouble             start_x, start_y;/*  Coords when button was pressed    */
-  gdouble             last_x,  last_y; /*  Previous coords sent to _motion   */
-};
-
-struct _GimpEditSelectionToolClass
-{
-  GimpDrawToolClass   parent_class;
-};
-
-
 GType      gimp_edit_selection_tool_get_type  (void) G_GNUC_CONST;
 
 void       gimp_edit_selection_tool_start     (GimpTool          *parent_tool,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]