gnucash maint: [assistant-stock-transaction] prettify the summary split info
Christopher Lam
clam at code.gnucash.org
Thu Aug 18 11:38:10 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/7e1cb7e2 (commit)
from https://github.com/Gnucash/gnucash/commit/c20d717b (commit)
commit 7e1cb7e2fa5d59611bef5b92fa9cef0cedc013e8
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Thu Aug 18 23:30:56 2022 +0800
[assistant-stock-transaction] prettify the summary split info
- set Memo column to expand, otherwise Credit column expands
- Debit & Credit columns are right-aligned and have padding
diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp
index f813dd0a5..d95ef30d2 100644
--- a/gnucash/gnome/assistant-stock-transaction.cpp
+++ b/gnucash/gnome/assistant-stock-transaction.cpp
@@ -1154,14 +1154,19 @@ get_treeview (GtkBuilder *builder, const gchar *treeview_label)
renderer = gtk_cell_renderer_text_new();
column = gtk_tree_view_column_new_with_attributes
(_("Memo"), renderer, "text", SPLIT_COL_MEMO, nullptr);
+ gtk_tree_view_column_set_expand (column, true);
gtk_tree_view_append_column(view, column);
renderer = gtk_cell_renderer_text_new();
+ gtk_cell_renderer_set_alignment (renderer, 1.0, 0.5);
+ gtk_cell_renderer_set_padding (renderer, 5, 0);
column = gtk_tree_view_column_new_with_attributes
(_("Debit"), renderer, "text", SPLIT_COL_DEBIT, nullptr);
gtk_tree_view_append_column(view, column);
renderer = gtk_cell_renderer_text_new();
+ gtk_cell_renderer_set_alignment (renderer, 1.0, 0.5);
+ gtk_cell_renderer_set_padding (renderer, 5, 0);
column = gtk_tree_view_column_new_with_attributes
(_("Credit"), renderer, "text", SPLIT_COL_CREDIT, nullptr);
gtk_tree_view_append_column(view, column);
Summary of changes:
gnucash/gnome/assistant-stock-transaction.cpp | 5 +++++
1 file changed, 5 insertions(+)
More information about the gnucash-changes
mailing list