Re-indentation of source code.

This re-indentation was done using astyle-1.24 using the following options:

 astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19627 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-10-03 12:27:44 +00:00
parent 752b94a8b9
commit a57ed88ee0
22 changed files with 179 additions and 155 deletions

View File

@ -1482,7 +1482,8 @@ GHashTable* gnc_g_hash_new_guid_numeric()
NULL, gnc_numeric_free); NULL, gnc_numeric_free);
} }
typedef struct { typedef struct
{
GHashTable *hash; GHashTable *hash;
GList **creation_errors; GList **creation_errors;
const SchedXaction *sx; const SchedXaction *sx;
@ -1685,7 +1686,8 @@ void gnc_sx_instantiate_cashflow(const SchedXaction* sx,
instantiate_cashflow_internal(sx, map, creation_errors, 1); instantiate_cashflow_internal(sx, map, creation_errors, 1);
} }
typedef struct { typedef struct
{
GHashTable *hash; GHashTable *hash;
GList **creation_errors; GList **creation_errors;
const GDate *range_start; const GDate *range_start;

View File

@ -111,11 +111,14 @@ static void * search(QofBook * book, const gchar *id, void * object, GNCIdType t
// now compare _exactly_ // now compare _exactly_
len = g_list_length (result); len = g_list_length (result);
if (result && (len>0)) { if (result && (len > 0))
{
result = g_list_first (result); result = g_list_first (result);
while (result) { while (result)
{
c = result->data; c = result->data;
if (strcmp(id,gncCustomerGetID(c)) == 0) { if (strcmp(id, gncCustomerGetID(c)) == 0)
{
// correct id found // correct id found
object = c; object = c;
break; break;

View File

@ -827,25 +827,44 @@ close_handler (gpointer data)
static const gchar * static const gchar *
type_label_to_new_button(const gchar* type_label) type_label_to_new_button(const gchar* type_label)
{ {
if (g_strcmp0(type_label, "Bill") == 0) { if (g_strcmp0(type_label, "Bill") == 0)
{
return _("New Bill"); return _("New Bill");
} else if (g_strcmp0(type_label, "Customer") == 0) { }
else if (g_strcmp0(type_label, "Customer") == 0)
{
return _("New Customer"); return _("New Customer");
} else if (g_strcmp0(type_label, "Employee") == 0) { }
else if (g_strcmp0(type_label, "Employee") == 0)
{
return _("New Employee"); return _("New Employee");
} else if (g_strcmp0(type_label, "Expense Voucher") == 0) { }
else if (g_strcmp0(type_label, "Expense Voucher") == 0)
{
return _("New Expense Voucher"); return _("New Expense Voucher");
} else if (g_strcmp0(type_label, "Invoice") == 0) { }
else if (g_strcmp0(type_label, "Invoice") == 0)
{
return _("New Invoice"); return _("New Invoice");
} else if (g_strcmp0(type_label, "Job") == 0) { }
else if (g_strcmp0(type_label, "Job") == 0)
{
return _("New Job"); return _("New Job");
} else if (g_strcmp0(type_label, "Order") == 0) { }
else if (g_strcmp0(type_label, "Order") == 0)
{
return _("New Order"); return _("New Order");
} else if (g_strcmp0(type_label, "Transaction") == 0) { }
else if (g_strcmp0(type_label, "Transaction") == 0)
{
return _("New Transaction"); return _("New Transaction");
} else if (g_strcmp0(type_label, "Vendor") == 0) { }
else if (g_strcmp0(type_label, "Vendor") == 0)
{
return _("New Vendor"); return _("New Vendor");
} else { }
else
{
PWARN("No translatable new-button label found for search type \"%s\", please add one into dialog-search.c!", type_label); PWARN("No translatable new-button label found for search type \"%s\", please add one into dialog-search.c!", type_label);
return _("New item"); return _("New item");
} }