[gtranslator] plugins: cleanup of header files.



commit 313b474e7f4a80b3236432ef790329c4827d971f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Apr 24 23:10:31 2012 +0200

    plugins: cleanup of header files.
    
    Thanks to Daniel Mustieles for the initial work on this.

 .../gtr-alternate-language-panel.h                 |    6 +-
 .../gtr-alternate-language-plugin.h                |    4 +-
 plugins/codeview/gtr-codeview-plugin.h             |    4 +-
 plugins/codeview/gtr-viewer.h                      |    8 ++-
 plugins/dictionary/gtr-dict-panel.h                |    9 ++--
 plugins/dictionary/gtr-dictionary-plugin.h         |   10 ++--
 plugins/dictionary/gtr-gdict-sidebar.h             |   42 ++++++++++---------
 plugins/fullscreen/gtr-fullscreen-plugin.h         |    4 +-
 plugins/glossary/glossary-panel.h                  |   43 +++++++-------------
 plugins/insert-params/gtr-insert-params-plugin.h   |    4 +-
 plugins/open-tran/gtr-open-tran-panel.h            |    6 +-
 plugins/open-tran/gtr-open-tran-plugin.h           |    4 +-
 plugins/translation-memory/gda/gda-utils.h         |    2 +-
 plugins/translation-memory/gda/gtr-gda.h           |   29 +++----------
 .../gtr-translation-memory-dialog.h                |    4 +-
 .../gtr-translation-memory-tab-activatable.h       |    4 +-
 .../translation-memory/gtr-translation-memory-ui.h |   38 ++++++-----------
 .../gtr-translation-memory-utils.h                 |    8 ++-
 .../gtr-translation-memory-window-activatable.h    |    4 +-
 .../translation-memory/gtr-translation-memory.h    |   27 +++++++-----
 20 files changed, 116 insertions(+), 144 deletions(-)
---
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.h b/plugins/alternate-language/gtr-alternate-language-panel.h
index ff2e3d7..dc04365 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.h
+++ b/plugins/alternate-language/gtr-alternate-language-panel.h
@@ -49,11 +49,11 @@ struct _GtrAlternateLangPanelClass
   GtkBoxClass parent_class;
 };
 
-GType gtr_alternate_lang_panel_get_type (void) G_GNUC_CONST;
+GType            gtr_alternate_lang_panel_get_type      (void) G_GNUC_CONST;
 
-GtkWidget *gtr_alternate_lang_panel_new (GtrTab *tab);
+GtkWidget       *gtr_alternate_lang_panel_new           (GtrTab      *tab);
 
-void _gtr_alternate_lang_panel_register_type (GTypeModule *type_module);
+void            _gtr_alternate_lang_panel_register_type (GTypeModule *type_module);
 
 G_END_DECLS
 #endif /* __ALTERNATE_LANG_PANEL_H__ */
