[gimp/soc-2011-gimpunitentry] Some header clean-up



commit 5bd01a5b6972f39dbcea922cf73c999bb231d9c0
Author: Enrico SchroÌder <enni schroeder gmail com>
Date:   Sun Jul 10 14:51:46 2011 +0200

    Some header clean-up

 libgimpwidgets/gimpunitadjustment.h |   52 ++++++++++++++++++++---------------
 libgimpwidgets/gimpunitentry.h      |   44 +++++++++++++++++++-----------
 libgimpwidgets/gimpunitentrytable.h |    2 +-
 libgimpwidgets/gimpunitparser.h     |    1 -
 4 files changed, 59 insertions(+), 40 deletions(-)
---
diff --git a/libgimpwidgets/gimpunitadjustment.h b/libgimpwidgets/gimpunitadjustment.h
index 06d653b..fc583a4 100644
--- a/libgimpwidgets/gimpunitadjustment.h
+++ b/libgimpwidgets/gimpunitadjustment.h
@@ -58,28 +58,36 @@ struct _GimpUnitAdjustmentClass
   guint sig_resolution_changed_id;
 };
 
-/**
- * prototypes
- **/
-GType   gimp_unit_adjustment_get_type (void);
-GObject *gimp_unit_adjustment_new (void);
-
-/* sets unit of adjustment, does conversion if neccessary */
-void    gimp_unit_adjustment_set_unit (GimpUnitAdjustment *adj, GimpUnit unit);
-/* sets/gets the value of an adjustment */
-void    gimp_unit_adjustment_set_value (GimpUnitAdjustment *adj, gdouble value);
-void    gimp_unit_adjustment_set_value_in_unit (GimpUnitAdjustment *adj, gdouble value, GimpUnit unit);
-gdouble gimp_unit_adjustment_get_value (GimpUnitAdjustment *adj);
-gdouble gimp_unit_adjustment_get_value_in_unit    (GimpUnitAdjustment *adj, GimpUnit unit);
-void    gimp_unit_adjustment_set_resolution (GimpUnitAdjustment *adj, gdouble res);
-gdouble gimp_unit_adjustment_get_resolution (GimpUnitAdjustment *adj);
-GimpUnit gimp_unit_adjustment_get_unit (GimpUnitAdjustment *adj);
-void    gimp_unit_adjustment_set_bounds (GimpUnitAdjustment *adj, GimpUnit unit, gdouble upper, gdouble lower);
-/* get string in format "value unit" */
-gchar*  gimp_unit_adjustment_to_string (GimpUnitAdjustment *adj);
-gchar*  gimp_unit_adjustment_to_string_in_unit (GimpUnitAdjustment *adj, GimpUnit unit);
-/* connects adjustment to another adjustment */
-void    gimp_unit_adjustment_connect (GimpUnitAdjustment *adj, GimpUnitAdjustment *target);
+
+GType     gimp_unit_adjustment_get_type           (void);
+GObject  *gimp_unit_adjustment_new                (void);
+
+void      gimp_unit_adjustment_set_unit           (GimpUnitAdjustment *adj, 
+                                                   GimpUnit            unit);
+void      gimp_unit_adjustment_set_value          (GimpUnitAdjustment *adj, 
+                                                   gdouble             value);
+void      gimp_unit_adjustment_set_value_in_unit  (GimpUnitAdjustment *adj, 
+                                                   gdouble             value, 
+                                                   GimpUnit            unit);
+void      gimp_unit_adjustment_set_resolution     (GimpUnitAdjustment *adj, 
+                                                   gdouble             res);
+void      gimp_unit_adjustment_set_bounds         (GimpUnitAdjustment *adj, 
+                                                   GimpUnit            unit, 
+                                                   gdouble             upper, 
+                                                   gdouble             lower);                                                   
+                                                                                                      
+gdouble   gimp_unit_adjustment_get_value          (GimpUnitAdjustment *adj);
+gdouble   gimp_unit_adjustment_get_value_in_unit  (GimpUnitAdjustment *adj, 
+                                                   GimpUnit            unit);
+gdouble   gimp_unit_adjustment_get_resolution     (GimpUnitAdjustment *adj);
+GimpUnit  gimp_unit_adjustment_get_unit           (GimpUnitAdjustment *adj);
+
+gchar*    gimp_unit_adjustment_to_string          (GimpUnitAdjustment *adj);
+gchar*    gimp_unit_adjustment_to_string_in_unit  (GimpUnitAdjustment *adj, 
+                                                   GimpUnit            unit);
+
+void      gimp_unit_adjustment_connect            (GimpUnitAdjustment *adj, 
+                                                   GimpUnitAdjustment *target);
 
 G_END_DECLS
 
