[devhelp: 10/36] Small indentation fixes



commit bdedcde021e4ba99c8720b23ef90cfb20891e5ca
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Dec 2 22:07:39 2010 +0100

    Small indentation fixes

 src/dh-book-manager.c |   18 ++++++++----------
 src/dh-book-tree.c    |   20 ++++++++++----------
 src/dh-book.c         |   18 +++++++-----------
 src/dh-preferences.c  |    3 ++-
 src/dh-search.c       |    8 ++++----
 5 files changed, 31 insertions(+), 36 deletions(-)
---
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index 877fc8a..78cccda 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -163,7 +163,7 @@ book_manager_is_book_disabled_in_conf (DhBookManager *book_manager,
                                        DhBook        *book)
 {
         DhBookManagerPriv *priv = GET_PRIVATE (book_manager);
-        GSList *li;
+        GSList            *li;
 
         for (li = priv->books_disabled; li; li = g_slist_next (li)) {
                 if (g_strcmp0 (dh_book_get_name (book),
@@ -248,11 +248,11 @@ book_manager_booklist_monitor_event_cb (GFileMonitor      *file_monitor,
                                         gpointer	   user_data)
 {
         DhBookManager *book_manager = user_data;
-        GError *error = NULL;
-        GFileInfo *file_info;
-        gchar *file_path;
-        gchar *file_basename;
-        gchar *book_path;
+        GError        *error = NULL;
+        GFileInfo     *file_info;
+        gchar         *file_path;
+        gchar         *file_basename;
+        gchar         *book_path;
 
         /* In the book manager we only handle events for new directories
          * created. Books removed or updated are handled by the book objects
@@ -469,12 +469,10 @@ static void
 book_manager_book_deleted_cb (DhBook   *book,
                               gpointer  user_data)
 {
-        DhBookManager *book_manager = user_data;
-        DhBookManagerPriv *priv;
+        DhBookManager     *book_manager = user_data;
+        DhBookManagerPriv *priv = GET_PRIVATE (book_manager);
         GList *li;
 
-        priv = GET_PRIVATE (book_manager);
-
         /* Look for the item we want to remove */
         li = g_list_find (priv->books, book);
         if (li) {
diff --git a/src/dh-book-tree.c b/src/dh-book-tree.c
index e544d56..05d50d0 100644
--- a/src/dh-book-tree.c
+++ b/src/dh-book-tree.c
@@ -191,8 +191,8 @@ book_tree_book_created_or_enabled_cb (DhBookManager *book_manager,
                                       gpointer       user_data)
 {
         DhBookTree *tree = user_data;
-        DhBook *book = DH_BOOK (book_object);
-        GNode  *node;
+        DhBook     *book = DH_BOOK (book_object);
+        GNode      *node;
 
         /* TODO: insert ordered here! */
 
@@ -208,11 +208,11 @@ book_tree_book_deleted_or_disabled_cb (DhBookManager *book_manager,
                                        GObject       *book_object,
                                        gpointer       user_data)
 {
-        DhBookTree *tree = user_data;
+        DhBookTree     *tree = user_data;
         DhBookTreePriv *priv = GET_PRIVATE (tree);
-        DhBook *book = DH_BOOK (book_object);
-        GtkTreeIter iter;
-        gboolean found;
+        DhBook         *book = DH_BOOK (book_object);
+        GtkTreeIter     iter;
+        gboolean        found;
 
         /* Look for the specific book. */
 	if (!gtk_tree_model_get_iter_first (GTK_TREE_MODEL (priv->store), &iter)) {
@@ -303,11 +303,11 @@ book_tree_selection_changed_cb (GtkTreeSelection *selection,
 GtkWidget *
 dh_book_tree_new (DhBookManager *book_manager)
 {
-        DhBookTree     *tree;
-        DhBookTreePriv *priv;
+        DhBookTree       *tree;
+        DhBookTreePriv   *priv;
 	GtkTreeSelection *selection;
-	GtkTreeIter     iter;
-	DhLink *link;
+	GtkTreeIter       iter;
+	DhLink           *link;
 
 	tree = g_object_new (DH_TYPE_BOOK_TREE, NULL);
         priv = GET_PRIVATE (tree);
diff --git a/src/dh-book.c b/src/dh-book.c
index 5ef6b25..70b3ba8 100644
--- a/src/dh-book.c
+++ b/src/dh-book.c
@@ -256,10 +256,8 @@ dh_book_new (const gchar *book_path)
 static gboolean
 book_monitor_event_timeout_cb  (gpointer data)
 {
-        DhBook *book = data;
-        DhBookPriv *priv;
-
-        priv = GET_PRIVATE (book);
+        DhBook     *book = data;
+        DhBookPriv *priv = GET_PRIVATE (book);
 
         /* We'll get either is_deleted OR is_updated,
          * not possible to have both or none */
@@ -296,11 +294,9 @@ book_monitor_event_cb (GFileMonitor      *file_monitor,
                        GFileMonitorEvent  event_type,
                        gpointer	          user_data)
 {
-        DhBook *book = user_data;
-        DhBookPriv *priv;
-        gboolean reset_timer = FALSE;
-
-        priv = GET_PRIVATE (book);
+        DhBook     *book = user_data;
+        DhBookPriv *priv = GET_PRIVATE (book);
+        gboolean    reset_timer = FALSE;
 
         switch (event_type) {
         case G_FILE_MONITOR_EVENT_CREATED:
@@ -401,8 +397,8 @@ dh_book_get_enabled (DhBook *book)
 }
 
 void
-dh_book_set_enabled (DhBook *book,
-                     gboolean enabled)
+dh_book_set_enabled (DhBook   *book,
+                     gboolean  enabled)
 {
         g_return_if_fail (DH_IS_BOOK (book));
 
diff --git a/src/dh-preferences.c b/src/dh-preferences.c
index 2f1d607..113dd66 100644
--- a/src/dh-preferences.c
+++ b/src/dh-preferences.c
@@ -266,7 +266,8 @@ preferences_fonts_get_font_names (gboolean   use_system_fonts,
                                   gchar    **variable,
                                   gchar    **fixed)
 {
-	gchar   *var_font_name, *fixed_font_name;
+	gchar   *var_font_name;
+        gchar   *fixed_font_name;
 	IgeConf *conf;
 
 	conf = ige_conf_get ();
diff --git a/src/dh-search.c b/src/dh-search.c
index 198458c..aa063ef 100644
--- a/src/dh-search.c
+++ b/src/dh-search.c
@@ -482,10 +482,10 @@ search_combo_row_separator_func (GtkTreeModel *model,
                                  GtkTreeIter  *iter,
                                  gpointer      data)
 {
-        char *label;
-        char *link;
-        GObject *book;
-        gboolean result;
+        char     *label;
+        char     *link;
+        GObject  *book;
+        gboolean  result;
 
         gtk_tree_model_get (model, iter,
                             COL_TITLE, &label,



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