diff --git a/plugins/alternate-language/gtr-alternate-language-plugin.h b/plugins/alternate-language/gtr-alternate-language-plugin.h
index 9db4ea1..499fc6c 100644
--- a/plugins/alternate-language/gtr-alternate-language-plugin.h
+++ b/plugins/alternate-language/gtr-alternate-language-plugin.h
@@ -49,9 +49,9 @@ struct _GtrAlternateLangPluginClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_alternate_lang_plugin_get_type (void) G_GNUC_CONST;
+GType                   gtr_alternate_lang_plugin_get_type      (void) G_GNUC_CONST;
 
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
+G_MODULE_EXPORT void    peas_register_types                     (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_ALTERNATE_LANG_PLUGIN_H__ */
diff --git a/plugins/codeview/gtr-codeview-plugin.h b/plugins/codeview/gtr-codeview-plugin.h
index 6a7f316..4a5d3c0 100644
--- a/plugins/codeview/gtr-codeview-plugin.h
+++ b/plugins/codeview/gtr-codeview-plugin.h
@@ -50,9 +50,9 @@ struct _GtrCodeViewPluginClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_code_view_plugin_get_type (void) G_GNUC_CONST;
+GType                   gtr_code_view_plugin_get_type   (void) G_GNUC_CONST;
 
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
+G_MODULE_EXPORT void    peas_register_types             (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_CODE_VIEW_PLUGIN_H__ */
diff --git a/plugins/codeview/gtr-viewer.h b/plugins/codeview/gtr-viewer.h
index 2843ce9..b709fe8 100644
--- a/plugins/codeview/gtr-viewer.h
+++ b/plugins/codeview/gtr-viewer.h
@@ -51,11 +51,13 @@ struct _GtrViewerClass
   GtkDialogClass parent_class;
 };
 
-GType gtr_viewer_get_type (void) G_GNUC_CONST;
+GType   gtr_viewer_get_type           (void) G_GNUC_CONST;
 
-GType gtr_viewer_register_type (GTypeModule * module);
+GType   gtr_viewer_register_type      (GTypeModule  *module);
 
-void gtr_show_viewer (GtrWindow * window, const gchar * path, gint line);
+void    gtr_show_viewer               (GtrWindow    *window,
+                                       const gchar  *path,
+                                       gint          line);
 
 G_END_DECLS
 #endif /* __VIEWER_H__ */
diff --git a/plugins/dictionary/gtr-dict-panel.h b/plugins/dictionary/gtr-dict-panel.h
index fbc1ac5..49a3e3d 100644
--- a/plugins/dictionary/gtr-dict-panel.h
+++ b/plugins/dictionary/gtr-dict-panel.h
@@ -55,13 +55,14 @@ struct _GtrDictPanelClass
 /*
  * Public methods
  */
-GType gtr_dict_panel_get_type (void) G_GNUC_CONST;
+GType            gtr_dict_panel_get_type        (void) G_GNUC_CONST;
 
-GtkWidget *gtr_dict_panel_new (GtrWindow *window);
+GtkWidget       *gtr_dict_panel_new             (GtrWindow     *window);
 
-void _gtr_dict_panel_register_type (GTypeModule *type_module);
+void            _gtr_dict_panel_register_type   (GTypeModule   *type_module);
 
-void gtr_dict_panel_set_position (GtrDictPanel * panel, gint pos);
+void             gtr_dict_panel_set_position    (GtrDictPanel  *panel,
+                                                 gint           pos);
 
 G_END_DECLS
 #endif /* __DICT_PANEL_H__ */
diff --git a/plugins/dictionary/gtr-dictionary-plugin.h b/plugins/dictionary/gtr-dictionary-plugin.h
index a1b8525..e94115d 100644
--- a/plugins/dictionary/gtr-dictionary-plugin.h
+++ b/plugins/dictionary/gtr-dictionary-plugin.h
@@ -35,9 +35,9 @@ G_BEGIN_DECLS
 #define GTR_IS_DICT_PLUGIN_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_Dict_PLUGIN))
 #define GTR_DICT_PLUGIN_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_DICT_PLUGIN, GtrDictPluginClass))
 
-typedef struct _GtrDictPlugin GtrDictPlugin;
-typedef struct _GtrDictPluginPrivate GtrDictPluginPrivate;
-typedef struct _GtrDictPluginClass GtrDictPluginClass;
+typedef struct _GtrDictPlugin		GtrDictPlugin;
+typedef struct _GtrDictPluginPrivate	GtrDictPluginPrivate;
+typedef struct _GtrDictPluginClass	GtrDictPluginClass;
 
 struct _GtrDictPlugin
 {
@@ -53,9 +53,9 @@ struct _GtrDictPluginClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_dict_plugin_get_type (void) G_GNUC_CONST;
+GType                   gtr_dict_plugin_get_type        (void) G_GNUC_CONST;
 
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule * module);
+G_MODULE_EXPORT void    peas_register_types             (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_Dict_PLUGIN_H__ */
diff --git a/plugins/dictionary/gtr-gdict-sidebar.h b/plugins/dictionary/gtr-gdict-sidebar.h
index 0406bbd..d2519bb 100644
--- a/plugins/dictionary/gtr-gdict-sidebar.h
+++ b/plugins/dictionary/gtr-gdict-sidebar.h
@@ -33,9 +33,9 @@
 #define GDICT_IS_SIDEBAR_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), GDICT_TYPE_SIDEBAR))
 #define GDICT_SIDEBAR_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), GDICT_TYPE_SIDEBAR, GdictSidebarClass))
 
-typedef struct _GdictSidebar GdictSidebar;
-typedef struct _GdictSidebarPrivate GdictSidebarPrivate;
-typedef struct _GdictSidebarClass GdictSidebarClass;
+typedef struct _GdictSidebar		GdictSidebar;
+typedef struct _GdictSidebarPrivate	GdictSidebarPrivate;
+typedef struct _GdictSidebarClass	GdictSidebarClass;
 
 struct _GdictSidebar
 {
@@ -57,22 +57,24 @@ struct _GdictSidebarClass
   void (*_gdict_padding_4) (void);
 };
 
-GType
-gdict_sidebar_get_type (void)
-  G_GNUC_CONST;
-
-     GtkWidget *gdict_sidebar_new (void);
-     void gdict_sidebar_add_page (GdictSidebar * sidebar,
-                                  const gchar * page_id,
-                                  const gchar * page_name,
-                                  GtkWidget * page_widget);
-     void gdict_sidebar_remove_page (GdictSidebar * sidebar,
-                                     const gchar * page_id);
-     void gdict_sidebar_view_page (GdictSidebar * sidebar,
-                                   const gchar * page_id);
-     const gchar *gdict_sidebar_current_page (GdictSidebar *
-                                                       sidebar);
-     gchar **gdict_sidebar_list_pages (GdictSidebar * sidebar,
-                                       gsize * length) G_GNUC_MALLOC;
+GType            gdict_sidebar_get_type         (void) G_GNUC_CONST;
+
+GtkWidget       *gdict_sidebar_new              (void);
+
+void             gdict_sidebar_add_page         (GdictSidebar   *sidebar,
+                                                 const gchar    *page_id,
+                                                 const gchar    *page_name,
+                                                 GtkWidget      *page_widget);
+
+void             gdict_sidebar_remove_page      (GdictSidebar   *sidebar,
+                                                 const gchar    *page_id);
+
+void             gdict_sidebar_view_page        (GdictSidebar   *sidebar,
+                                                 const gchar    *page_id);
+
+const gchar     *gdict_sidebar_current_page     (GdictSidebar   *sidebar);
+
+gchar          **gdict_sidebar_list_pages       (GdictSidebar   *sidebar,
+                                                 gsize          *length) G_GNUC_MALLOC;
 
 #endif /* __GDICT_SIDEBAR_H__ */
diff --git a/plugins/fullscreen/gtr-fullscreen-plugin.h b/plugins/fullscreen/gtr-fullscreen-plugin.h
index ef79e81..faaff72 100644
--- a/plugins/fullscreen/gtr-fullscreen-plugin.h
+++ b/plugins/fullscreen/gtr-fullscreen-plugin.h
@@ -50,9 +50,9 @@ struct _GtrFullscreenPluginClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_fullscreen_plugin_get_type (void) G_GNUC_CONST;
+GType                 gtr_fullscreen_plugin_get_type    (void) G_GNUC_CONST;
 
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
+G_MODULE_EXPORT void  peas_register_types               (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_FULLSCREEN_PLUGIN_H__ */
diff --git a/plugins/glossary/glossary-panel.h b/plugins/glossary/glossary-panel.h
index 00157c6..bbf5d8c 100644
--- a/plugins/glossary/glossary-panel.h
+++ b/plugins/glossary/glossary-panel.h
@@ -29,22 +29,17 @@
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
-/*
- * Type checking and casting macros
- */
-#define GTR_TYPE_GLOSSARY_PANEL		(gtr_glossary_panel_get_type ())
-#define GTR_GLOSSARY_PANEL(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_GLOSSARY_PANEL, GtrGlossaryPanel))
-#define GTR_GLOSSARY_PANEL_CLASS(k)	(G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_GLOSSARY_PANEL, GtrGlossaryPanelClass))
-#define GTR_IS_GLOSSARY_PANEL(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_GLOSSARY_PANEL))
-#define GTR_IS_GLOSSARY_PANEL_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_GLOSSARY_PANEL))
-#define GTR_GLOSSARY_PANEL_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_GLOSSARY_PANEL, GtrGlossaryPanelClass))
-/* Private structure type */
-typedef struct _GtrGlossaryPanelPrivate GtrGlossaryPanelPrivate;
 
-/*
- * Main object structure
- */
-typedef struct _GtrGlossaryPanel GtrGlossaryPanel;
+#define GTR_TYPE_GLOSSARY_PANEL         (gtr_glossary_panel_get_type ())
+#define GTR_GLOSSARY_PANEL(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_GLOSSARY_PANEL, GtrGlossaryPanel))
+#define GTR_GLOSSARY_PANEL_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_GLOSSARY_PANEL, GtrGlossaryPanelClass))
+#define GTR_IS_GLOSSARY_PANEL(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_GLOSSARY_PANEL))
+#define GTR_IS_GLOSSARY_PANEL_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_GLOSSARY_PANEL))
+#define GTR_GLOSSARY_PANEL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_GLOSSARY_PANEL, GtrGlossaryPanelClass))
+
+typedef struct _GtrGlossaryPanel        GtrGlossaryPanel;
+typedef struct _GtrGlossaryPanelClass   GtrGlossaryPanelClass;
+typedef struct _GtrGlossaryPanelPrivate GtrGlossaryPanelPrivate;
 
 struct _GtrGlossaryPanel
 {
@@ -54,24 +49,16 @@ struct _GtrGlossaryPanel
   GtrGlossaryPanelPrivate *priv;
 };
 
-/*
- * Class definition
- */
-typedef struct _GtrGlossaryPanelClass GtrGlossaryPanelClass;
-
 struct _GtrGlossaryPanelClass
 {
   GtkBoxClass parent_class;
 };
 
-/*
- * Public methods
- */
-GType
-gtr_glossary_panel_get_type (void)
-  G_GNUC_CONST;
-     GType gtr_glossary_panel_register_type (GTypeModule * module);
-     GtkWidget *gtr_glossary_panel_new (void);
+GType            gtr_glossary_panel_get_type            (void) G_GNUC_CONST;
+
+GType            gtr_glossary_panel_register_type       (GTypeModule *module);
+
+GtkWidget       *gtr_glossary_panel_new                 (void);
 
 G_END_DECLS
 #endif /* __GLOSSARY_PANEL_H__ */
diff --git a/plugins/insert-params/gtr-insert-params-plugin.h b/plugins/insert-params/gtr-insert-params-plugin.h
index 46329c6..0b4aa3d 100644
--- a/plugins/insert-params/gtr-insert-params-plugin.h
+++ b/plugins/insert-params/gtr-insert-params-plugin.h
@@ -50,9 +50,9 @@ struct _GtrInsertParamsPluginClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_insert_params_plugin_get_type (void) G_GNUC_CONST;
+GType                   gtr_insert_params_plugin_get_type       (void) G_GNUC_CONST;
 
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
+G_MODULE_EXPORT void    peas_register_types                     (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_INSERT_PARAMS_PLUGIN_H__ */
diff --git a/plugins/open-tran/gtr-open-tran-panel.h b/plugins/open-tran/gtr-open-tran-panel.h
index a3597c4..3790570 100644
--- a/plugins/open-tran/gtr-open-tran-panel.h
+++ b/plugins/open-tran/gtr-open-tran-panel.h
@@ -57,11 +57,11 @@ struct _GtrOpenTranPanelClass
   GtkBoxClass parent_class;
 };
 
-GType gtr_open_tran_panel_get_type (void) G_GNUC_CONST;
+GType            gtr_open_tran_panel_get_type           (void) G_GNUC_CONST;
 
-GtkWidget *gtr_open_tran_panel_new (GtrTab * window);
+GtkWidget       *gtr_open_tran_panel_new                (GtrTab      *window);
 
-void _gtr_open_tran_panel_register_type (GTypeModule *type_module);
+void            _gtr_open_tran_panel_register_type      (GTypeModule *type_module);
 
 G_END_DECLS
 #endif /* __OPEN_TRAN_PANEL_H__ */
diff --git a/plugins/open-tran/gtr-open-tran-plugin.h b/plugins/open-tran/gtr-open-tran-plugin.h
index 3ecdef6..cf7dc32 100644
--- a/plugins/open-tran/gtr-open-tran-plugin.h
+++ b/plugins/open-tran/gtr-open-tran-plugin.h
@@ -51,9 +51,9 @@ struct _GtrOpenTranPluginClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_open_tran_plugin_get_type (void) G_GNUC_CONST;
+GType                   gtr_open_tran_plugin_get_type   (void) G_GNUC_CONST;
 
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
+G_MODULE_EXPORT void    peas_register_types             (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_OPEN_TRAN_PLUGIN_H__ */
diff --git a/plugins/translation-memory/gda/gda-utils.h b/plugins/translation-memory/gda/gda-utils.h
index 52ef13b..b5251aa 100644
--- a/plugins/translation-memory/gda/gda-utils.h
+++ b/plugins/translation-memory/gda/gda-utils.h
@@ -27,6 +27,6 @@
 #include <gtk/gtk.h>
 #include <gio/gio.h>
 
-gchar **gtr_gda_utils_split_string_in_words (const gchar * string);
+gchar **gtr_gda_utils_split_string_in_words (const gchar *string);
 
 #endif
diff --git a/plugins/translation-memory/gda/gtr-gda.h b/plugins/translation-memory/gda/gtr-gda.h
index ad7cce3..a2f0e91 100644
--- a/plugins/translation-memory/gda/gtr-gda.h
+++ b/plugins/translation-memory/gda/gtr-gda.h
@@ -23,22 +23,17 @@
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
-/*
- * Type checking and casting macros
- */
+
 #define GTR_TYPE_GDA		(gtr_gda_get_type ())
 #define GTR_GDA(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_GDA, GtrGda))
 #define GTR_GDA_CLASS(k)	(G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_GDA, GtrGdaClass))
 #define GTR_IS_GDA(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_GDA))
 #define GTR_IS_GDA_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_GDA))
 #define GTR_GDA_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_GDA, GtrGdaClass))
-/* Private structure type */
-typedef struct _GtrGdaPrivate GtrGdaPrivate;
 
-/*
- * Main object structure
- */
-typedef struct _GtrGda GtrGda;
+typedef struct _GtrGdaPrivate GtrGdaPrivate;
+typedef struct _GtrGda        GtrGda;
+typedef struct _GtrGdaClass   GtrGdaClass;
 
 struct _GtrGda
 {
@@ -48,26 +43,16 @@ struct _GtrGda
   GtrGdaPrivate *priv;
 };
 
-/*
- * Class definition
- */
-typedef struct _GtrGdaClass GtrGdaClass;
-
 struct _GtrGdaClass
 {
   GObjectClass parent_class;
 };
 
-/*
- * Public methods
- */
-GType
-gtr_gda_get_type (void)
-  G_GNUC_CONST;
+GType                   gtr_gda_get_type                (void) G_GNUC_CONST;
 
-GType gtr_gda_register_type (GTypeModule * module);
+GType                   gtr_gda_register_type           (GTypeModule *module);
 
-GtrGda *gtr_gda_new (void);
+GtrGda                 *gtr_gda_new                     (void);
 
 G_END_DECLS
 #endif /* __GDA_BACKEND_H__ */
diff --git a/plugins/translation-memory/gtr-translation-memory-dialog.h b/plugins/translation-memory/gtr-translation-memory-dialog.h
index 989f186..7a6ed2d 100644
--- a/plugins/translation-memory/gtr-translation-memory-dialog.h
+++ b/plugins/translation-memory/gtr-translation-memory-dialog.h
@@ -47,9 +47,9 @@ struct _GtrTranslationMemoryDialogClass
   GtkDialogClass parent_class;
 };
 
-GType gtr_translation_memory_dialog_get_type (void) G_GNUC_CONST;
+GType            gtr_translation_memory_dialog_get_type     (void) G_GNUC_CONST;
 
-GtkWidget *gtr_translation_memory_dialog_new (GtrTranslationMemory *translation_memory);
+GtkWidget       *gtr_translation_memory_dialog_new          (GtrTranslationMemory *translation_memory);
 
 G_END_DECLS
 
diff --git a/plugins/translation-memory/gtr-translation-memory-tab-activatable.h b/plugins/translation-memory/gtr-translation-memory-tab-activatable.h
index e86be15..2f69d55 100644
--- a/plugins/translation-memory/gtr-translation-memory-tab-activatable.h
+++ b/plugins/translation-memory/gtr-translation-memory-tab-activatable.h
@@ -49,9 +49,9 @@ struct _GtrTranslationMemoryTabActivatableClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_translation_memory_tab_activatable_get_type (void) G_GNUC_CONST;
+GType   gtr_translation_memory_tab_activatable_get_type    (void) G_GNUC_CONST;
 
-void gtr_tab_activatable_register_peas_type (PeasObjectModule *module);
+void    gtr_tab_activatable_register_peas_type             (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_TRANSLATION_MEMORY_TAB_ACTIVATABLE_H__ */
diff --git a/plugins/translation-memory/gtr-translation-memory-ui.h b/plugins/translation-memory/gtr-translation-memory-ui.h
index 04c8726..536cfc9 100644
--- a/plugins/translation-memory/gtr-translation-memory-ui.h
+++ b/plugins/translation-memory/gtr-translation-memory-ui.h
@@ -26,22 +26,17 @@
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
-/*
- * Type checking and casting macros
- */
-#define GTR_TYPE_TRANSLATION_MEMORY_UI	        (gtr_translation_memory_ui_get_type ())
-#define GTR_TRANSLATION_MEMORY_UI(o)	        (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_TRANSLATION_MEMORY_UI, GtrTranslationMemoryUi))
+
+#define GTR_TYPE_TRANSLATION_MEMORY_UI          (gtr_translation_memory_ui_get_type ())
+#define GTR_TRANSLATION_MEMORY_UI(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_TRANSLATION_MEMORY_UI, GtrTranslationMemoryUi))
 #define GTR_TRANSLATION_MEMORY_UI_CLASS(k)      (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_TRANSLATION_MEMORY_UI, GtrTranslationMemoryUiClass))
-#define GTR_IS_TRANSLATION_MEMORY_UI(o)	        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_TRANSLATION_MEMORY_UI))
-#define GTR_IS_TRANSLATION_MEMORY_UI_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_TRANSLATION_MEMORY_UI))
-#define GTR_TRANSLATION_MEMORY_UI_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_TRANSLATION_MEMORY_UI, GtrTranslationMemoryUiClass))
-/* Private structure type */
-typedef struct _GtrTranslationMemoryUiPrivate GtrTranslationMemoryUiPrivate;
+#define GTR_IS_TRANSLATION_MEMORY_UI(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_TRANSLATION_MEMORY_UI))
+#define GTR_IS_TRANSLATION_MEMORY_UI_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_TRANSLATION_MEMORY_UI))
+#define GTR_TRANSLATION_MEMORY_UI_GET_CLASS(o)  (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_TRANSLATION_MEMORY_UI, GtrTranslationMemoryUiClass))
 
-/*
- * Main object structure
- */
-typedef struct _GtrTranslationMemoryUi GtrTranslationMemoryUi;
+typedef struct _GtrTranslationMemoryUi        GtrTranslationMemoryUi;
+typedef struct _GtrTranslationMemoryUiClass   GtrTranslationMemoryUiClass;
+typedef struct _GtrTranslationMemoryUiPrivate GtrTranslationMemoryUiPrivate;
 
 struct _GtrTranslationMemoryUi
 {
@@ -51,24 +46,17 @@ struct _GtrTranslationMemoryUi
   GtrTranslationMemoryUiPrivate *priv;
 };
 
-/*
- * Class definition
- */
-typedef struct _GtrTranslationMemoryUiClass GtrTranslationMemoryUiClass;
-
 struct _GtrTranslationMemoryUiClass
 {
   GtkScrolledWindowClass parent_class;
 };
 
-/*
- * Public methods
- */
-GType gtr_translation_memory_ui_get_type (void) G_GNUC_CONST;
+GType            gtr_translation_memory_ui_get_type             (void) G_GNUC_CONST;
 
-GType gtr_translation_memory_ui_register_type (GTypeModule * module);
+GType            gtr_translation_memory_ui_register_type        (GTypeModule            *module);
 
-GtkWidget *gtr_translation_memory_ui_new (GtkWidget *tab, GtrTranslationMemory *translation_memory);
+GtkWidget       *gtr_translation_memory_ui_new                  (GtkWidget              *tab,
+                                                                 GtrTranslationMemory   *translation_memory);
 
 G_END_DECLS
 #endif /* __TRANSLATION_MEMORY_UI_H__ */
diff --git a/plugins/translation-memory/gtr-translation-memory-utils.h b/plugins/translation-memory/gtr-translation-memory-utils.h
index a8433a2..ab7b27b 100644
--- a/plugins/translation-memory/gtr-translation-memory-utils.h
+++ b/plugins/translation-memory/gtr-translation-memory-utils.h
@@ -22,11 +22,13 @@
  */
 
 #ifndef GTR_TRANSLATION_MEMORY_UTILS_H
-#define GTR_TRANSLATION_MEMORY_UTILS_H 1
+#define GTR_TRANSLATION_MEMORY_UTILS_H
 
 #include <gtk/gtk.h>
 #include <gio/gio.h>
 
-void gtr_scan_dir (GFile * dir,
-		   GSList ** list, const gchar * po_name);
+void    gtr_scan_dir    (GFile         *dir,
+                         GSList       **list,
+                         const gchar   *po_name);
+
 #endif
diff --git a/plugins/translation-memory/gtr-translation-memory-window-activatable.h b/plugins/translation-memory/gtr-translation-memory-window-activatable.h
index de0ae0f..a76b984 100644
--- a/plugins/translation-memory/gtr-translation-memory-window-activatable.h
+++ b/plugins/translation-memory/gtr-translation-memory-window-activatable.h
@@ -49,9 +49,9 @@ struct _GtrTranslationMemoryWindowActivatableClass
   PeasExtensionBaseClass parent_class;
 };
 
-GType gtr_translation_memory_window_activatable_get_type (void) G_GNUC_CONST;
+GType   gtr_translation_memory_window_activatable_get_type      (void) G_GNUC_CONST;
 
-void gtr_window_activatable_register_peas_type (PeasObjectModule *module);
+void    gtr_window_activatable_register_peas_type               (PeasObjectModule *module);
 
 G_END_DECLS
 #endif /* __GTR_TRANSLATION_MEMORY_WINDOW_ACTIVATABLE_H__ */
diff --git a/plugins/translation-memory/gtr-translation-memory.h b/plugins/translation-memory/gtr-translation-memory.h
index fd2c585..8292cb8 100644
--- a/plugins/translation-memory/gtr-translation-memory.h
+++ b/plugins/translation-memory/gtr-translation-memory.h
@@ -53,24 +53,29 @@ struct _GtrTranslationMemoryMatch
   gint level;
 };
 
-GType gtr_translation_memory_get_type (void);
+GType           gtr_translation_memory_get_type         (void);
 
-gboolean gtr_translation_memory_store (GtrTranslationMemory * obj, GtrMsg * msg);
+gboolean        gtr_translation_memory_store            (GtrTranslationMemory   *obj,
+                                                         GtrMsg                 *msg);
 
-gboolean gtr_translation_memory_store_list (GtrTranslationMemory * obj, GList * msg);
+gboolean        gtr_translation_memory_store_list       (GtrTranslationMemory   *obj,
+                                                         GList                  *msg);
 
-void gtr_translation_memory_remove (GtrTranslationMemory * obj,
-                                    const gchar * original,
-                                    const gchar * translation);
+void            gtr_translation_memory_remove           (GtrTranslationMemory   *obj,
+                                                         const gchar            *original,
+                                                         const gchar            *translation);
 
-GList *gtr_translation_memory_lookup (GtrTranslationMemory * obj,
-                                      const gchar * phrase);
+GList          *gtr_translation_memory_lookup           (GtrTranslationMemory   *obj,
+                                                         const gchar            *phrase);
 
-void gtr_translation_memory_set_max_omits (GtrTranslationMemory * obj, gsize omits);
+void            gtr_translation_memory_set_max_omits    (GtrTranslationMemory   *obj,
+                                                         gsize                   omits);
 
-void gtr_translation_memory_set_max_delta (GtrTranslationMemory * obj, gsize delta);
+void            gtr_translation_memory_set_max_delta    (GtrTranslationMemory   *obj,
+                                                         gsize                   delta);
 
-void gtr_translation_memory_set_max_items (GtrTranslationMemory * obj, gint items);
+void            gtr_translation_memory_set_max_items    (GtrTranslationMemory   *obj,
+                                                         gint                    items);
 
 G_END_DECLS
 #endif



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