From 5ea313e6819fbfda52fe6bc1d8528f4c6fa69c12 Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Mon, 15 Jan 2007 01:08:54 +0000 Subject: [PATCH] Use GtkTreeModelFlags instead of guint. Fix a comment typo and remove an unused variable. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15383 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/dialog-account.c | 6 +++--- src/gnome-utils/gnc-tree-model-account.c | 4 ++-- src/gnome-utils/gnc-tree-model-commodity.c | 4 ++-- src/gnome-utils/gnc-tree-model-selection.c | 4 ++-- src/gnome/dialog-sxsincelast.c | 1 - 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c index 9aba912e0b..8070d8762a 100644 --- a/src/gnome-utils/dialog-account.c +++ b/src/gnome-utils/dialog-account.c @@ -521,8 +521,8 @@ gnc_finish_ok (AccountWindow *aw) 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 @@ gnc_ui_new_account_with_types( AccountGroup *unused, ************************************************************/ /* - * 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. diff --git a/src/gnome-utils/gnc-tree-model-account.c b/src/gnome-utils/gnc-tree-model-account.c index 60c55f609a..2d22b91bb2 100644 --- a/src/gnome-utils/gnc-tree-model-account.c +++ b/src/gnome-utils/gnc-tree-model-account.c @@ -54,7 +54,7 @@ static void gnc_tree_model_account_dispose (GObject *object); /** 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 @@ gnc_tree_model_account_tree_model_init (GtkTreeModelIface *iface) iface->iter_parent = gnc_tree_model_account_iter_parent; } -static guint +static GtkTreeModelFlags gnc_tree_model_account_get_flags (GtkTreeModel *tree_model) { return 0; diff --git a/src/gnome-utils/gnc-tree-model-commodity.c b/src/gnome-utils/gnc-tree-model-commodity.c index ef94efa371..022de22b56 100644 --- a/src/gnome-utils/gnc-tree-model-commodity.c +++ b/src/gnome-utils/gnc-tree-model-commodity.c @@ -53,7 +53,7 @@ static void gnc_tree_model_commodity_finalize (GObject *object); 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 @@ gnc_tree_model_commodity_tree_model_init (GtkTreeModelIface *iface) iface->iter_parent = gnc_tree_model_commodity_iter_parent; } -static guint +static GtkTreeModelFlags gnc_tree_model_commodity_get_flags (GtkTreeModel *tree_model) { return 0; diff --git a/src/gnome-utils/gnc-tree-model-selection.c b/src/gnome-utils/gnc-tree-model-selection.c index ea0c106db0..182d166b20 100644 --- a/src/gnome-utils/gnc-tree-model-selection.c +++ b/src/gnome-utils/gnc-tree-model-selection.c @@ -34,7 +34,7 @@ static void gnc_tree_model_selection_init (GncTreeModelSelection *model); 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 @@ gnc_tree_model_selection_tree_model_init (GtkTreeModelIface *iface) iface->iter_parent = gnc_tree_model_selection_iter_parent; } -static guint +static GtkTreeModelFlags gnc_tree_model_selection_get_flags (GtkTreeModel *tree_model) { GncTreeModelSelection *model; diff --git a/src/gnome/dialog-sxsincelast.c b/src/gnome/dialog-sxsincelast.c index 03ba029d9d..f2a331c64a 100644 --- a/src/gnome/dialog-sxsincelast.c +++ b/src/gnome/dialog-sxsincelast.c @@ -1786,7 +1786,6 @@ _free_varBindings_hash_elts( gpointer key, gpointer value, gpointer data ) static void process_auto_create_list(GList *autoCreateList, sxSinceLastData *sxsld, GList **creation_errors) { - GList *l; toCreateTuple *tct; toCreateInstance *tci; GList *instances;