From fc963f877cd725ee4e561530e2deb0f9bba6e515 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Tue, 1 May 2018 15:11:16 +0100 Subject: [PATCH] Change the right margin setting for reconcile totals Change the margin setting from the gtk box to the label so it looks correct when styled. --- gnucash/gnome/window-reconcile.c | 12 ++++++------ gnucash/gnome/window-reconcile2.c | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gnucash/gnome/window-reconcile.c b/gnucash/gnome/window-reconcile.c index 5491c484bb..9ed3dd8e62 100644 --- a/gnucash/gnome/window-reconcile.c +++ b/gnucash/gnome/window-reconcile.c @@ -1186,12 +1186,6 @@ gnc_reconcile_window_create_view_box(Account *account, gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION(3,12,0) - gtk_widget_set_margin_end (GTK_WIDGET(hbox), 10); -#else - gtk_widget_set_margin_right (GTK_WIDGET(hbox), 10); -#endif - label = gtk_label_new(_("Total:")); gnc_label_set_alignment(label, 1.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); @@ -1200,6 +1194,12 @@ gnc_reconcile_window_create_view_box(Account *account, gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); *total_save = label; +#if GTK_CHECK_VERSION(3,12,0) + gtk_widget_set_margin_end (GTK_WIDGET(label), 10); +#else + gtk_widget_set_margin_right (GTK_WIDGET(label), 10); +#endif + return vbox; } diff --git a/gnucash/gnome/window-reconcile2.c b/gnucash/gnome/window-reconcile2.c index aa089ae722..699f97d744 100644 --- a/gnucash/gnome/window-reconcile2.c +++ b/gnucash/gnome/window-reconcile2.c @@ -1154,6 +1154,12 @@ gnc_reconcile_window_create_view_box (Account *account, gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); *total_save = label; +#if GTK_CHECK_VERSION(3,12,0) + gtk_widget_set_margin_end (GTK_WIDGET(label), 10); +#else + gtk_widget_set_margin_right (GTK_WIDGET(label), 10); +#endif + return vbox; }