Skip to content

Commit

Permalink
Small spelling corrections in comments and some whitespace adjustments
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20352 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Feb 28, 2011
1 parent e2865db commit 3e8262e
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 76 deletions.
112 changes: 56 additions & 56 deletions src/business/business-gnome/dialog-invoice.c
Expand Up @@ -120,67 +120,67 @@ struct _invoice_select_window
*/
struct _invoice_window
{
GladeXML * xml;
GladeXML * xml;

GtkWidget * dialog; /* Used by 'New Invoice Window' */
GncPluginPage *page; /* Used by 'Edit Invoice' Page */
GtkWidget * dialog; /* Used by 'New Invoice Window' */
GncPluginPage *page; /* Used by 'Edit Invoice' Page */

/* Summary Bar Widgets */
GtkWidget * total_label;
GtkWidget * total_cash_label;
GtkWidget * total_charge_label;
GtkWidget * total_subtotal_label;
GtkWidget * total_tax_label;
GtkWidget * total_label;
GtkWidget * total_cash_label;
GtkWidget * total_charge_label;
GtkWidget * total_subtotal_label;
GtkWidget * total_tax_label;

/* Data Widgets */
GtkWidget * id_entry;
GtkWidget * notes_text;
GtkWidget * opened_date;
GtkWidget * posted_date_hbox;
GtkWidget * posted_date;
GtkWidget * active_check;

GtkWidget * owner_box;
GtkWidget * owner_label;
GtkWidget * owner_choice;
GtkWidget * job_label;
GtkWidget * job_box;
GtkWidget * job_choice;
GtkWidget * billing_id_entry;
GtkWidget * terms_menu;
GtkWidget * id_entry;
GtkWidget * notes_text;
GtkWidget * opened_date;
GtkWidget * posted_date_hbox;
GtkWidget * posted_date;
GtkWidget * active_check;

GtkWidget * owner_box;
GtkWidget * owner_label;
GtkWidget * owner_choice;
GtkWidget * job_label;
GtkWidget * job_box;
GtkWidget * job_choice;
GtkWidget * billing_id_entry;
GtkWidget * terms_menu;

/* Project Widgets (used for Bills only) */
GtkWidget * proj_frame;
GtkWidget * proj_cust_box;
GtkWidget * proj_cust_choice;
GtkWidget * proj_job_box;
GtkWidget * proj_job_choice;
GtkWidget * proj_frame;
GtkWidget * proj_cust_box;
GtkWidget * proj_cust_choice;
GtkWidget * proj_job_box;
GtkWidget * proj_job_choice;

/* Exp Voucher Widgets */
GtkWidget * to_charge_frame;
GtkWidget * to_charge_edit;
/* Expense Voucher Widgets */
GtkWidget * to_charge_frame;
GtkWidget * to_charge_edit;

gint width;
gint width;

GncBillTerm * terms;
GnucashRegister * reg;
GncEntryLedger * ledger;
GncBillTerm * terms;
GnucashRegister * reg;
GncEntryLedger * ledger;

invoice_sort_type_t last_sort;
invoice_sort_type_t last_sort;

InvoiceDialogType dialog_type;
GncGUID invoice_guid;
gint component_id;
QofBook * book;
GncInvoice * created_invoice;
GncOwner owner;
GncOwner job;
InvoiceDialogType dialog_type;
GncGUID invoice_guid;
gint component_id;
QofBook * book;
GncInvoice * created_invoice;
GncOwner owner;
GncOwner job;

GncOwner proj_cust;
GncOwner proj_job;
GncOwner proj_cust;
GncOwner proj_job;

/* for Unposting */
gboolean reset_tax_tables;
gboolean reset_tax_tables;
};

/* Forward definitions for CB functions */
Expand Down Expand Up @@ -401,7 +401,7 @@ gnc_invoice_window_ok_cb (GtkWidget *widget, gpointer data)
/* Ok, we don't need this anymore */
iw->invoice_guid = *guid_null ();

