r20408 - gnucash/trunk/src - Add some more const-correctness.
Christian Stimming
cstim at code.gnucash.org
Sat Mar 12 19:02:53 EST 2011
Author: cstim
Date: 2011-03-12 19:02:53 -0500 (Sat, 12 Mar 2011)
New Revision: 20408
Trac: http://svn.gnucash.org/trac/changeset/20408
Modified:
gnucash/trunk/src/gnome-utils/dialog-account.c
gnucash/trunk/src/gnome-utils/dialog-account.h
gnucash/trunk/src/import-export/import-account-matcher.c
gnucash/trunk/src/import-export/import-account-matcher.h
Log:
Add some more const-correctness.
Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c 2011-03-13 00:02:38 UTC (rev 20407)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c 2011-03-13 00:02:53 UTC (rev 20408)
@@ -1539,10 +1539,10 @@
Account *base_account,
gchar **subaccount_names,
GList *valid_types,
- gnc_commodity * default_commodity,
+ const gnc_commodity * default_commodity,
gboolean modal)
{
- gnc_commodity *commodity, *parent_commodity;
+ const gnc_commodity *commodity, *parent_commodity;
AccountWindow *aw;
Account *account;
GList *list;
@@ -1607,7 +1607,7 @@
commodity = NULL;
}
gnc_general_select_set_selected (GNC_GENERAL_SELECT (aw->commodity_edit),
- commodity);
+ (gpointer) commodity);
gnc_account_commodity_from_type (aw, FALSE);
if (base_account == NULL)
@@ -1704,7 +1704,7 @@
Account *
gnc_ui_new_accounts_from_name_with_defaults (const char *name,
GList *valid_types,
- gnc_commodity * default_commodity,
+ const gnc_commodity * default_commodity,
Account * parent)
{
QofBook *book;
Modified: gnucash/trunk/src/gnome-utils/dialog-account.h
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.h 2011-03-13 00:02:38 UTC (rev 20407)
+++ gnucash/trunk/src/gnome-utils/dialog-account.h 2011-03-13 00:02:53 UTC (rev 20408)
@@ -131,7 +131,7 @@
*/
Account * gnc_ui_new_accounts_from_name_with_defaults (const char *name,
GList *valid_types,
- gnc_commodity * default_commodity,
+ const gnc_commodity * default_commodity,
Account * parent);
/*
Modified: gnucash/trunk/src/import-export/import-account-matcher.c
===================================================================
--- gnucash/trunk/src/import-export/import-account-matcher.c 2011-03-13 00:02:38 UTC (rev 20407)
+++ gnucash/trunk/src/import-export/import-account-matcher.c 2011-03-13 00:02:53 UTC (rev 20408)
@@ -54,7 +54,7 @@
GtkWidget * account_tree_sw;
const gchar * account_human_description;
const gchar * account_online_id_value;
- gnc_commodity * new_account_default_commodity;
+ const gnc_commodity * new_account_default_commodity;
GNCAccountType new_account_default_type;
};
@@ -146,7 +146,7 @@
const gchar * account_online_id_value,
gboolean auto_create,
const gchar * account_human_description,
- gnc_commodity * new_account_default_commodity,
+ const gnc_commodity * new_account_default_commodity,
GNCAccountType new_account_default_type,
Account * default_selection,
gboolean * ok_pressed)
@@ -257,6 +257,7 @@
break;
case GNC_RESPONSE_NEW:
gnc_import_add_account(picker);
+ ok_pressed_retval = TRUE;
break;
default:
ok_pressed_retval = FALSE;
Modified: gnucash/trunk/src/import-export/import-account-matcher.h
===================================================================
--- gnucash/trunk/src/import-export/import-account-matcher.h 2011-03-13 00:02:38 UTC (rev 20407)
+++ gnucash/trunk/src/import-export/import-account-matcher.h 2011-03-13 00:02:53 UTC (rev 20408)
@@ -93,7 +93,7 @@
const gchar * account_online_id_value,
gboolean auto_create,
const gchar * account_human_description,
- gnc_commodity * new_account_default_commodity,
+ const gnc_commodity * new_account_default_commodity,
GNCAccountType new_account_default_type,
Account * default_selection,
gboolean * ok_pressed
More information about the gnucash-changes
mailing list