diff --git a/libgimpwidgets/gimpunitentry.h b/libgimpwidgets/gimpunitentry.h
index 62968de..696850f 100644
--- a/libgimpwidgets/gimpunitentry.h
+++ b/libgimpwidgets/gimpunitentry.h
@@ -69,22 +69,34 @@ struct _GimpUnitEntryClass
   GtkSpinButtonClass parent_class;
 };
 
-GType     gimp_unit_entry_get_type (void);
-GtkWidget *gimp_unit_entry_new (const gchar *id);
-GimpUnitAdjustment *gimp_unit_entry_get_adjustment (GimpUnitEntry *entry);
-/* connect to another entry */
-void gimp_unit_entry_connect (GimpUnitEntry *entry, GimpUnitEntry *target);
-/* convenience getters/setters */
-const gchar* gimp_unit_entry_get_id (GimpUnitEntry *entry);
-void gimp_unit_entry_set_unit (GimpUnitEntry *entry, GimpUnit unit);
-void gimp_unit_entry_set_resolution (GimpUnitEntry *entry, gdouble resolution);
-void gimp_unit_entry_set_value (GimpUnitEntry *entry, gdouble value);
-void gimp_unit_entry_set_value_in_unit (GimpUnitEntry *entry, gdouble value, GimpUnit unit);
-gdouble gimp_unit_entry_get_value (GimpUnitEntry *entry);
-gdouble gimp_unit_entry_get_value_in_unit (GimpUnitEntry *entry, GimpUnit unit);
-GimpUnit gimp_unit_entry_get_unit (GimpUnitEntry *entry);
-void gimp_unit_entry_set_bounds (GimpUnitEntry *entry, GimpUnit unit, gdouble upper, gdouble lower);
-void gimp_unit_entry_set_mode (GimpUnitEntry *entry, GimpUnitEntryMode mode);
+GType                 gimp_unit_entry_get_type          (void);
+GtkWidget *           gimp_unit_entry_new               (const gchar        *id);
+
+GimpUnitAdjustment *  gimp_unit_entry_get_adjustment    (GimpUnitEntry      *entry);
+const gchar *         gimp_unit_entry_get_id            (GimpUnitEntry      *entry);
+gdouble               gimp_unit_entry_get_value         (GimpUnitEntry      *entry);
+gdouble               gimp_unit_entry_get_value_in_unit (GimpUnitEntry      *entry, 
+                                                         GimpUnit            unit);
+GimpUnit              gimp_unit_entry_get_unit          (GimpUnitEntry      *entry);
+
+void                  gimp_unit_entry_set_bounds        (GimpUnitEntry      *entry, 
+                                                         GimpUnit            unit, 
+                                                         gdouble             upper, 
+                                                         gdouble             lower);
+void                  gimp_unit_entry_set_mode          (GimpUnitEntry      *entry, 
+                                                         GimpUnitEntryMode   mode);
+void                  gimp_unit_entry_set_unit          (GimpUnitEntry      *entry, 
+                                                         GimpUnit           unit);
+void                  gimp_unit_entry_set_resolution    (GimpUnitEntry      *entry,
+                                                         gdouble             resolution);
+void                  gimp_unit_entry_set_value         (GimpUnitEntry      *entry, 
+                                                         gdouble             value);
+void                  gimp_unit_entry_set_value_in_unit (GimpUnitEntry      *entry, 
+                                                         gdouble             value, 
+                                                         GimpUnit            unit);  
+                                                         
+void                  gimp_unit_entry_connect           (GimpUnitEntry      *entry, 
+                                                         GimpUnitEntry      *target);                                                                                                               
 
 G_END_DECLS
 
diff --git a/libgimpwidgets/gimpunitentrytable.h b/libgimpwidgets/gimpunitentrytable.h
index 413fd52..0c94e0e 100644
--- a/libgimpwidgets/gimpunitentrytable.h
+++ b/libgimpwidgets/gimpunitentrytable.h
@@ -64,7 +64,7 @@ struct _GimpUnitEntryTableClass
 };
 
 GType           gimp_unit_entry_table_get_type              (void);
-GObject         *gimp_unit_entry_table_new                  (void);
+GObject*        gimp_unit_entry_table_new                   (void);
 
 GtkWidget*      gimp_unit_entry_table_add_entry             (GimpUnitEntryTable *table, 
                                                              const gchar        *id,
diff --git a/libgimpwidgets/gimpunitparser.h b/libgimpwidgets/gimpunitparser.h
index 09e463b..1f32413 100644
--- a/libgimpwidgets/gimpunitparser.h
+++ b/libgimpwidgets/gimpunitparser.h
@@ -35,7 +35,6 @@ struct _GimpUnitParserResult
   gboolean  unitFound;
 };
 
-/* parse given string */
 gboolean gimp_unit_parser_parse (const char *str, GimpUnitParserResult *result);
 
 #endif /*__GIMP_UNIT_PARSER_H__*/



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