Remove some white space and tabs from dialog-options.c

This commit is contained in:
Robert Fewell 2018-07-22 12:39:44 +01:00
parent 5ad584ca3b
commit 5c90f677e5

View File

@ -67,7 +67,7 @@
/* This static indicates the debugging module that this .o belongs to. */ /* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = GNC_MOD_GUI; static QofLogModule log_module = GNC_MOD_GUI;
#define DIALOG_OPTIONS_CM_CLASS "dialog-options" #define DIALOG_OPTIONS_CM_CLASS "dialog-options"
#define DIALOG_BOOK_OPTIONS_CM_CLASS "dialog-book-options" #define DIALOG_BOOK_OPTIONS_CM_CLASS "dialog-book-options"
#define GNC_PREFS_GROUP "dialogs.options" #define GNC_PREFS_GROUP "dialogs.options"
@ -105,7 +105,7 @@ struct gnc_option_win
gpointer close_cb_data; gpointer close_cb_data;
/* Hold onto this for a complete reset */ /* Hold onto this for a complete reset */
GNCOptionDB * option_db; GNCOptionDB *option_db;
/* Hold on to this to unregister the right class */ /* Hold on to this to unregister the right class */
const char *component_class; const char *component_class;
@ -696,8 +696,7 @@ gnc_set_default_gain_loss_account_widget(gnc_commodity *commodity)
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW( gtk_tree_view_set_headers_visible (GTK_TREE_VIEW(
book_currency_data->default_gain_loss_account_widget), book_currency_data->default_gain_loss_account_widget),
TRUE); TRUE);
col = col = gnc_tree_view_add_text_column(GNC_TREE_VIEW(
gnc_tree_view_add_text_column(GNC_TREE_VIEW(
book_currency_data->default_gain_loss_account_widget), book_currency_data->default_gain_loss_account_widget),
_("Currency"), /* title */ _("Currency"), /* title */
"commodity", /* pref name */ "commodity", /* pref name */
@ -713,8 +712,7 @@ gnc_set_default_gain_loss_account_widget(gnc_commodity *commodity)
gnc_tree_view_account_column_add_color (GNC_TREE_VIEW_ACCOUNT( gnc_tree_view_account_column_add_color (GNC_TREE_VIEW_ACCOUNT(
book_currency_data->default_gain_loss_account_widget), col); book_currency_data->default_gain_loss_account_widget), col);
col = col = gnc_tree_view_add_toggle_column(GNC_TREE_VIEW(
gnc_tree_view_add_toggle_column(GNC_TREE_VIEW(
book_currency_data->default_gain_loss_account_widget), book_currency_data->default_gain_loss_account_widget),
_("Placeholder"), _("Placeholder"),
/* Translators: This string has a context prefix; the /* Translators: This string has a context prefix; the
@ -1918,7 +1916,7 @@ gnc_options_dialog_build_contents (GNCOptionWin *propertybox,
} }
/********************************************************************\ /********************************************************************\
* gnc_options_dialog_build_contents_full * * gnc_options_dialog_build_contents_full *
* builds an options dialog given a property box and an options * * builds an options dialog given a property box and an options *
* database and make the dialog visible depending on the * * database and make the dialog visible depending on the *
* show_dialog flag * * show_dialog flag *
@ -2121,10 +2119,10 @@ gnc_options_register_stocks (void)
GtkStockItem items[] = GtkStockItem items[] =
{ {
{ GTK_STOCK_APPLY , "gnc_option_apply_button", 0, 0, NULL }, { GTK_STOCK_APPLY , "gnc_option_apply_button", 0, 0, NULL },
{ GTK_STOCK_HELP , "gnc_options_dialog_help", 0, 0, NULL }, { GTK_STOCK_HELP , "gnc_options_dialog_help", 0, 0, NULL },
{ GTK_STOCK_OK , "gnc_options_dialog_ok", 0, 0, NULL }, { GTK_STOCK_OK , "gnc_options_dialog_ok", 0, 0, NULL },
{ GTK_STOCK_CANCEL , "gnc_options_dialog_cancel", 0, 0, NULL }, { GTK_STOCK_CANCEL , "gnc_options_dialog_cancel", 0, 0, NULL },
}; };
if (done) if (done)
@ -3585,7 +3583,7 @@ gnc_option_set_ui_value_radiobutton (GNCOption *option, gboolean use_default,
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
// g_object_set_data(G_OBJECT(widget), "gnc_radiobutton_index", // g_object_set_data(G_OBJECT(widget), "gnc_radiobutton_index",
// GINT_TO_POINTER(index)); // GINT_TO_POINTER(index));
return FALSE; return FALSE;
} }
} }
@ -4322,8 +4320,8 @@ void gnc_options_ui_initialize (void)
struct scm_cb struct scm_cb
{ {
SCM apply_cb; SCM apply_cb;
SCM close_cb; SCM close_cb;
}; };
static void static void