]> git.sur5r.net Git - glabels/commitdiff
Code cleanup. Mostly formatting.
authorJim Evins <evins@snaught.com>
Tue, 17 Sep 2002 02:46:25 +0000 (02:46 +0000)
committerJim Evins <evins@snaught.com>
Tue, 17 Sep 2002 02:46:25 +0000 (02:46 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@121 f5e0f49d-192f-0410-a22d-a8d8700d0965

14 files changed:
glabels2/src/label-barcode.c
glabels2/src/label-barcode.h
glabels2/src/label-box.c
glabels2/src/label-box.h
glabels2/src/label-ellipse.c
glabels2/src/label-ellipse.h
glabels2/src/label-image.c
glabels2/src/label-image.h
glabels2/src/label-line.c
glabels2/src/label-line.h
glabels2/src/label-object.c
glabels2/src/label-object.h
glabels2/src/label-text.c
glabels2/src/label-text.h

index aaa9920aa2f38855418f6c8ee420a587950f41a8..b00e2dd80d0f31ce0f63dae2c468d77c63024d05 100644 (file)
@@ -57,11 +57,11 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_barcode_class_init (glLabelBarcodeClass *klass);
-static void gl_label_barcode_instance_init (glLabelBarcode *lbc);
-static void gl_label_barcode_finalize (GObject *object);
+static void gl_label_barcode_class_init    (glLabelBarcodeClass *klass);
+static void gl_label_barcode_instance_init (glLabelBarcode      *lbc);
+static void gl_label_barcode_finalize      (GObject             *object);
 
-static void update_size (glLabelBarcode *lbc);
+static void update_size                    (glLabelBarcode      *lbc);
 
 \f
 /*****************************************************************************/
@@ -143,15 +143,15 @@ gl_label_barcode_new (glLabel *label)
 /*****************************************************************************/
 glLabelBarcode *
 gl_label_barcode_dup (glLabelBarcode *lbc,
-                   glLabel *label)
+                     glLabel        *label)
 {
        glLabelBarcode      *new_lbc;
        glTextNode          *text_node;
-       gdouble             x, y, w, h;
-       glBarcodeStyle      style;
-       gboolean            text_flag;
-       guint               color;
-       gdouble             scale;
+       gdouble              x, y, w, h;
+       glBarcodeStyle       style;
+       gboolean             text_flag;
+       guint                color;
+       gdouble              scale;
 
        gl_debug (DEBUG_LABEL, "START");
 
@@ -185,7 +185,7 @@ gl_label_barcode_dup (glLabelBarcode *lbc,
 /*****************************************************************************/
 void
 gl_label_barcode_set_data (glLabelBarcode *lbc,
-                          glTextNode *text_node)
+                          glTextNode     *text_node)
 {
        gl_debug (DEBUG_LABEL, "START");
 
@@ -203,13 +203,11 @@ gl_label_barcode_set_data (glLabelBarcode *lbc,
 
 void
 gl_label_barcode_set_props (glLabelBarcode *lbc,
-                           glBarcodeStyle style,
-                           gboolean text_flag,
-                           guint color,
-                           gdouble scale)
+                           glBarcodeStyle  style,
+                           gboolean        text_flag,
+                           guint           color,
+                           gdouble         scale)
 {
-       GdkPixbuf *pixbuf;
-
        gl_debug (DEBUG_LABEL, "START");
 
        g_return_if_fail (lbc && GL_IS_LABEL_BARCODE (lbc));
@@ -241,9 +239,9 @@ gl_label_barcode_get_data (glLabelBarcode *lbc)
 void
 gl_label_barcode_get_props (glLabelBarcode *lbc,
                            glBarcodeStyle *style,
-                           gboolean *text_flag,
-                           guint *color,
-                           gdouble *scale)
+                           gboolean       *text_flag,
+                           guint          *color,
+                           gdouble        *scale)
 {
        g_return_if_fail (lbc && GL_IS_LABEL_BARCODE (lbc));
 
index d1c0e09b2b627027a7efe923c8ab369a09f0a0a5..a0b878303187c2407b86fa7f221565e368974f48 100644 (file)
@@ -46,34 +46,35 @@ typedef struct _glLabelBarcodePrivate   glLabelBarcodePrivate;
 struct _glLabelBarcode {
        glLabelObject            object;
 
-       glLabelBarcodePrivate    *private;
+       glLabelBarcodePrivate   *private;
 };
 
 struct _glLabelBarcodeClass {
        glLabelObjectClass       parent_class;
 };
 
-extern GType          gl_label_barcode_get_type  (void);
 
-extern GObject        *gl_label_barcode_new      (glLabel *label);
+GType           gl_label_barcode_get_type  (void);
 
-extern glLabelBarcode *gl_label_barcode_dup      (glLabelBarcode *lbc,
-                                                 glLabel *label);
+GObject        *gl_label_barcode_new       (glLabel        *label);
 
-extern void           gl_label_barcode_set_data  (glLabelBarcode *lbc,
-                                                 glTextNode *text_node);
-extern void           gl_label_barcode_set_props (glLabelBarcode *lbc,
-                                                 glBarcodeStyle style,
-                                                 gboolean text_flag,
-                                                 guint color,
-                                                 gdouble scale);
+glLabelBarcode *gl_label_barcode_dup       (glLabelBarcode *lbc,
+                                           glLabel        *label);
 
-extern glTextNode     *gl_label_barcode_get_data (glLabelBarcode *lbc);
-extern void           gl_label_barcode_get_props (glLabelBarcode *lbc,
-                                                 glBarcodeStyle *style,
-                                                 gboolean *text_flag,
-                                                 guint *color,
-                                                 gdouble *scale);
+void            gl_label_barcode_set_data  (glLabelBarcode *lbc,
+                                           glTextNode     *text_node);
+void            gl_label_barcode_set_props (glLabelBarcode *lbc,
+                                           glBarcodeStyle  style,
+                                           gboolean        text_flag,
+                                           guint           color,
+                                           gdouble         scale);
+
+glTextNode     *gl_label_barcode_get_data  (glLabelBarcode *lbc);
+void            gl_label_barcode_get_props (glLabelBarcode *lbc,
+                                           glBarcodeStyle *style,
+                                           gboolean       *text_flag,
+                                           guint          *color,
+                                           gdouble        *scale);
 
 G_END_DECLS
 
index a7e816ae9d1c2ad9701fe0280ea11c30c849f3ed..6abc231207cf4a3c001b66e21b6cf72283237363 100644 (file)
@@ -48,9 +48,9 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_box_class_init (glLabelBoxClass *klass);
-static void gl_label_box_instance_init (glLabelBox *lbox);
-static void gl_label_box_finalize (GObject *object);
+static void gl_label_box_class_init    (glLabelBoxClass *klass);
+static void gl_label_box_instance_init (glLabelBox      *lbox);
+static void gl_label_box_finalize      (GObject         *object);
 
 \f
 /*****************************************************************************/
@@ -131,11 +131,11 @@ gl_label_box_new (glLabel *label)
 /*****************************************************************************/
 glLabelBox *
 gl_label_box_dup (glLabelBox *lbox,
-                 glLabel *label)
+                 glLabel    *label)
 {
        glLabelBox *new_lbox;
-       gdouble    x, y, w, h, line_width;
-       guint      line_color, fill_color;
+       gdouble     x, y, w, h, line_width;
+       guint       line_color, fill_color;
 
        gl_debug (DEBUG_LABEL, "START");
 
@@ -170,7 +170,7 @@ gl_label_box_dup (glLabelBox *lbox,
 /*****************************************************************************/
 void
 gl_label_box_set_line_width (glLabelBox *lbox,
-                            gdouble    line_width)
+                            gdouble     line_width)
 {
        g_return_if_fail (lbox && GL_IS_LABEL_BOX (lbox));
 
@@ -182,7 +182,7 @@ gl_label_box_set_line_width (glLabelBox *lbox,
 
 void
 gl_label_box_set_line_color (glLabelBox *lbox,
-                            guint      line_color)
+                            guint       line_color)
 {
        g_return_if_fail (lbox && GL_IS_LABEL_BOX (lbox));
 
@@ -194,7 +194,7 @@ gl_label_box_set_line_color (glLabelBox *lbox,
 
 void
 gl_label_box_set_fill_color (glLabelBox *lbox,
-                            guint      fill_color)
+                            guint       fill_color)
 {
        g_return_if_fail (lbox && GL_IS_LABEL_BOX (lbox));
 
index fc5b6f9e3b0db40633562ee455d320a638768399..cfd93df62352b73b9b406a560b24021651fd06fe 100644 (file)
@@ -43,32 +43,32 @@ typedef struct _glLabelBoxPrivate   glLabelBoxPrivate;
 struct _glLabelBox {
        glLabelObject         object;
 
-       glLabelBoxPrivate *private;
+       glLabelBoxPrivate    *private;
 };
 
 struct _glLabelBoxClass {
        glLabelObjectClass    parent_class;
 };
 
-extern GType         gl_label_box_get_type       (void);
+GType         gl_label_box_get_type       (void);
 
-extern GObject      *gl_label_box_new            (glLabel *label);
+GObject      *gl_label_box_new            (glLabel *label);
 
-extern glLabelBox   *gl_label_box_dup            (glLabelBox *lbox,
-                                                 glLabel *label);
+glLabelBox   *gl_label_box_dup            (glLabelBox *lbox,
+                                          glLabel    *label);
 
-extern void          gl_label_box_set_line_width (glLabelBox *lbox,
-                                                 gdouble line_width);
+void          gl_label_box_set_line_width (glLabelBox *lbox,
+                                          gdouble     line_width);
 
-extern void          gl_label_box_set_line_color (glLabelBox *lbox,
-                                                 guint line_color);
+void          gl_label_box_set_line_color (glLabelBox *lbox,
+                                          guint       line_color);
 
-extern void          gl_label_box_set_fill_color (glLabelBox *lbox,
-                                                 guint fill_color);
+void          gl_label_box_set_fill_color (glLabelBox *lbox,
+                                          guint       fill_color);
 
-extern gdouble       gl_label_box_get_line_width (glLabelBox *lbox);
-extern guint         gl_label_box_get_line_color (glLabelBox *lbox);
-extern guint         gl_label_box_get_fill_color (glLabelBox *lbox);
+gdouble       gl_label_box_get_line_width (glLabelBox *lbox);
+guint         gl_label_box_get_line_color (glLabelBox *lbox);
+guint         gl_label_box_get_fill_color (glLabelBox *lbox);
 
 
 G_END_DECLS
index e071f5d43e05441d373bc81b399790d6162aeedb..9a7ac46ca698a8c1488df403d7ef0ddccb0ccd19 100644 (file)
@@ -48,9 +48,9 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_ellipse_class_init (glLabelEllipseClass *klass);
-static void gl_label_ellipse_instance_init (glLabelEllipse *lellipse);
-static void gl_label_ellipse_finalize (GObject *object);
+static void gl_label_ellipse_class_init    (glLabelEllipseClass *klass);
+static void gl_label_ellipse_instance_init (glLabelEllipse      *lellipse);
+static void gl_label_ellipse_finalize      (GObject             *object);
 
 \f
 /*****************************************************************************/
@@ -131,11 +131,11 @@ gl_label_ellipse_new (glLabel *label)
 /*****************************************************************************/
 glLabelEllipse *
 gl_label_ellipse_dup (glLabelEllipse *lellipse,
-                     glLabel *label)
+                     glLabel        *label)
 {
        glLabelEllipse *new_lellipse;
-       gdouble        x, y, w, h, line_width;
-       guint          line_color, fill_color;
+       gdouble         x, y, w, h, line_width;
+       guint           line_color, fill_color;
 
        gl_debug (DEBUG_LABEL, "START");
 
@@ -169,7 +169,7 @@ gl_label_ellipse_dup (glLabelEllipse *lellipse,
 /*****************************************************************************/
 void
 gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
-                                gdouble        line_width)
+                                gdouble         line_width)
 {
        g_return_if_fail (lellipse && GL_IS_LABEL_ELLIPSE (lellipse));
 
@@ -181,7 +181,7 @@ gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
 
 void
 gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
-                                guint          line_color)
+                                guint           line_color)
 {
        g_return_if_fail (lellipse && GL_IS_LABEL_ELLIPSE (lellipse));
 
@@ -193,7 +193,7 @@ gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
 
 void
 gl_label_ellipse_set_fill_color (glLabelEllipse *lellipse,
-                                guint          fill_color)
+                                guint           fill_color)
 {
        g_return_if_fail (lellipse && GL_IS_LABEL_ELLIPSE (lellipse));
 
index 8704e698d9f0f3e00ca09d333d750b5887bddf6f..b7b0cf724daa1bdd1df2e133f96e26a6acc3660b 100644 (file)
@@ -41,34 +41,34 @@ typedef struct _glLabelEllipseClass     glLabelEllipseClass;
 typedef struct _glLabelEllipsePrivate   glLabelEllipsePrivate;
 
 struct _glLabelEllipse {
-       glLabelObject         object;
+       glLabelObject          object;
 
        glLabelEllipsePrivate *private;
 };
 
 struct _glLabelEllipseClass {
-       glLabelObjectClass    parent_class;
+       glLabelObjectClass     parent_class;
 };
 
-extern GType       gl_label_ellipse_get_type       (void);
+GType           gl_label_ellipse_get_type       (void);
 
-extern GObject    *gl_label_ellipse_new            (glLabel *label);
+GObject        *gl_label_ellipse_new            (glLabel *label);
 
-extern glLabelEllipse *gl_label_ellipse_dup        (glLabelEllipse *lellipse,
-                                                   glLabel *label);
+glLabelEllipse *gl_label_ellipse_dup            (glLabelEllipse *lellipse,
+                                                glLabel        *label);
 
-extern void        gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
-                                                   gdouble line_width);
+void            gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
+                                                gdouble         line_width);
 
-extern void        gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
-                                                   guint line_color);
+void            gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
+                                                guint           line_color);
 
-extern void        gl_label_ellipse_set_fill_color (glLabelEllipse *lellipse,
-                                                   guint fill_color);
+void            gl_label_ellipse_set_fill_color (glLabelEllipse *lellipse,
+                                                guint           fill_color);
 
-extern gdouble     gl_label_ellipse_get_line_width (glLabelEllipse *lellipse);
-extern guint       gl_label_ellipse_get_line_color (glLabelEllipse *lellipse);
-extern guint       gl_label_ellipse_get_fill_color (glLabelEllipse *lellipse);
+gdouble         gl_label_ellipse_get_line_width (glLabelEllipse *lellipse);
+guint           gl_label_ellipse_get_line_color (glLabelEllipse *lellipse);
+guint           gl_label_ellipse_get_fill_color (glLabelEllipse *lellipse);
 
 
 G_END_DECLS
index 9ca6c30bc14cf9eca98f8125f60aaca045b66eec..552603f42aef395c00574248a2ff2517a7893f1f 100644 (file)
@@ -49,9 +49,9 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_image_class_init (glLabelImageClass *klass);
-static void gl_label_image_instance_init (glLabelImage *limage);
-static void gl_label_image_finalize (GObject *object);
+static void gl_label_image_class_init    (glLabelImageClass *klass);
+static void gl_label_image_instance_init (glLabelImage      *limage);
+static void gl_label_image_finalize      (GObject           *object);
 
 \f
 /*****************************************************************************/
@@ -136,10 +136,10 @@ gl_label_image_new (glLabel *label)
 /*****************************************************************************/
 glLabelImage *
 gl_label_image_dup (glLabelImage *limage,
-                   glLabel *label)
+                   glLabel      *label)
 {
        glLabelImage *new_limage;
-       gdouble      x, y, w, h;
+       gdouble       x, y, w, h;
        gchar        *filename;
 
        gl_debug (DEBUG_LABEL, "START");
@@ -172,7 +172,7 @@ gl_label_image_dup (glLabelImage *limage,
 /*****************************************************************************/
 void
 gl_label_image_set_filename (glLabelImage *limage,
-                            const gchar *filename)
+                            const gchar  *filename)
 {
        GdkPixbuf *pixbuf;
 
index 34af171a0855f1386898c5fd6aafbec33cd96ad6..143f0d198232a823c8883333f2733bbd381f2c79 100644 (file)
@@ -43,26 +43,26 @@ typedef struct _glLabelImagePrivate   glLabelImagePrivate;
 struct _glLabelImage {
        glLabelObject         object;
 
-       glLabelImagePrivate *private;
+       glLabelImagePrivate  *private;
 };
 
 struct _glLabelImageClass {
        glLabelObjectClass    parent_class;
 };
 
-extern GType        gl_label_image_get_type      (void);
+GType            gl_label_image_get_type     (void);
 
-extern GObject      *gl_label_image_new          (glLabel *label);
+GObject         *gl_label_image_new          (glLabel *label);
 
-extern glLabelImage *gl_label_image_dup          (glLabelImage *limage,
-                                                 glLabel *label);
+glLabelImage    *gl_label_image_dup          (glLabelImage *limage,
+                                             glLabel      *label);
 
-extern void         gl_label_image_set_filename  (glLabelImage *limage,
-                                                 const gchar *filename);
+void             gl_label_image_set_filename (glLabelImage *limage,
+                                             const gchar  *filename);
 
-extern gchar        *gl_label_image_get_filename (glLabelImage *limage);
+gchar           *gl_label_image_get_filename (glLabelImage *limage);
 
-extern const GdkPixbuf *gl_label_image_get_pixbuf (glLabelImage *limage);
+const GdkPixbuf *gl_label_image_get_pixbuf   (glLabelImage *limage);
 
 G_END_DECLS
 
index 990a2b96cd00e740b5bbde41d4ad5bf18908bc1f..9730b438dc5e82e4c14afafd5af5d109c28be4e0 100644 (file)
@@ -47,9 +47,9 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_line_class_init (glLabelLineClass *klass);
-static void gl_label_line_instance_init (glLabelLine *lline);
-static void gl_label_line_finalize (GObject *object);
+static void gl_label_line_class_init    (glLabelLineClass *klass);
+static void gl_label_line_instance_init (glLabelLine      *lline);
+static void gl_label_line_finalize      (GObject          *object);
 
 \f
 /*****************************************************************************/
@@ -130,7 +130,7 @@ gl_label_line_new (glLabel *label)
 /*****************************************************************************/
 glLabelLine *
 gl_label_line_dup (glLabelLine *lline,
-                     glLabel *label)
+                  glLabel     *label)
 {
        glLabelLine *new_lline;
        gdouble        x, y, w, h, line_width;
@@ -166,7 +166,7 @@ gl_label_line_dup (glLabelLine *lline,
 /*****************************************************************************/
 void
 gl_label_line_set_line_width (glLabelLine *lline,
-                                gdouble        line_width)
+                             gdouble      line_width)
 {
        g_return_if_fail (lline && GL_IS_LABEL_LINE (lline));
 
@@ -178,7 +178,7 @@ gl_label_line_set_line_width (glLabelLine *lline,
 
 void
 gl_label_line_set_line_color (glLabelLine *lline,
-                                guint          line_color)
+                             guint        line_color)
 {
        g_return_if_fail (lline && GL_IS_LABEL_LINE (lline));
 
index b418b890dd13f8af7525b3a3c0721e3183621bf0..5b1f175d90b37482303a3f44f3f5cc5757b89568 100644 (file)
@@ -43,28 +43,28 @@ typedef struct _glLabelLinePrivate   glLabelLinePrivate;
 struct _glLabelLine {
        glLabelObject         object;
 
-       glLabelLinePrivate *private;
+       glLabelLinePrivate   *private;
 };
 
 struct _glLabelLineClass {
        glLabelObjectClass    parent_class;
 };
 
-extern GType       gl_label_line_get_type       (void);
+GType        gl_label_line_get_type       (void);
 
-extern GObject    *gl_label_line_new            (glLabel *label);
+GObject     *gl_label_line_new            (glLabel     *label);
 
-extern glLabelLine *gl_label_line_dup        (glLabelLine *lline,
-                                                   glLabel *label);
+glLabelLine *gl_label_line_dup            (glLabelLine *lline,
+                                          glLabel     *label);
 
-extern void        gl_label_line_set_line_width (glLabelLine *lline,
-                                                   gdouble line_width);
+void         gl_label_line_set_line_width (glLabelLine *lline,
+                                          gdouble      line_width);
 
-extern void        gl_label_line_set_line_color (glLabelLine *lline,
-                                                   guint line_color);
+void         gl_label_line_set_line_color (glLabelLine *lline,
+                                          guint        line_color);
 
-extern gdouble     gl_label_line_get_line_width (glLabelLine *lline);
-extern guint       gl_label_line_get_line_color (glLabelLine *lline);
+gdouble      gl_label_line_get_line_width (glLabelLine *lline);
+guint        gl_label_line_get_line_color (glLabelLine *lline);
 
 
 G_END_DECLS
index badbd339888c6cbba8a6e70da1abd6131f0875b3..76eaa6701ed8b4345f6179b4d877d9f6ca88727e 100644 (file)
@@ -32,7 +32,7 @@
 /*========================================================*/
 
 struct _glLabelObjectPrivate {
-       gchar *name;
+       gchar  *name;
        gdouble x, y;
        gdouble w, h;
 };
@@ -59,9 +59,9 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_object_class_init (glLabelObjectClass *klass);
-static void gl_label_object_instance_init (glLabelObject *object);
-static void gl_label_object_finalize (GObject *object);
+static void gl_label_object_class_init    (glLabelObjectClass *klass);
+static void gl_label_object_instance_init (glLabelObject      *object);
+static void gl_label_object_finalize      (GObject            *object);
 
 \f
 /*****************************************************************************/
@@ -212,7 +212,7 @@ gl_label_object_emit_changed (glLabelObject *object)
 /*****************************************************************************/
 void
 gl_label_object_set_parent (glLabelObject *object,
-                           glLabel *label)
+                           glLabel       *label)
 {
        glLabel *old_parent;
 
@@ -252,7 +252,7 @@ gl_label_object_get_parent (glLabelObject *object)
 /*****************************************************************************/
 void
 gl_label_object_set_name (glLabelObject *object,
-                         gchar *name)
+                         gchar         *name)
 {
        gl_debug (DEBUG_LABEL, "START");
 
@@ -286,8 +286,8 @@ gl_label_object_get_name (glLabelObject *object)
 /*****************************************************************************/
 void
 gl_label_object_set_position (glLabelObject *object,
-                             gdouble x,
-                             gdouble y)
+                             gdouble        x,
+                             gdouble        y)
 {
        gdouble dx, dy;
 
@@ -311,8 +311,8 @@ gl_label_object_set_position (glLabelObject *object,
 /*****************************************************************************/
 void
 gl_label_object_set_position_relative (glLabelObject *object,
-                                      gdouble dx,
-                                      gdouble dy)
+                                      gdouble        dx,
+                                      gdouble        dy)
 {
        gl_debug (DEBUG_LABEL, "START");
 
@@ -335,8 +335,8 @@ gl_label_object_set_position_relative (glLabelObject *object,
 /*****************************************************************************/
 void
 gl_label_object_get_position (glLabelObject *object,
-                             gdouble *x,
-                             gdouble *y)
+                             gdouble       *x,
+                             gdouble       *y)
 {
        gl_debug (DEBUG_LABEL, "START");
 
@@ -353,8 +353,8 @@ gl_label_object_get_position (glLabelObject *object,
 /*****************************************************************************/
 void
 gl_label_object_set_size (glLabelObject *object,
-                         gdouble w,
-                         gdouble h)
+                         gdouble        w,
+                         gdouble        h)
 {
        gl_debug (DEBUG_LABEL, "START");
 
@@ -373,8 +373,8 @@ gl_label_object_set_size (glLabelObject *object,
 /*****************************************************************************/
 void
 gl_label_object_get_size (glLabelObject *object,
-                         gdouble *w,
-                         gdouble *h)
+                         gdouble       *w,
+                         gdouble       *h)
 {
        gl_debug (DEBUG_LABEL, "START");
 
index 878f711d861c16a43be6fa2f96ac2aedb63a97ca..1a24cf6804a76e530372b2867940535cfa6b7f50 100644 (file)
@@ -53,7 +53,7 @@ typedef struct _glLabelObjectPrivate   glLabelObjectPrivate;
 #include "label.h"
 
 struct _glLabelObject {
-       GObject              object;
+       GObject               object;
 
        glLabel              *parent;
 
@@ -61,45 +61,49 @@ struct _glLabelObject {
 };
 
 struct _glLabelObjectClass {
-       GObjectClass         parent_class;
+       GObjectClass          parent_class;
 
        void (*changed) (glLabelObject *object, gpointer user_data);
 
-       void (*moved) (glLabelObject *object,
-                      gdouble dx, gdouble dy, gpointer user_data);
+       void (*moved)   (glLabelObject *object,
+                        gdouble dx, gdouble dy, gpointer user_data);
 
-       void (*top) (glLabelObject *object, gpointer user_data);
-       void (*bottom) (glLabelObject *object, gpointer user_data);
+       void (*top)     (glLabelObject *object, gpointer user_data);
+       void (*bottom)  (glLabelObject *object, gpointer user_data);
 };
 
-extern GType     gl_label_object_get_type     (void);
-
-extern GObject  *gl_label_object_new          (glLabel *label);
-
-extern void      gl_label_object_emit_changed (glLabelObject *object);
-
-extern void      gl_label_object_set_parent   (glLabelObject *object,
-                                              glLabel *label);
-extern glLabel  *gl_label_object_get_parent   (glLabelObject *object);
-
-extern void      gl_label_object_set_name     (glLabelObject *object,
-                                              gchar *name);
-extern gchar    *gl_label_object_get_name     (glLabelObject *object);
-
-extern void      gl_label_object_set_position (glLabelObject *object,
-                                              gdouble x, gdouble y);
-extern void      gl_label_object_set_position_relative (glLabelObject *object,
-                                                       gdouble dx,
-                                                       gdouble dy);
-extern void      gl_label_object_get_position (glLabelObject *object,
-                                              gdouble *x, gdouble *y);
-extern void      gl_label_object_set_size (glLabelObject *object,
-                                          gdouble w, gdouble h);
-extern void      gl_label_object_get_size (glLabelObject *object,
-                                          gdouble *w, gdouble *h);
-
-extern void          gl_label_object_raise_to_top    (glLabelObject * object);
-extern void          gl_label_object_lower_to_bottom (glLabelObject * object);
+GType     gl_label_object_get_type              (void);
+
+GObject  *gl_label_object_new                   (glLabel       *label);
+
+void      gl_label_object_emit_changed          (glLabelObject *object);
+
+void      gl_label_object_set_parent            (glLabelObject *object,
+                                                glLabel       *label);
+glLabel  *gl_label_object_get_parent            (glLabelObject *object);
+
+void      gl_label_object_set_name              (glLabelObject *object,
+                                                gchar         *name);
+gchar    *gl_label_object_get_name              (glLabelObject *object);
+
+void      gl_label_object_set_position          (glLabelObject *object,
+                                                gdouble         x,
+                                                gdouble         y);
+void      gl_label_object_set_position_relative (glLabelObject *object,
+                                                gdouble        dx,
+                                                gdouble        dy);
+void      gl_label_object_get_position          (glLabelObject *object,
+                                                gdouble       *x,
+                                                gdouble       *y);
+void      gl_label_object_set_size              (glLabelObject *object,
+                                                gdouble        w,
+                                                gdouble        h);
+void      gl_label_object_get_size              (glLabelObject *object,
+                                                gdouble       *w,
+                                                gdouble       *h);
+
+void      gl_label_object_raise_to_top          (glLabelObject *object);
+void      gl_label_object_lower_to_bottom       (glLabelObject *object);
 
 G_END_DECLS
 
index 8e30f995ce9b17220c80f7ff418fd71a15535c38..ded111da5817e8d421e0f3693235be975d31b868 100644 (file)
@@ -66,11 +66,11 @@ static guint instance = 0;
 /* Private function prototypes.                           */
 /*========================================================*/
 
-static void gl_label_text_class_init (glLabelTextClass *klass);
-static void gl_label_text_instance_init (glLabelText *ltext);
-static void gl_label_text_finalize (GObject *object);
+static void gl_label_text_class_init    (glLabelTextClass *klass);
+static void gl_label_text_instance_init (glLabelText      *ltext);
+static void gl_label_text_finalize      (GObject          *object);
 
-static void update_size (glLabelText *ltext);
+static void update_size                 (glLabelText      *ltext);
 
 \f
 /*****************************************************************************/
@@ -158,17 +158,17 @@ gl_label_text_new (glLabel *label)
 /*****************************************************************************/
 glLabelText *
 gl_label_text_dup (glLabelText *ltext,
-                   glLabel *label)
+                  glLabel     *label)
 {
        glLabelText      *new_ltext;
-       gdouble          x, y, w, h;
+       gdouble           x, y, w, h;
        GList            *lines;
        gchar            *font_family;
-       gdouble          font_size;
-       GnomeFontWeight  font_weight;
-       gboolean         font_italic_flag;
-       guint            color;
-       GtkJustification just;
+       gdouble           font_size;
+       GnomeFontWeight   font_weight;
+       gboolean          font_italic_flag;
+       guint             color;
+       GtkJustification  just;
 
        gl_debug (DEBUG_LABEL, "START");
 
@@ -209,7 +209,7 @@ gl_label_text_dup (glLabelText *ltext,
 /*****************************************************************************/
 void
 gl_label_text_set_lines (glLabelText *ltext,
-                        GList *lines)
+                        GList       *lines)
 {
        gl_debug (DEBUG_LABEL, "START");
 
@@ -226,12 +226,12 @@ gl_label_text_set_lines (glLabelText *ltext,
 }
 
 void
-gl_label_text_set_props (glLabelText *ltext,
-                        gchar *font_family,
-                        gdouble font_size,
-                        GnomeFontWeight font_weight,
-                        gboolean font_italic_flag,
-                        guint color,
+gl_label_text_set_props (glLabelText     *ltext,
+                        gchar           *font_family,
+                        gdouble          font_size,
+                        GnomeFontWeight  font_weight,
+                        gboolean         font_italic_flag,
+                        guint            color,
                         GtkJustification just)
 {
        GdkPixbuf *pixbuf;
@@ -271,12 +271,12 @@ gl_label_text_get_lines (glLabelText *ltext)
 }
 
 void
-gl_label_text_get_props (glLabelText *ltext,
-                        gchar **font_family,
-                        gdouble *font_size,
-                        GnomeFontWeight *font_weight,
-                        gboolean *font_italic_flag,
-                        guint *color,
+gl_label_text_get_props (glLabelText      *ltext,
+                        gchar           **font_family,
+                        gdouble          *font_size,
+                        GnomeFontWeight  *font_weight,
+                        gboolean         *font_italic_flag,
+                        guint            *color,
                         GtkJustification *just)
 {
        g_return_if_fail (ltext && GL_IS_LABEL_TEXT (ltext));
@@ -297,14 +297,14 @@ gl_label_text_get_props (glLabelText *ltext,
 static void
 update_size (glLabelText *ltext)
 {
-       gdouble w, h;
-       GnomeFont *font;
-       gchar *text;
-       gchar **line;
-       gint i;
+       gdouble         w, h;
+       GnomeFont      *font;
+       gchar          *text;
+       gchar         **line;
+       gint            i;
        GnomeGlyphList *glyphlist;
-       ArtDRect bbox;
-       gdouble affine[6];
+       ArtDRect        bbox;
+       gdouble         affine[6];
 
        gl_debug (DEBUG_LABEL, "START");
 
index cb7fd31f8c1d0a1579e1532d386cf97eef5ac9ca..83c6498223ff9da0623ab0c42117d75f81e57bbb 100644 (file)
@@ -45,38 +45,38 @@ typedef struct _glLabelTextPrivate   glLabelTextPrivate;
 struct _glLabelText {
        glLabelObject         object;
 
-       glLabelTextPrivate    *private;
+       glLabelTextPrivate   *private;
 };
 
 struct _glLabelTextClass {
        glLabelObjectClass    parent_class;
 };
 
-extern GType        gl_label_text_get_type     (void);
-
-extern GObject      *gl_label_text_new         (glLabel *label);
-
-extern glLabelText *gl_label_text_dup          (glLabelText *ltext,
-                                               glLabel *label);
-
-extern void         gl_label_text_set_lines    (glLabelText *ltext,
-                                               GList *lines);
-extern void         gl_label_text_set_props    (glLabelText *ltext,
-                                               gchar *font_family,
-                                               gdouble font_size,
-                                               GnomeFontWeight font_weight,
-                                               gboolean font_italic_flag,
-                                               guint color,
-                                               GtkJustification just);
-
-extern GList        *gl_label_text_get_lines   (glLabelText *ltext);
-extern void         gl_label_text_get_props    (glLabelText *ltext,
-                                               gchar **font_family,
-                                               gdouble *font_size,
-                                               GnomeFontWeight *font_weight,
-                                               gboolean *font_italic_flag,
-                                               guint *color,
-                                               GtkJustification *just);
+GType         gl_label_text_get_type     (void);
+
+GObject      *gl_label_text_new          (glLabel          *label);
+
+glLabelText  *gl_label_text_dup          (glLabelText      *ltext,
+                                         glLabel          *label);
+
+void          gl_label_text_set_lines    (glLabelText      *ltext,
+                                         GList            *lines);
+void          gl_label_text_set_props    (glLabelText      *ltext,
+                                         gchar            *font_family,
+                                         gdouble           font_size,
+                                         GnomeFontWeight   font_weight,
+                                         gboolean          font_italic_flag,
+                                         guint             color,
+                                         GtkJustification  just);
+
+GList        *gl_label_text_get_lines    (glLabelText      *ltext);
+void          gl_label_text_get_props    (glLabelText      *ltext,
+                                         gchar           **font_family,
+                                         gdouble          *font_size,
+                                         GnomeFontWeight  *font_weight,
+                                         gboolean         *font_italic_flag,
+                                         guint            *color,
+                                         GtkJustification *just);
 
 G_END_DECLS