/* if this is a NEW_INVOICE, and created_invoice is NON-NULL, the
/* if this is a NEW_INVOICE, and created_invoice is NON-NULL, then
* open up a new window with the invoice. This used to be done
* in gnc_ui_invoice_new() but cannot be done anymore
*/
Expand Down Expand Up @@ -1458,7 +1458,7 @@ gnc_invoice_window_refresh_handler (GHashTable *changes, gpointer user_data)
GncInvoice *invoice = iw_get_invoice (iw);
GncOwner *owner;

/* If there isn't a invoice behind us, close down */
/* If there isn't an invoice behind us, close down */
if (!invoice)
{
gnc_close_gui_component (iw->component_id);
Expand Down Expand Up @@ -1492,7 +1492,7 @@ gnc_invoice_window_refresh_handler (GHashTable *changes, gpointer user_data)
gnc_invoice_update_window (iw, NULL);
}

/** Update the various widgets in the window/page vased upon the data
/** Update the various widgets in the window/page based upon the data
* in the InvoiceWindow data structure.
*
* @param iw A pointer to the InvoiceWindow data structure.
Expand Down Expand Up @@ -1608,7 +1608,7 @@ gnc_invoice_update_window (InvoiceWindow *iw, GtkWidget *widget)
/*
* Next, figure out if we've been posted, and if so set the
* appropriate bits of information.. Then work on hiding or
* unhiding as necessary.
* showing as necessary.
*/

acct = gncInvoiceGetPostedAcc (invoice);
Expand Down Expand Up @@ -1686,7 +1686,7 @@ gnc_invoice_update_window (InvoiceWindow *iw, GtkWidget *widget)
if (iw->page)
gnc_plugin_page_invoice_update_menus(iw->page, is_posted, can_unpost);

/* Set the to-change widget */
/* Set the to_charge widget */
gtk_widget_set_sensitive (iw->to_charge_edit, !is_posted);

/* Hide the to_charge frame for all non-employee invoices,
Expand Down Expand Up @@ -2244,7 +2244,7 @@ gnc_invoice_window_new_invoice (QofBook *bookp, GncOwner *owner,
iw->job_label = glade_xml_get_widget (xml, "job_label");
iw->job_box = glade_xml_get_widget (xml, "job_hbox");

/* grab the project widgets */
/* Grab the project widgets */
iw->proj_frame = glade_xml_get_widget (xml, "proj_frame");
iw->proj_cust_box = glade_xml_get_widget (xml, "proj_cust_hbox");
iw->proj_job_box = glade_xml_get_widget (xml, "proj_job_hbox");
Expand Down Expand Up @@ -2321,7 +2321,7 @@ set_gncEntry_date(gpointer data, gpointer user_data)

gncEntrySetDate(entry, *new_date);
/*gncEntrySetDateEntered(entry, *new_date); - don't modify this
* because apparently it implies the ordering of the entries,
* because apparently it defines the ordering of the entries,
* which we don't want to change. */
}

Expand Down Expand Up @@ -2707,7 +2707,7 @@ gnc_invoice_search (GncInvoice *start, GncOwner *owner, QofBook *book)
}
#endif

/* launch select dialog and return the result */
/* Launch select dialog and return the result */
sw = g_new0 (struct _invoice_select_window, 1);

if (owner)
Expand Down Expand Up @@ -2791,7 +2791,7 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
{ NULL },
};

