r15383 - gnucash/trunk/src - Use GtkTreeModelFlags instead of guint.

Chris Shoemaker chris at cvs.gnucash.org
Sun Jan 14 20:08:55 EST 2007


Author: chris
Date: 2007-01-14 20:08:54 -0500 (Sun, 14 Jan 2007)
New Revision: 15383
Trac: http://svn.gnucash.org/trac/changeset/15383

Modified:
   gnucash/trunk/src/gnome-utils/dialog-account.c
   gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c
   gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c
   gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c
   gnucash/trunk/src/gnome/dialog-sxsincelast.c
Log:
Use GtkTreeModelFlags instead of guint.
Fix a comment typo and remove an unused variable.


Modified: gnucash/trunk/src/gnome/dialog-sxsincelast.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sxsincelast.c	2007-01-15 00:57:42 UTC (rev 15382)
+++ gnucash/trunk/src/gnome/dialog-sxsincelast.c	2007-01-15 01:08:54 UTC (rev 15383)
@@ -1786,7 +1786,6 @@
 static void
 process_auto_create_list(GList *autoCreateList, sxSinceLastData *sxsld, GList **creation_errors)
 {
-        GList *l;
         toCreateTuple *tct;
         toCreateInstance *tci;
         GList *instances;

Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c	2007-01-15 00:57:42 UTC (rev 15382)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c	2007-01-15 01:08:54 UTC (rev 15383)
@@ -521,8 +521,8 @@
                                       commodity);
     gnc_account_commodity_from_type (aw, FALSE);
 
-    gnc_tree_view_account_set_selected_account
-      (GNC_TREE_VIEW_ACCOUNT (aw->parent_tree), parent);
+    gnc_tree_view_account_set_selected_account (
+        GNC_TREE_VIEW_ACCOUNT (aw->parent_tree), parent);
 
     gnc_resume_gui_refresh ();
     LEAVE("1");
@@ -1737,7 +1737,7 @@
  ************************************************************/
 
 /*
- * register a callback that get's called when the account has changed
+ * register a callback that gets called when the account has changed
  * so significantly that you need to destroy yourself.  In particular
  * this is used by the ledger display to destroy ledgers when the
  * account type has changed.

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c	2007-01-15 00:57:42 UTC (rev 15382)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c	2007-01-15 01:08:54 UTC (rev 15383)
@@ -54,7 +54,7 @@
 
 /** Implementation of GtkTreeModel  **************************************/
 static void gnc_tree_model_account_tree_model_init (GtkTreeModelIface *iface);
-static guint gnc_tree_model_account_get_flags (GtkTreeModel *tree_model);
+static GtkTreeModelFlags gnc_tree_model_account_get_flags (GtkTreeModel *tree_model);
 static int gnc_tree_model_account_get_n_columns (GtkTreeModel *tree_model);
 static GType gnc_tree_model_account_get_column_type (GtkTreeModel *tree_model,
 						     int index);
@@ -370,7 +370,7 @@
 	iface->iter_parent     = gnc_tree_model_account_iter_parent;
 }
 
-static guint
+static GtkTreeModelFlags
 gnc_tree_model_account_get_flags (GtkTreeModel *tree_model)
 {
 	return 0;

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c	2007-01-15 00:57:42 UTC (rev 15382)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c	2007-01-15 01:08:54 UTC (rev 15383)
@@ -53,7 +53,7 @@
 static void gnc_tree_model_commodity_dispose (GObject *object);
 
 static void gnc_tree_model_commodity_tree_model_init (GtkTreeModelIface *iface);
-static guint gnc_tree_model_commodity_get_flags (GtkTreeModel *tree_model);
+static GtkTreeModelFlags gnc_tree_model_commodity_get_flags (GtkTreeModel *tree_model);
 static int gnc_tree_model_commodity_get_n_columns (GtkTreeModel *tree_model);
 static GType gnc_tree_model_commodity_get_column_type (GtkTreeModel *tree_model,
 						       int index);
@@ -366,7 +366,7 @@
 	iface->iter_parent     = gnc_tree_model_commodity_iter_parent;
 }
 
-static guint
+static GtkTreeModelFlags
 gnc_tree_model_commodity_get_flags (GtkTreeModel *tree_model)
 {
 	return 0;

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c	2007-01-15 00:57:42 UTC (rev 15382)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c	2007-01-15 01:08:54 UTC (rev 15383)
@@ -34,7 +34,7 @@
 static void gnc_tree_model_selection_finalize (GObject *object);
 
 static void gnc_tree_model_selection_tree_model_init (GtkTreeModelIface *iface);
-static guint gnc_tree_model_selection_get_flags (GtkTreeModel *tree_model);
+static GtkTreeModelFlags gnc_tree_model_selection_get_flags (GtkTreeModel *tree_model);
 static int gnc_tree_model_selection_get_n_columns (GtkTreeModel *tree_model);
 static GType gnc_tree_model_selection_get_column_type (GtkTreeModel *tree_model,
 						       int index);
@@ -342,7 +342,7 @@
 	iface->iter_parent     = gnc_tree_model_selection_iter_parent;
 }
 
-static guint
+static GtkTreeModelFlags
 gnc_tree_model_selection_get_flags (GtkTreeModel *tree_model)
 {
 	GncTreeModelSelection *model;



More information about the gnucash-changes mailing list