mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Change source files dialog-report-style-sheet.* for spaces and tabs
This commit is contained in:
parent
42094d3cc6
commit
f9e1f275d2
@ -128,10 +128,8 @@ gnc_style_sheet_options_apply_cb(GNCOptionWin * propertybox,
|
||||
g_free (iter->data);
|
||||
}
|
||||
g_list_free (results);
|
||||
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gnc_style_sheet_options_close_cb (GNCOptionWin * propertybox,
|
||||
gpointer user_data)
|
||||
@ -156,7 +154,6 @@ gnc_style_sheet_options_close_cb(GNCOptionWin * propertybox,
|
||||
g_free (ssi);
|
||||
}
|
||||
|
||||
|
||||
static ss_info *
|
||||
gnc_style_sheet_dialog_create (StyleSheetDialog * ss,
|
||||
gchar *name,
|
||||
@ -194,11 +191,9 @@ gnc_style_sheet_dialog_create(StyleSheetDialog * ss,
|
||||
GTK_WINDOW(gnc_style_sheet_dialog->toplevel));
|
||||
gtk_window_set_destroy_with_parent (GTK_WINDOW(window), TRUE);
|
||||
gtk_window_present (GTK_WINDOW(window));
|
||||
|
||||
return (ssinfo);
|
||||
}
|
||||
|
||||
|
||||
static SCM
|
||||
gnc_style_sheet_new (StyleSheetDialog * ssd)
|
||||
{
|
||||
@ -286,7 +281,6 @@ gnc_style_sheet_new (StyleSheetDialog * ssd)
|
||||
return (new_ss);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************
|
||||
* Style Sheet Selection Dialog *
|
||||
************************************************************/
|
||||
@ -297,7 +291,6 @@ gnc_style_sheet_select_dialog_add_one(StyleSheetDialog * ss,
|
||||
{
|
||||
SCM get_name;
|
||||
gchar *c_name;
|
||||
GtkTreeSelection *selection;
|
||||
GtkTreeIter iter;
|
||||
|
||||
get_name = scm_c_eval_string ("gnc:html-style-sheet-name");
|
||||
@ -319,7 +312,7 @@ gnc_style_sheet_select_dialog_add_one(StyleSheetDialog * ss,
|
||||
|
||||
if (select)
|
||||
{
|
||||
selection = gtk_tree_view_get_selection (ss->list_view);
|
||||
GtkTreeSelection * selection = gtk_tree_view_get_selection (ss->list_view);
|
||||
gtk_tree_selection_select_iter (selection, &iter);
|
||||
}
|
||||
}
|
||||
@ -355,7 +348,6 @@ gnc_style_sheet_select_dialog_event_cb (GtkWidget *widget,
|
||||
gnc_style_sheet_select_dialog_edit_cb (NULL, ss);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
gnc_style_sheet_select_dialog_new_cb (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
@ -372,16 +364,14 @@ gnc_style_sheet_select_dialog_new_cb (GtkWidget *widget, gpointer user_data)
|
||||
gnc_style_sheet_select_dialog_edit_cb (NULL, ss);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
gnc_style_sheet_select_dialog_edit_cb (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
StyleSheetDialog * ss = (StyleSheetDialog *)user_data;
|
||||
GtkTreeSelection * selection;
|
||||
GtkTreeSelection * selection = gtk_tree_view_get_selection (ss->list_view);
|
||||
GtkTreeModel * model;
|
||||
GtkTreeIter iter;
|
||||
|
||||
selection = gtk_tree_view_get_selection (ss->list_view);
|
||||
if (gtk_tree_selection_get_selected (selection, &model, &iter))
|
||||
{
|
||||
GtkTreeRowReference * row_ref;
|
||||
@ -411,11 +401,10 @@ void
|
||||
gnc_style_sheet_select_dialog_delete_cb (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
StyleSheetDialog * ss = (StyleSheetDialog *)user_data;
|
||||
GtkTreeSelection * selection;
|
||||
GtkTreeSelection * selection = gtk_tree_view_get_selection (ss->list_view);
|
||||
GtkTreeModel * model;
|
||||
GtkTreeIter iter;
|
||||
|
||||
selection = gtk_tree_view_get_selection (ss->list_view);
|
||||
if (gtk_tree_selection_get_selected (selection, &model, &iter))
|
||||
{
|
||||
ss_info * ssinfo;
|
||||
@ -437,7 +426,6 @@ gnc_style_sheet_select_dialog_delete_cb (GtkWidget *widget, gpointer user_data)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
gnc_style_sheet_select_dialog_close_cb (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
@ -475,7 +463,6 @@ gnc_style_sheet_select_dialog_destroy_cb (GtkWidget *widget, gpointer user_data)
|
||||
g_free (ss);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gnc_style_sheet_window_close_handler (gpointer user_data)
|
||||
{
|
||||
@ -486,7 +473,6 @@ gnc_style_sheet_window_close_handler (gpointer user_data)
|
||||
gtk_widget_destroy (ss->toplevel);
|
||||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
gnc_style_sheet_select_dialog_check_escape_cb (GtkWidget *widget,
|
||||
GdkEventKey *event,
|
||||
@ -501,7 +487,6 @@ gnc_style_sheet_select_dialog_check_escape_cb (GtkWidget *widget,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
static StyleSheetDialog *
|
||||
gnc_style_sheet_select_dialog_create (GtkWindow *parent)
|
||||
{
|
||||
@ -525,6 +510,7 @@ gnc_style_sheet_select_dialog_create(GtkWindow *parent)
|
||||
ss->list_store = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_POINTER);
|
||||
gtk_tree_view_set_model (ss->list_view, GTK_TREE_MODEL(ss->list_store));
|
||||
g_object_unref (ss->list_store);
|
||||
|
||||
renderer = gtk_cell_renderer_text_new ();
|
||||
gtk_tree_view_insert_column_with_attributes (ss->list_view, -1,
|
||||
_("Style Sheet Name"), renderer,
|
||||
@ -550,18 +536,14 @@ gnc_style_sheet_select_dialog_create(GtkWindow *parent)
|
||||
|
||||
gtk_builder_connect_signals_full (builder, gnc_builder_connect_full_func, ss);
|
||||
g_object_unref (G_OBJECT(builder));
|
||||
|
||||
return ss;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
gnc_style_sheet_dialog_open (GtkWindow *parent)
|
||||
{
|
||||
if (gnc_style_sheet_dialog)
|
||||
{
|
||||
gtk_window_present (GTK_WINDOW(gnc_style_sheet_dialog->toplevel));
|
||||
}
|
||||
else
|
||||
{
|
||||
gnc_style_sheet_dialog =
|
||||
@ -583,4 +565,3 @@ gnc_style_sheet_dialog_open(GtkWindow *parent)
|
||||
gtk_widget_show_all (gnc_style_sheet_dialog->toplevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user