Whitespace cleanup, comment improvements and spelling fixes

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23213 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-10-07 14:02:27 +00:00
parent 302fb3bfb0
commit 07e144ba39
10 changed files with 49 additions and 49 deletions

View File

@ -90,7 +90,7 @@ gnc_commodity_table * gnc_get_current_commodities (void);
gchar *gnc_get_account_name_for_register(const Account *account); 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. * base_account.
* @a name is either considered to be the name of the leaf in the account tree * @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 * or to be the full account path, depending on the configuration parameter

View File

@ -128,12 +128,12 @@ struct _GNCSearchWindow
struct _crit_data struct _crit_data
{ {
GNCSearchParam * param; GNCSearchParam *param;
GNCSearchCoreType * element; GNCSearchCoreType *element;
GtkWidget * elemwidget; GtkWidget *elemwidget;
GtkWidget * container; GtkWidget *container;
GtkWidget * button; GtkWidget *button;
GtkDialog * dialog; GtkDialog *dialog;
}; };
static void search_clear_criteria (GNCSearchWindow *sw); static void search_clear_criteria (GNCSearchWindow *sw);

View File

@ -189,7 +189,7 @@ gnc_prefs_compare_addins (addition *a,
/** This is the common function that adds any set of preferences to /** This is the common function that adds any set of preferences to
* the preferences dialog. It allocates a data structure to remember * the preferences dialog. It allocates a data structure to remember
* the passed in data and queues it for later when the dialog is * 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 * conflicts, like multiple additions of the same tab name when the
* two pages being added aren't compatible. * two pages being added aren't compatible.
* *
@ -317,7 +317,7 @@ gnc_preferences_add_to_page (const gchar *filename,
/** This function builds a hash table of "interesting" widgets, /** This function builds a hash table of "interesting" widgets,
* i.e. widgets whose name starts with "gconf/". This table is * i.e. widgets whose name starts with "gconf/". This table is
* needed to perform name->widget lookups in the gconf callback * 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 * @internal
* *

View File

@ -37,7 +37,7 @@
file. If a partial page is added, the widget name provided must 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 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 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 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 of widget this code knows how to handle, then the callback signals
@ -99,7 +99,7 @@ void gnc_preferences_add_to_page (const gchar *filename,
/** This function creates the preferences dialog and presents it to /** 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 * preferences dialog already exists it will be raised to the top of
* the window stack instead of creating a new dialog. */ * the window stack instead of creating a new dialog. */
void gnc_preferences_dialog (void); void gnc_preferences_dialog (void);

View File

@ -37,7 +37,7 @@
* names. All data is maintained within the widget itself, which * names. All data is maintained within the widget itself, which
* makes the name/item lookup functions somewhat complicated. The * makes the name/item lookup functions somewhat complicated. The
* alternative coding would be to keep an auxiliary list of strings * 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. * redundant information.
* *
* This function currently builds a new GtkListStore for each widget * This function currently builds a new GtkListStore for each widget

View File

@ -554,7 +554,7 @@ gnc_tree_view_split_reg_finalize (GObject *object)
} }
/* Update some settings from gconf */ /* Update internal settings based on preferences */
void void
gnc_tree_view_split_reg_refresh_from_gconf (GncTreeViewSplitReg *view) gnc_tree_view_split_reg_refresh_from_gconf (GncTreeViewSplitReg *view)
{ {
@ -1804,7 +1804,7 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
editable = (read_only == TRUE) ? FALSE : editable; 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) if (gnc_numeric_negative_p (num) && negative_in_red)
g_object_set (cell, "foreground", "red", (gchar*)NULL); g_object_set (cell, "foreground", "red", (gchar*)NULL);
else else
@ -1881,7 +1881,7 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
editable = (read_only == TRUE) ? FALSE : editable; 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) if (gnc_numeric_negative_p (num) && negative_in_red)
g_object_set (cell, "foreground", "red", (gchar*)NULL); g_object_set (cell, "foreground", "red", (gchar*)NULL);
else else
@ -1956,7 +1956,7 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
editable = (read_only == TRUE) ? FALSE : editable; 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) if (gnc_numeric_negative_p (num) && negative_in_red)
g_object_set (cell, "foreground", "red", (gchar*)NULL); g_object_set (cell, "foreground", "red", (gchar*)NULL);
else else
@ -2139,7 +2139,7 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
num = gnc_numeric_neg (num); num = gnc_numeric_neg (num);
s = xaccPrintAmount (num, gnc_account_print_info(anchor, FALSE)); 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) if (gnc_numeric_negative_p (num) && negative_in_red)
g_object_set (cell, "foreground", "red", (gchar*)NULL); g_object_set (cell, "foreground", "red", (gchar*)NULL);
else else

View File

@ -331,7 +331,7 @@ enum
* equities. * equities.
* *
* The EURO gets special treatment. There can be one line with * 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. * member currencies.
* *
* There can be a 'grand total', too, which sums up all accounts * There can be a 'grand total', too, which sums up all accounts

View File

@ -301,7 +301,7 @@ gnc_localtime (const time64 *secs)
/* Linux, Darwin, and MSWindows implementations of this function set the /* Linux, Darwin, and MSWindows implementations of this function set the
* globals timezone and daylight; BSD doesn't have those globals, and * 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. * implementation. Bug 704185.
*/ */
struct tm* struct tm*