/* create the param list (in reverse order) */
/* Create the param list (in reverse order) */
if (param_list == NULL)
{
param_list = gnc_search_param_prepend (param_list, _("Amount"), NULL, type,
Expand All @@ -2807,7 +2807,7 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
qof_query_search_for(q, GNC_INVOICE_MODULE_NAME);
qof_query_set_book (q, book);

/* we want to find all invoices where:
/* We want to find all invoices where:
* invoice -> is_posted == TRUE
* AND invoice -> lot -> is_closed? == FALSE
* AND invoice -> type != _("Invoice") // note: currently the translated form
Expand Down
4 changes: 2 additions & 2 deletions src/doc/python-bindings-doxygen.py
Expand Up @@ -9,7 +9,7 @@
# @li maybe join python_bindings_page and group
# @li work on the structure of the documentation to make it more clear
# @li try to make SWIG include the documentation of the c-source
# @li make funtion-links in SWIG-generated files work.
# @li make function-links in SWIG-generated files work.
# @li some words to the tests
#
# @author Christoph Holtermann
Expand Down Expand Up @@ -39,7 +39,7 @@
#
# @section possibilities What are the Python bindings good for ?
#
# The python bindings supply the ability to access a wide range of the core funtions of GnuCash. You
# The python bindings supply the ability to access a wide range of the core functions of GnuCash. You
# can read and write Transactions, Commodities, Lots, access the business stuff... You gain the ability
# to manipulate your financial data with a flexible scripting language.
#
Expand Down
4 changes: 2 additions & 2 deletions src/gnome-utils/dialog-transfer.c
Expand Up @@ -125,7 +125,7 @@ struct _xferDialog
*/
gnc_numeric * exch_rate;

/* Callback funtion to notify of the newly created Transaction */
/* Callback function to notify of the newly created Transaction */
gnc_xfer_dialog_cb transaction_cb;
/* , and its user_data */
gpointer transaction_user_data;
Expand Down Expand Up @@ -192,7 +192,7 @@ gnc_xfer_dialog_update_price (XferDialog *xferData)

/* when do we update, and when do we NOT update? */

/* XXX: I'm ALWAYS going to update whenver we get called */
/* XXX: I'm ALWAYS going to update whenever we get called */

/* grab the price nearest to the DATE out of the pricedb */
date = gnc_date_edit_get_date_ts (GNC_DATE_EDIT (xferData->date_entry));
Expand Down
2 changes: 1 addition & 1 deletion src/gnome-utils/gnc-gobject-utils.c
Expand Up @@ -39,7 +39,7 @@ static void gnc_gobject_weak_cb (gpointer user_data, GObject *object);

/** Get a pointer to the hash table used by the tracking database. If
* the hash table doesn't exist, it will be created. If gnucash was
* compiled with --enable-ref-count-dumps, this funtion is also the
* compiled with --enable-ref-count-dumps, this function is also the
* point where the gnc_gobject_tracking_dump() function is registered
* to be called the GTK exits.
*
Expand Down
6 changes: 3 additions & 3 deletions src/gnome-utils/gnc-gobject-utils.h
Expand Up @@ -55,11 +55,11 @@
* search for a specific object wouldn't help because the information
* being inspected is private to the object.)
*
* Any object added to this databasse during the execution of gnucash
* Any object added to this database during the execution of gnucash
* should be deleted from it before completion of the program. WHen
* the program shuts down, a list of all abjects still in the
* the program shuts down, a list of all objects still in the
* database will be dumped out to the logfile. This should help
* developers find memoty leaks in their code where an object is
* developers find memory leaks in their code where an object is
* lost, or is not release because it gained an extra reference at
* some point during its lifetime.
*/
Expand Down
8 changes: 4 additions & 4 deletions src/gnome/gnc-plugin-page-budget.c
Expand Up @@ -309,7 +309,7 @@ gnc_plugin_page_budget_init (GncPluginPageBudget *plugin_page)
ENTER("page %p", plugin_page);
priv = GNC_PLUGIN_PAGE_BUDGET_GET_PRIVATE(plugin_page);

/* Init parent declared variables */
/* Initialize parent declared variables */
parent = GNC_PLUGIN_PAGE(plugin_page);
g_object_set(G_OBJECT(plugin_page),
"page-name", _("Budget"),
Expand All @@ -330,7 +330,7 @@ gnc_plugin_page_budget_init (GncPluginPageBudget *plugin_page)
plugin_page);
gnc_plugin_init_short_names (action_group, toolbar_labels);

/* Visisble types */
/* Visible types */
priv->fd.visible_types = -1; /* Start with all types */
priv->fd.show_hidden = FALSE;
priv->fd.show_zero_total = TRUE;
Expand Down Expand Up @@ -398,7 +398,7 @@ gnc_plugin_page_budget_refresh_cb(GHashTable *changes, gpointer user_data)


/*
* GncPluginPage Fucntions
* GncPluginPage Functions
*/
static GtkWidget *
gnc_plugin_page_budget_create_widget (GncPluginPage *plugin_page)
Expand Down Expand Up @@ -622,7 +622,7 @@ gnc_plugin_page_budget_recreate_page (GtkWidget *window, GKeyFile *key_file,

/** This button press handler calls the common button press handler
* for all pages. The GtkTreeView eats all button presses and
* doesn't pass them up the widget tree, even when doesn't do
* doesn't pass them up the widget tree, even when it doesn't do
* anything with them. The only way to get access to the button
* presses in an account tree page is here on the tree view widget.
* Button presses on all other pages are caught by the signal
Expand Down
2 changes: 1 addition & 1 deletion src/libqof/qof/gnc-numeric.c
Expand Up @@ -309,7 +309,7 @@ gnc_numeric_equal(gnc_numeric a, gnc_numeric b)
{
/* BUG: One of the numbers has a reciprocal denom, and the other
does not. I just don't know to handle this case in any
reasonably overflow-proof yet simple way. So, this funtion
reasonably overflow-proof yet simple way. So, this function
will simply get it wrong whenever the three multiplies
overflow 64-bits. -CAS */
if (a.denom < 0)
Expand Down
10 changes: 5 additions & 5 deletions src/optional/python-bindings/timespec.i
Expand Up @@ -38,17 +38,17 @@
PyDateTime_GET_YEAR($input) );
}

// A typemap for converting python dates to Timespec *, for fuctions that
// A typemap for converting python dates to Timespec *, for functions that
// requires a Timespec * as an argument. BIG ASSUMPTION, the function
// recieving this pointer is going to make a copy of the data. After the
// receiving this pointer is going to make a copy of the data. After the
// function call, the memory for the Timespec used to perform this conversion
// is going to be lost, so make damn sure that the recipiant of this pointer
// is going to be lost, so make damn sure that the recipient of this pointer
// is NOT going dereference it sometime after this function call takes place.
//
// As far as I know, the xaccTransSetDate[Posted|Entered|Due]TS functions
// from Transaction.h are the only functions with Timespec * that we re
// actually using. I have personaly verifyed in the source that the pointer
// being produced by this typemap is being deferenced, and the data copied
// actually using. I have personally verified in the source that the pointer
// being produced by this typemap is being dereferenced, and the data copied
// in all three functions.
//
// The memory for the Timespec used for this conversion is allocated on the
Expand Down
4 changes: 2 additions & 2 deletions src/report/report-gnome/gnc-plugin-page-report.c
Expand Up @@ -91,7 +91,7 @@ typedef struct GncPluginPageReportPrivate
int reportId;
gint component_manager_id;

/// The report which this Page is satisifying
/// The report which this Page is satisfying
SCM cur_report;
/// The Option DB for this report.
GNCOptionDB *cur_odb;
Expand Down Expand Up @@ -557,7 +557,7 @@ gnc_plugin_page_report_load_cb(GncHtml * html, URLType type,
}


/** This function is called when one of the options for a register
/** This function is called when one of the options for a report
* page has changed. It is responsible for marking the report as
* dirty, and causing the report to reload using the new options.
*
Expand Down

0 comments on commit 3e8262e

Please sign in to comment.