This patch just changes the white space to be of a consistent format.

This commit is contained in:
Robert Fewell 2014-09-19 16:30:28 +01:00 committed by Geert Janssens
parent ba1f8cb1c6
commit ea03301651
9 changed files with 675 additions and 683 deletions

View File

@ -491,14 +491,10 @@ get_filter_times (CsvExportInfo *info)
else else
{ {
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.start_date_today))) if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.start_date_today)))
{
info->csvd.start_time = gnc_time64_get_today_start(); info->csvd.start_time = gnc_time64_get_today_start();
}
else else
{
info->csvd.start_time = 0; info->csvd.start_time = 0;
} }
}
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.end_date_choose))) if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.end_date_choose)))
{ {
@ -509,15 +505,11 @@ get_filter_times (CsvExportInfo *info)
else else
{ {
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.start_date_today))) if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(info->csvd.start_date_today)))
{
info->csvd.end_time = gnc_time64_get_today_end(); info->csvd.end_time = gnc_time64_get_today_end();
}
else else
{
info->csvd.end_time = gnc_time (NULL); info->csvd.end_time = gnc_time (NULL);
} }
} }
}
/******************************************************* /*******************************************************
@ -573,7 +565,7 @@ csv_export_start_date_cb (GtkWidget *radio, gpointer user_data)
} }
name = gtk_buildable_get_name (GTK_BUILDABLE(radio)); name = gtk_buildable_get_name (GTK_BUILDABLE(radio));
active = ( g_strcmp0(name, g_strdup("start_date_choose")) == 0 ? 1 : 0 ); active = (g_strcmp0 (name, "start_date_choose") == 0 ? 1 : 0 );
gtk_widget_set_sensitive (info->csvd.start_date, active); gtk_widget_set_sensitive (info->csvd.start_date, active);
get_filter_times (info); get_filter_times (info);
} }
@ -600,7 +592,7 @@ csv_export_end_date_cb (GtkWidget *radio, gpointer user_data)
} }
name = gtk_buildable_get_name (GTK_BUILDABLE(radio)); name = gtk_buildable_get_name (GTK_BUILDABLE(radio));
active = ( g_strcmp0(name, g_strdup("end_date_choose")) == 0 ? 1 : 0 ); active = (g_strcmp0 (name, "end_date_choose") == 0 ? 1 : 0 );
gtk_widget_set_sensitive (info->csvd.end_date, active); gtk_widget_set_sensitive (info->csvd.end_date, active);
get_filter_times (info); get_filter_times (info);
} }