[devhelp] App: small cosmetic code changes



commit 3a07906b5cf885fc7e6fc546f36732730b8cace2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Dec 15 13:10:14 2017 +0100

    App: small cosmetic code changes
    
    - Space out the functions in the header, to have IMHO a better
    readability.
    - "Attach" the "*" (pointer) to the return value type, not the function
    name. The pointer is part of the return value.

 src/dh-app.c |    2 --
 src/dh-app.h |   29 +++++++++++++++++------------
 2 files changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index f8e41bd..3325644 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -21,10 +21,8 @@
 
 #include "config.h"
 #include "dh-app.h"
-
 #include <stdlib.h>
 #include <glib/gi18n-lib.h>
-
 #include "dh-assistant.h"
 #include "dh-preferences.h"
 #include "dh-window.h"
diff --git a/src/dh-app.h b/src/dh-app.h
index a6bc47d..f0c8430 100644
--- a/src/dh-app.h
+++ b/src/dh-app.h
@@ -41,22 +41,27 @@ struct _DhAppClass {
         GtkApplicationClass parent_class;
 };
 
-GType dh_app_get_type (void) G_GNUC_CONST;
+GType           dh_app_get_type                 (void) G_GNUC_CONST;
 
-DhApp         *dh_app_new               (void);
+DhApp *         dh_app_new                      (void);
 
-GtkWindow     *dh_app_peek_first_window (DhApp *app);
-GtkWindow     *dh_app_peek_assistant    (DhApp *app);
+GtkWindow *     dh_app_peek_first_window        (DhApp *app);
 
-void           dh_app_new_window        (DhApp *app);
-void           dh_app_quit              (DhApp *app);
-void           dh_app_search            (DhApp *app,
-                                         const gchar *keyword);
-void           dh_app_search_assistant  (DhApp *app,
-                                         const gchar *keyword);
-void           dh_app_raise             (DhApp *app);
+GtkWindow *     dh_app_peek_assistant           (DhApp *app);
 
-gboolean      _dh_app_has_app_menu      (DhApp *app);
+void            dh_app_new_window               (DhApp *app);
+
+void            dh_app_quit                     (DhApp *app);
+
+void            dh_app_search                   (DhApp       *app,
+                                                 const gchar *keyword);
+
+void            dh_app_search_assistant         (DhApp       *app,
+                                                 const gchar *keyword);
+
+void            dh_app_raise                    (DhApp *app);
+
+gboolean        _dh_app_has_app_menu            (DhApp *app);
 
 G_END_DECLS
 


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