From aef2b73c21ac71a7e68875e3047643faaa69bfbe Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sat, 6 Apr 2024 13:06:51 +0100 Subject: [PATCH] Start of gnc-plugin-page-account-tree changes --- gnucash/gnome-utils/window-main-summarybar.c | 6 ++++++ gnucash/gnome/gnc-plugin-page-account-tree.cpp | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gnucash/gnome-utils/window-main-summarybar.c b/gnucash/gnome-utils/window-main-summarybar.c index 5290d9b7ceb..69ae46ceb09 100644 --- a/gnucash/gnome-utils/window-main-summarybar.c +++ b/gnucash/gnome-utils/window-main-summarybar.c @@ -670,9 +670,15 @@ gnc_main_window_summary_new (void) gnc_box_set_all_margins (GTK_BOX(retval->hbox), 2); gtk_box_append (GTK_BOX(retval->hbox), GTK_WIDGET(retval->totals_combo)); + gtk_box_set_spacing (GTK_BOX(retval->hbox), 5); + gtk_widget_set_visible (GTK_WIDGET(retval->totals_combo), TRUE); gtk_widget_set_visible (GTK_WIDGET(retval->hbox), TRUE); + gtk_widget_set_vexpand (GTK_WIDGET(retval->totals_combo), FALSE); + gtk_widget_set_hexpand (GTK_WIDGET(retval->totals_combo), TRUE); + gtk_widget_set_valign (GTK_WIDGET(retval->totals_combo), GTK_ALIGN_END); + g_signal_connect_swapped (G_OBJECT (retval->hbox), "destroy", G_CALLBACK (gnc_main_window_summary_destroy_cb), retval); diff --git a/gnucash/gnome/gnc-plugin-page-account-tree.cpp b/gnucash/gnome/gnc-plugin-page-account-tree.cpp index 671b74e3e84..adfb6df7677 100644 --- a/gnucash/gnome/gnc-plugin-page-account-tree.cpp +++ b/gnucash/gnome/gnc-plugin-page-account-tree.cpp @@ -634,6 +634,9 @@ gnc_plugin_page_account_tree_create_widget (GncPluginPage *plugin_page) gtk_widget_set_visible (GTK_WIDGET(scrolled_window), true); gtk_box_append (GTK_BOX(priv->widget), GTK_WIDGET(scrolled_window)); + gtk_widget_set_vexpand (GTK_WIDGET(scrolled_window), true); + gtk_widget_set_hexpand (GTK_WIDGET(scrolled_window), true); + tree_view = gnc_tree_view_account_new(FALSE); col = gnc_tree_view_find_column_by_name( GNC_TREE_VIEW(tree_view), "description"); @@ -677,6 +680,9 @@ gnc_plugin_page_account_tree_create_widget (GncPluginPage *plugin_page) gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW(scrolled_window), GTK_WIDGET(tree_view)); + gtk_widget_set_vexpand (GTK_WIDGET(tree_view), true); + gtk_widget_set_hexpand (GTK_WIDGET(tree_view), true); + priv->fd.tree_view = GNC_TREE_VIEW_ACCOUNT(priv->tree_view); gnc_tree_view_account_set_filter ( GNC_TREE_VIEW_ACCOUNT(tree_view), @@ -860,8 +866,6 @@ gnc_plugin_page_account_tree_save_page (GncPluginPage *plugin_page, LEAVE(" "); } - - /** Create a new account tree page based on the information saved * during a previous instantiation of gnucash. *