Skip to content

Commit

Permalink
Start of gnc-plugin-page-account-tree changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-IT committed Apr 7, 2024
1 parent 37aaae4 commit aef2b73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions gnucash/gnome-utils/window-main-summarybar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 6 additions & 2 deletions gnucash/gnome/gnc-plugin-page-account-tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit aef2b73

Please sign in to comment.