r23213 - gnucash/trunk/src - Whitespace cleanup, comment improvements and spelling fixes

Geert Janssens gjanssens at code.gnucash.org
Mon Oct 7 10:02:28 EDT 2013


Author: gjanssens
Date: 2013-10-07 10:02:27 -0400 (Mon, 07 Oct 2013)
New Revision: 23213
Trac: http://svn.gnucash.org/trac/changeset/23213

Modified:
   gnucash/trunk/src/app-utils/gnc-ui-util.h
   gnucash/trunk/src/gnome-search/dialog-search.c
   gnucash/trunk/src/gnome-utils/dialog-preferences.c
   gnucash/trunk/src/gnome-utils/dialog-preferences.h
   gnucash/trunk/src/gnome-utils/gnc-currency-edit.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
   gnucash/trunk/src/gnome-utils/gnc-period-select.h
   gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c
   gnucash/trunk/src/gnome-utils/window-main-summarybar.c
   gnucash/trunk/src/libqof/qof/gnc-date.c
Log:
Whitespace cleanup, comment improvements and spelling fixes

Modified: gnucash/trunk/src/app-utils/gnc-ui-util.h
===================================================================
--- gnucash/trunk/src/app-utils/gnc-ui-util.h	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/app-utils/gnc-ui-util.h	2013-10-07 14:02:27 UTC (rev 23213)
@@ -90,7 +90,7 @@
 gchar *gnc_get_account_name_for_register(const Account *account);
 
 /**
- * Retrieve the account matching the given name starting from the descandants of
+ * Retrieve the account matching the given name starting from the descendants of
  * base_account.
  * @a name is either considered to be the name of the leaf in the account tree
  * or to be the full account path, depending on the configuration parameter

Modified: gnucash/trunk/src/gnome-search/dialog-search.c
===================================================================
--- gnucash/trunk/src/gnome-search/dialog-search.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-search/dialog-search.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -75,7 +75,7 @@
 
     /* The "results" sub-window widgets */
     GtkWidget               *result_view;
-    gpointer	             selected_item;
+    gpointer                 selected_item;
     GList                   *selected_item_list;
 
     /* The search_type radio-buttons */
@@ -90,50 +90,50 @@
     GList                   *button_list;
 
     /* The close/cancel buttons */
-    GtkWidget 		    *close_button;
+    GtkWidget               *close_button;
     GtkWidget               *cancel_button;
 
     /* Callbacks */
     GNCSearchResultCB        result_cb;
     GNCSearchNewItemCB       new_item_cb;
     GNCSearchCallbackButton *buttons;
-    GNCSearchFree	     free_cb;
-    gpointer		     user_data;
+    GNCSearchFree            free_cb;
+    gpointer                 user_data;
 
-    GNCSearchSelectedCB	     selected_cb;
-    gpointer		     select_arg;
-    gboolean		     allow_clear;
+    GNCSearchSelectedCB      selected_cb;
+    gpointer                 select_arg;
+    gboolean                 allow_clear;
 
     /* What we're searching for, and how */
     const gchar              *type_label;
     QofIdTypeConst            search_for;
-    GNCSearchType             grouping;		/* Match Any, Match All */
-    const QofParam           *get_guid;		/* Function to GetGUID from the object */
-    int		              search_type;	/* New, Narrow, Add, Delete */
+    GNCSearchType             grouping;     /* Match Any, Match All */
+    const QofParam           *get_guid;     /* Function to GetGUID from the object */
+    int                       search_type;  /* New, Narrow, Add, Delete */
 
     /* Our query status */
     QofQuery                 *q;
-    QofQuery                 *start_q;		/* The query to start from, if any */
+    QofQuery                 *start_q;      /* The query to start from, if any */
 
     /* The list of criteria */
     GNCSearchParam           *last_param;
-    GList                    *params_list;	/* List of GNCSearchParams */
-    GList                    *display_list;	/* List of GNCSearchParams for Display */
-    gint	              num_cols;		/* Number of Display Columns */
-    GList                    *crit_list;	/* List of crit_data */
+    GList                    *params_list;  /* List of GNCSearchParams */
+    GList                    *display_list; /* List of GNCSearchParams for Display */
+    gint                      num_cols;     /* Number of Display Columns */
+    GList                    *crit_list;    /* List of crit_data */
 
