From 9e784b03e14023232dec7ec8558c77a73b1736c4 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sat, 21 Apr 2018 12:56:12 +0100 Subject: [PATCH] Remove white space and tabs from dialog-custom-report.c --- .../report-gnome/dialog-custom-report.c | 58 ++++++++----------- 1 file changed, 25 insertions(+), 33 deletions(-) diff --git a/gnucash/report/report-gnome/dialog-custom-report.c b/gnucash/report/report-gnome/dialog-custom-report.c index 14c1370b35..d2019821fd 100644 --- a/gnucash/report/report-gnome/dialog-custom-report.c +++ b/gnucash/report/report-gnome/dialog-custom-report.c @@ -116,7 +116,6 @@ close_custom_report_clicked_cb(GtkWidget* widget, gpointer data) custom_report_dialog_close_cb(NULL, crd); } - /******************************************************************** * update_report_list * @@ -156,7 +155,7 @@ update_report_list(GtkListStore *store, CustomReportDialog *crd) if (scm_is_list(rpt_guids)) { /* for all the report guids in the list, store them, with a reference, - in the gtkliststore */ + in the gtkliststore */ for (i = 0; !scm_is_null(rpt_guids); i++) { GncGUID *guid = guid_malloc (); @@ -179,7 +178,6 @@ update_report_list(GtkListStore *store, CustomReportDialog *crd) } } - static GtkTreeModel * create_and_fill_report_list(CustomReportDialog *crd) { @@ -192,7 +190,6 @@ create_and_fill_report_list(CustomReportDialog *crd) return GTK_TREE_MODEL (store); } - static void set_reports_view_and_model(CustomReportDialog *crd) { @@ -237,7 +234,6 @@ set_reports_view_and_model(CustomReportDialog *crd) g_object_unref(model); } - /************************************************************** * custom_report_run_report * @@ -319,8 +315,6 @@ custom_report_delete (SCM guid, CustomReportDialog *crd) g_free (report_name); } - - /******************************************************************** * get_custom_report_selection * @@ -359,7 +353,6 @@ get_custom_report_selection(CustomReportDialog *crd, return scm_from_utf8_string (guid_str); } - /************************************************************** * custom_report_list_view_row_activated_cb * @@ -393,7 +386,6 @@ custom_report_list_view_row_activated_cb(GtkTreeView *view, GtkTreePath *path, } } - /************************************************************** * custom_report_list_view_clicked_cb * @@ -439,7 +431,8 @@ custom_report_list_view_clicked_cb(GtkTreeView *view, GdkEventButton *event, gpo return FALSE; } -void custom_report_name_edited_cb(GtkCellRendererText *renderer, gchar *path, gchar *new_text, gpointer data) +void +custom_report_name_edited_cb(GtkCellRendererText *renderer, gchar *path, gchar *new_text, gpointer data) { CustomReportDialog *crd = data; SCM guid = get_custom_report_selection(crd, _("Unable to change report configuration name.")); @@ -455,16 +448,15 @@ void custom_report_name_edited_cb(GtkCellRendererText *renderer, gchar *path, gc else gnc_error_dialog (GTK_WINDOW (crd->dialog), "%s", _("A saved report configuration with this name already exists, please choose another name.") ); - - } -gboolean custom_report_query_tooltip_cb (GtkTreeView *view, - gint x, - gint y, - gboolean keyboard_mode, - GtkTooltip *tooltip, - gpointer data) +gboolean +custom_report_query_tooltip_cb (GtkTreeView *view, + gint x, + gint y, + gboolean keyboard_mode, + GtkTooltip *tooltip, + gpointer data) { CustomReportDialog *crd = data; GtkTreePath *path = NULL; @@ -495,9 +487,9 @@ gboolean custom_report_query_tooltip_cb (GtkTreeView *view, } /* Internal function that builds the dialog */ -static CustomReportDialog *gnc_ui_custom_report_internal(GncMainWindow * window) +static CustomReportDialog * +gnc_ui_custom_report_internal(GncMainWindow * window) { - GtkBuilder *builder; CustomReportDialog *crd; GtkTreeIter iter; @@ -532,40 +524,40 @@ static CustomReportDialog *gnc_ui_custom_report_internal(GncMainWindow * window) model = gtk_tree_view_get_model (GTK_TREE_VIEW (crd->reportview)); if (gtk_tree_model_get_iter_first (model, &iter)) { - /* saved reports available - -> hide the "no reports available" notification */ - gtk_widget_hide(no_report_notification); - } - else - { - /* hide the scrolled window of the report list */ - gtk_widget_hide(crd->reportview); - } + /* saved reports available + -> hide the "no reports available" notification */ + gtk_widget_hide(no_report_notification); + } + else + { + /* hide the scrolled window of the report list */ + gtk_widget_hide(crd->reportview); + } g_object_unref(G_OBJECT(builder)); return crd; } - /*********************************************************** * gnc_ui_custom_report * * this is the primary driver for the custom report dialog. ***********************************************************/ -void gnc_ui_custom_report(GncMainWindow * window) +void +gnc_ui_custom_report(GncMainWindow * window) { gnc_ui_custom_report_internal (window); } - /*********************************************************** * gnc_ui_custom_report_edit_name * * open the custom report dialog and highlight the given * report's name for editing. ***********************************************************/ -void gnc_ui_custom_report_edit_name (GncMainWindow * window, SCM scm_guid) +void +gnc_ui_custom_report_edit_name (GncMainWindow * window, SCM scm_guid) { SCM is_custom_report; CustomReportDialog *crd = gnc_ui_custom_report_internal (window);