r20352 - gnucash/trunk/src - Small spelling corrections in comments and some whitespace adjustments

Geert Janssens gjanssens at code.gnucash.org
Mon Feb 28 06:28:25 EST 2011


Author: gjanssens
Date: 2011-02-28 06:28:25 -0500 (Mon, 28 Feb 2011)
New Revision: 20352
Trac: http://svn.gnucash.org/trac/changeset/20352

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
   gnucash/trunk/src/doc/python-bindings-doxygen.py
   gnucash/trunk/src/gnome-utils/dialog-transfer.c
   gnucash/trunk/src/gnome-utils/gnc-gobject-utils.c
   gnucash/trunk/src/gnome-utils/gnc-gobject-utils.h
   gnucash/trunk/src/gnome/gnc-plugin-page-budget.c
   gnucash/trunk/src/libqof/qof/gnc-numeric.c
   gnucash/trunk/src/optional/python-bindings/timespec.i
   gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
Log:
Small spelling corrections in comments and some whitespace adjustments

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2011-02-28 11:28:25 UTC (rev 20352)
@@ -120,67 +120,67 @@
  */
 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  * 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  * 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 */
@@ -401,7 +401,7 @@
     /* 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
      */
@@ -1458,7 +1458,7 @@
     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);
@@ -1492,7 +1492,7 @@
     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.
@@ -1608,7 +1608,7 @@
         /*
          * 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);
@@ -1686,7 +1686,7 @@
     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,
@@ -2244,7 +2244,7 @@
     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");
@@ -2321,7 +2321,7 @@
 
     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. */
 }
 
@@ -2707,7 +2707,7 @@
     }
 #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)
@@ -2791,7 +2791,7 @@
         { 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,
@@ -2807,7 +2807,7 @@
     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

Modified: gnucash/trunk/src/doc/python-bindings-doxygen.py
===================================================================
--- gnucash/trunk/src/doc/python-bindings-doxygen.py	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/doc/python-bindings-doxygen.py	2011-02-28 11:28:25 UTC (rev 20352)
@@ -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
@@ -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.
 #

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-budget.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-budget.c	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-budget.c	2011-02-28 11:28:25 UTC (rev 20352)
@@ -309,7 +309,7 @@
     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"),
@@ -330,7 +330,7 @@
                                   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;
@@ -398,7 +398,7 @@
 
 
 /*
- * GncPluginPage Fucntions
+ * GncPluginPage Functions
  */
 static GtkWidget *
 gnc_plugin_page_budget_create_widget (GncPluginPage *plugin_page)
@@ -622,7 +622,7 @@
 
 /** 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

Modified: gnucash/trunk/src/gnome-utils/dialog-transfer.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-transfer.c	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/gnome-utils/dialog-transfer.c	2011-02-28 11:28:25 UTC (rev 20352)
@@ -125,7 +125,7 @@
      */
     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;
@@ -192,7 +192,7 @@
 
     /* 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));

Modified: gnucash/trunk/src/gnome-utils/gnc-gobject-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gobject-utils.c	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/gnome-utils/gnc-gobject-utils.c	2011-02-28 11:28:25 UTC (rev 20352)
@@ -39,7 +39,7 @@
 
 /** 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.
  *

Modified: gnucash/trunk/src/gnome-utils/gnc-gobject-utils.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gobject-utils.h	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/gnome-utils/gnc-gobject-utils.h	2011-02-28 11:28:25 UTC (rev 20352)
@@ -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.
  */

Modified: gnucash/trunk/src/libqof/qof/gnc-numeric.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-numeric.c	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/libqof/qof/gnc-numeric.c	2011-02-28 11:28:25 UTC (rev 20352)
@@ -309,7 +309,7 @@
     {
         /* 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)

Modified: gnucash/trunk/src/optional/python-bindings/timespec.i
===================================================================
--- gnucash/trunk/src/optional/python-bindings/timespec.i	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/optional/python-bindings/timespec.i	2011-02-28 11:28:25 UTC (rev 20352)
@@ -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

Modified: gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2011-02-28 11:28:13 UTC (rev 20351)
+++ gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2011-02-28 11:28:25 UTC (rev 20352)
@@ -91,7 +91,7 @@
     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;
@@ -557,7 +557,7 @@
 }
 
 
-/** 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.
  *



More information about the gnucash-changes mailing list