-    gint	             component_id;
-    const gchar             *gconf_section;
+    gint                      component_id;
+    const gchar              *gconf_section;
 };
 
 struct _crit_data
 {
-    GNCSearchParam *	param;
-    GNCSearchCoreType *	element;
-    GtkWidget *		elemwidget;
-    GtkWidget *		container;
-    GtkWidget *		button;
-    GtkDialog *		dialog;
+    GNCSearchParam    *param;
+    GNCSearchCoreType *element;
+    GtkWidget         *elemwidget;
+    GtkWidget         *container;
+    GtkWidget         *button;
+    GtkDialog         *dialog;
 };
 
 static void search_clear_criteria (GNCSearchWindow *sw);

Modified: gnucash/trunk/src/gnome-utils/dialog-preferences.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-preferences.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/dialog-preferences.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -75,11 +75,11 @@
 #include "gnc-component-manager.h"
 #include "dialog-preferences.h"
 
-#define DIALOG_PREFERENCES_CM_CLASS	"dialog-newpreferences"
-#define GCONF_SECTION			"dialogs/preferences"
-#define PREFIX_LEN			sizeof("gconf/") - 1
-#define WIDGET_HASH			"widget_hash"
-#define NOTEBOOK			"notebook"
+#define DIALOG_PREFERENCES_CM_CLASS "dialog-newpreferences"
+#define GCONF_SECTION               "dialogs/preferences"
+#define PREFIX_LEN                   sizeof("gconf/") - 1
+#define WIDGET_HASH                 "widget_hash"
+#define NOTEBOOK                    "notebook"
 
 /** The debugging module that this .o belongs to.  */
 static QofLogModule log_module = GNC_MOD_PREFS;
@@ -189,7 +189,7 @@
 /** This is the common function that adds any set of preferences to
  *  the preferences dialog.  It allocates a data structure to remember
  *  the passed in data and queues it for later when the dialog is
- *  actually built.  This code does check to insure there aren't any
+ *  actually built.  This code does check to ensure there aren't any
  *  conflicts, like multiple additions of the same tab name when the
  *  two pages being added aren't compatible.
  *
@@ -317,7 +317,7 @@
 /** This function builds a hash table of "interesting" widgets,
  *  i.e. widgets whose name starts with "gconf/".  This table is
  *  needed to perform name->widget lookups in the gconf callback
- *  functions as they are comming from multiple glade files.
+ *  functions as they are coming from multiple glade files.
  *
  *  @internal
  *

Modified: gnucash/trunk/src/gnome-utils/dialog-preferences.h
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-preferences.h	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/dialog-preferences.h	2013-10-07 14:02:27 UTC (rev 23213)
@@ -37,7 +37,7 @@
     file.  If a partial page is added, the widget name provided must
     be that of a GtkTable containing four columns. If a full page is
     added, the widget name provided to this code can be any kind of
-    widget, but for consistence it should probably be the same.
+    widget, but for consistency it should probably be the same.
 
     If a widget names is in the form gconf/xxx/yyy... and it is a type
     of widget this code knows how to handle, then the callback signals
@@ -99,7 +99,7 @@
 
 
 /** This function creates the preferences dialog and presents it to
- *  the user.  The preferences dialog is a singletone, so if a
+ *  the user.  The preferences dialog is a singleton, so if a
  *  preferences dialog already exists it will be raised to the top of
  *  the window stack instead of creating a new dialog. */
 void gnc_preferences_dialog (void);

Modified: gnucash/trunk/src/gnome-utils/gnc-currency-edit.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-currency-edit.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/gnc-currency-edit.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -37,7 +37,7 @@
  *  names.  All data is maintained within the widget itself, which
  *  makes the name/item lookup functions somewhat complicated.  The
  *  alternative coding would be to keep an auxiliary list of strings
- *  attacked to the widget for lookup purposes, but that would be 100%
+ *  attached to the widget for lookup purposes, but that would be 100%
  *  redundant information.
  *
  *  This function currently builds a new GtkListStore for each widget

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -92,11 +92,11 @@
 #define PLUGIN_PAGE_CLOSE_BUTTON "close-button"
 #define PLUGIN_PAGE_TAB_LABEL    "label"
 
