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);
|
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
|
||||||
|
@ -75,7 +75,7 @@ struct _GNCSearchWindow
|
|||||||
|
|
||||||
/* The "results" sub-window widgets */
|
/* The "results" sub-window widgets */
|
||||||
GtkWidget *result_view;
|
GtkWidget *result_view;
|
||||||
gpointer selected_item;
|
gpointer selected_item;
|
||||||
GList *selected_item_list;
|
GList *selected_item_list;
|
||||||
|
|
||||||
/* The search_type radio-buttons */
|
/* The search_type radio-buttons */
|
||||||
@ -90,50 +90,50 @@ struct _GNCSearchWindow
|
|||||||
GList *button_list;
|
GList *button_list;
|
||||||
|
|
||||||
/* The close/cancel buttons */
|
/* The close/cancel buttons */
|
||||||
GtkWidget *close_button;
|
GtkWidget *close_button;
|
||||||
GtkWidget *cancel_button;
|
GtkWidget *cancel_button;
|
||||||
|
|
||||||
/* Callbacks */
|
/* Callbacks */
|
||||||
GNCSearchResultCB result_cb;
|
GNCSearchResultCB result_cb;
|
||||||
GNCSearchNewItemCB new_item_cb;
|
GNCSearchNewItemCB new_item_cb;
|
||||||
GNCSearchCallbackButton *buttons;
|
GNCSearchCallbackButton *buttons;
|
||||||
GNCSearchFree free_cb;
|
GNCSearchFree free_cb;
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
|
|
||||||
GNCSearchSelectedCB selected_cb;
|
GNCSearchSelectedCB selected_cb;
|
||||||
gpointer select_arg;
|
gpointer select_arg;
|
||||||
gboolean allow_clear;
|
gboolean allow_clear;
|
||||||
|
|
||||||
/* What we're searching for, and how */
|
/* What we're searching for, and how */
|
||||||
const gchar *type_label;
|
const gchar *type_label;
|
||||||
QofIdTypeConst search_for;
|
QofIdTypeConst search_for;
|
||||||
GNCSearchType grouping; /* Match Any, Match All */
|
GNCSearchType grouping; /* Match Any, Match All */
|
||||||
const QofParam *get_guid; /* Function to GetGUID from the object */
|
const QofParam *get_guid; /* Function to GetGUID from the object */
|
||||||
int search_type; /* New, Narrow, Add, Delete */
|
int search_type; /* New, Narrow, Add, Delete */
|
||||||
|
|
||||||
/* Our query status */
|
/* Our query status */
|
||||||
QofQuery *q;
|
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 */
|
/* The list of criteria */
|
||||||
GNCSearchParam *last_param;
|
GNCSearchParam *last_param;
|
||||||
GList *params_list; /* List of GNCSearchParams */
|
GList *params_list; /* List of GNCSearchParams */
|
||||||
GList *display_list; /* List of GNCSearchParams for Display */
|
GList *display_list; /* List of GNCSearchParams for Display */
|
||||||
gint num_cols; /* Number of Display Columns */
|
gint num_cols; /* Number of Display Columns */
|
||||||
GList *crit_list; /* List of crit_data */
|
GList *crit_list; /* List of crit_data */
|
||||||
|
|
||||||
gint component_id;
|
gint component_id;
|
||||||
const gchar *gconf_section;
|
const gchar *gconf_section;
|
||||||
};
|
};
|
||||||
|
|
||||||
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);
|
||||||
|
@ -75,11 +75,11 @@
|
|||||||
#include "gnc-component-manager.h"
|
#include "gnc-component-manager.h"
|
||||||
#include "dialog-preferences.h"
|
#include "dialog-preferences.h"
|
||||||
|
|
||||||
#define DIALOG_PREFERENCES_CM_CLASS "dialog-newpreferences"
|
#define DIALOG_PREFERENCES_CM_CLASS "dialog-newpreferences"
|
||||||
#define GCONF_SECTION "dialogs/preferences"
|
#define GCONF_SECTION "dialogs/preferences"
|
||||||
#define PREFIX_LEN sizeof("gconf/") - 1
|
#define PREFIX_LEN sizeof("gconf/") - 1
|
||||||
#define WIDGET_HASH "widget_hash"
|
#define WIDGET_HASH "widget_hash"
|
||||||
#define NOTEBOOK "notebook"
|
#define NOTEBOOK "notebook"
|
||||||
|
|
||||||
/** The debugging module that this .o belongs to. */
|
/** The debugging module that this .o belongs to. */
|
||||||
static QofLogModule log_module = GNC_MOD_PREFS;
|
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
|
/** 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
|
||||||
*
|
*
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
@ -92,11 +92,11 @@ enum
|
|||||||
#define PLUGIN_PAGE_CLOSE_BUTTON "close-button"
|
#define PLUGIN_PAGE_CLOSE_BUTTON "close-button"
|
||||||
#define PLUGIN_PAGE_TAB_LABEL "label"
|
#define PLUGIN_PAGE_TAB_LABEL "label"
|
||||||
|
|
||||||
#define KEY_SHOW_CLOSE_BUTTON "tab_close_buttons"
|
#define KEY_SHOW_CLOSE_BUTTON "tab_close_buttons"
|
||||||
#define KEY_TAB_NEXT_RECENT "tab_next_recent"
|
#define KEY_TAB_NEXT_RECENT "tab_next_recent"
|
||||||
#define KEY_TAB_POSITION "tab_position"
|
#define KEY_TAB_POSITION "tab_position"
|
||||||
#define KEY_TAB_WIDTH "tab_width"
|
#define KEY_TAB_WIDTH "tab_width"
|
||||||
#define KEY_TAB_COLOR "show_account_color_tabs"
|
#define KEY_TAB_COLOR "show_account_color_tabs"
|
||||||
|
|
||||||
#define GNC_MAIN_WINDOW_NAME "GncMainWindow"
|
#define GNC_MAIN_WINDOW_NAME "GncMainWindow"
|
||||||
|
|
||||||
|
@ -36,10 +36,10 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GNC_TYPE_PERIOD_SELECT (gnc_period_select_get_type())
|
#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(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_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 */
|
/* typedefs & structures */
|
||||||
typedef struct
|
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
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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*
|
||||||
|
Loading…
Reference in New Issue
Block a user