mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
302fb3bfb0
commit
07e144ba39
@ -90,7 +90,7 @@ gnc_commodity_table * gnc_get_current_commodities (void);
|
||||
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
|
||||
|
@ -75,7 +75,7 @@ struct _GNCSearchWindow
|
||||
|
||||
/* 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 @@ struct _GNCSearchWindow
|
||||
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);
|
||||
|
@ -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 @@ gnc_prefs_compare_addins (addition *a,
|
||||
/** 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 @@ gnc_preferences_add_to_page (const gchar *filename,
|
||||
/** 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
|
||||
*
|
||||
|
@ -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 @@ void gnc_preferences_add_to_page (const gchar *filename,
|
||||
|
||||
|
||||
/** 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);
|
||||
|
@ -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
|
||||
|
@ -92,11 +92,11 @@ enum
|
||||
#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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -554,7 +554,7 @@ gnc_tree_view_split_reg_finalize (GObject *object)
|
||||
}
|
||||
|
||||
|
||||
/* 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 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
|
||||
|
||||
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 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
|
||||
|
||||
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 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
|
||||
|
||||
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 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
|
||||
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
|
||||
|
@ -331,7 +331,7 @@ enum
|
||||
* 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
|
||||
|
@ -301,7 +301,7 @@ gnc_localtime (const time64 *secs)
|
||||
|
||||
/* 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*
|
||||
|
Loading…
Reference in New Issue
Block a user