-#define KEY_SHOW_CLOSE_BUTTON	"tab_close_buttons"
-#define KEY_TAB_NEXT_RECENT	"tab_next_recent"
-#define KEY_TAB_POSITION	"tab_position"
-#define KEY_TAB_WIDTH           "tab_width"
-#define KEY_TAB_COLOR           "show_account_color_tabs"
+#define KEY_SHOW_CLOSE_BUTTON    "tab_close_buttons"
+#define KEY_TAB_NEXT_RECENT      "tab_next_recent"
+#define KEY_TAB_POSITION         "tab_position"
+#define KEY_TAB_WIDTH            "tab_width"
+#define KEY_TAB_COLOR            "show_account_color_tabs"
 
 #define GNC_MAIN_WINDOW_NAME "GncMainWindow"
 

Modified: gnucash/trunk/src/gnome-utils/gnc-period-select.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-period-select.h	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/gnc-period-select.h	2013-10-07 14:02:27 UTC (rev 23213)
@@ -36,10 +36,10 @@
 
 G_BEGIN_DECLS
 
-#define GNC_TYPE_PERIOD_SELECT	    (gnc_period_select_get_type())
-#define GNC_PERIOD_SELECT(o)	    (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_PERIOD_SELECT, GncPeriodSelect))
+#define GNC_TYPE_PERIOD_SELECT      (gnc_period_select_get_type())
+#define GNC_PERIOD_SELECT(o)        (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_PERIOD_SELECT, GncPeriodSelect))
 #define GNC_PERIOD_SELECT_CLASS(k)  (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_PERIOD_SELECT, GncPeriodSelectClass))
-#define GNC_IS_PERIOD_SELECT(o)	    (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_PERIOD_SELECT))
+#define GNC_IS_PERIOD_SELECT(o)     (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_PERIOD_SELECT))
 
 /* typedefs & structures */
 typedef struct

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -554,7 +554,7 @@
 }
 
 
-/* Update some settings from gconf */
+/* Update internal settings based on preferences */
 void
 gnc_tree_view_split_reg_refresh_from_gconf (GncTreeViewSplitReg *view)
 {
@@ -1804,7 +1804,7 @@
 
         editable = (read_only == TRUE) ? FALSE : editable;
 
-        // Display negative numbers in red by gconf
+        // Display negative numbers in red if requested in preferences
         if (gnc_numeric_negative_p (num) && negative_in_red)
             g_object_set (cell, "foreground", "red", (gchar*)NULL);
         else
@@ -1881,7 +1881,7 @@
 
         editable = (read_only == TRUE) ? FALSE : editable;
 
-        // Display negative numbers in red by gconf
+        // Display negative numbers in red if requested in preferences
         if (gnc_numeric_negative_p (num) && negative_in_red)
             g_object_set (cell, "foreground", "red", (gchar*)NULL);
         else
@@ -1956,7 +1956,7 @@
 
         editable = (read_only == TRUE) ? FALSE : editable;
 
-        // Display negative numbers in red by gconf
+        // Display negative numbers in red if requested in preferences
         if (gnc_numeric_negative_p (num) && negative_in_red)
             g_object_set (cell, "foreground", "red", (gchar*)NULL);
         else
@@ -2139,7 +2139,7 @@
                 num = gnc_numeric_neg (num);
             s = xaccPrintAmount (num, gnc_account_print_info(anchor, FALSE));
 
-            // Display negative numbers in red by gconf
+            // Display negative numbers in red if requested in preferences
             if (gnc_numeric_negative_p (num) && negative_in_red)
                 g_object_set (cell, "foreground", "red", (gchar*)NULL);
             else

Modified: gnucash/trunk/src/gnome-utils/window-main-summarybar.c
===================================================================
--- gnucash/trunk/src/gnome-utils/window-main-summarybar.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/gnome-utils/window-main-summarybar.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -331,7 +331,7 @@
  * equities.
  *
  * The EURO gets special treatment. There can be one line with
- * EUR amounts and a EUR (total) line which summs up all EURO
+ * EUR amounts and a EUR (total) line which sums up all EURO
  * member currencies.
  *
  * There can be a 'grand total', too, which sums up all accounts

Modified: gnucash/trunk/src/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.c	2013-10-07 14:02:08 UTC (rev 23212)
+++ gnucash/trunk/src/libqof/qof/gnc-date.c	2013-10-07 14:02:27 UTC (rev 23213)
@@ -301,7 +301,7 @@
 
 /* Linux, Darwin, and MSWindows implementations of this function set the
  * globals timezone and daylight; BSD doesn't have those globals, and
- * Gnucash never uses them, so they're ommitted from this
+ * Gnucash never uses them, so they're omitted from this
  * implementation. Bug 704185.
  */
 struct tm*



More information about the gnucash-changes mailing list