From ff70c67e5614421d7bb6bc48a480376282e40d13 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Wed, 21 Jun 2017 10:24:35 +0100 Subject: [PATCH] Files linked to assistant-stock-split.glade --- src/gnome/assistant-stock-split.c | 12 +- .../gtkbuilder/assistant-stock-split.glade | 240 +++++++++--------- 2 files changed, 130 insertions(+), 122 deletions(-) diff --git a/src/gnome/assistant-stock-split.c b/src/gnome/assistant-stock-split.c index 85d879e63d..5185b3a89f 100644 --- a/src/gnome/assistant-stock-split.c +++ b/src/gnome/assistant-stock-split.c @@ -534,8 +534,8 @@ gnc_stock_split_assistant_create (StockSplitInfo *info) GtkWidget *window; builder = gtk_builder_new(); - gnc_builder_add_from_file (builder , "assistant-stock-split.glade", "Stock Split Assistant"); - window = GTK_WIDGET(gtk_builder_get_object (builder, "Stock Split Assistant")); + gnc_builder_add_from_file (builder , "assistant-stock-split.glade", "stock_split_assistant"); + window = GTK_WIDGET(gtk_builder_get_object (builder, "stock_split_assistant")); info->window = window; /* Enable buttons on first, second, fourth and last page. */ @@ -605,7 +605,7 @@ gnc_stock_split_assistant_create (StockSplitInfo *info) info->description_entry = GTK_WIDGET(gtk_builder_get_object(builder, "description_entry")); date = gnc_date_edit_new (gnc_time (NULL), FALSE, FALSE); - gtk_table_attach_defaults (GTK_TABLE (table), date, 1, 2, 0, 1); + gtk_grid_attach (GTK_GRID(table), date, 1, 0, 1, 1); gtk_widget_show (date); info->date_edit = date; @@ -616,7 +616,7 @@ gnc_stock_split_assistant_create (StockSplitInfo *info) g_signal_connect (amount, "changed", G_CALLBACK (gnc_stock_split_details_valid_cb), info); gnc_amount_edit_set_evaluate_on_enter (GNC_AMOUNT_EDIT (amount), TRUE); - gtk_table_attach_defaults (GTK_TABLE (table), amount, 1, 2, 1, 2); + gtk_grid_attach (GTK_GRID(table), amount, 1, 1, 1, 1); gtk_widget_show (amount); info->distribution_edit = amount; @@ -629,7 +629,7 @@ gnc_stock_split_assistant_create (StockSplitInfo *info) g_signal_connect (amount, "changed", G_CALLBACK (gnc_stock_split_details_valid_cb), info); gnc_amount_edit_set_evaluate_on_enter (GNC_AMOUNT_EDIT (amount), TRUE); - gtk_table_attach_defaults (GTK_TABLE (table), amount, 1, 2, 5, 6); + gtk_grid_attach (GTK_GRID(table), amount, 1, 5, 1, 1); gtk_widget_show (amount); info->price_edit = amount; @@ -639,7 +639,7 @@ gnc_stock_split_assistant_create (StockSplitInfo *info) info->price_currency_edit = gnc_currency_edit_new(); gnc_currency_edit_set_currency (GNC_CURRENCY_EDIT(info->price_currency_edit), gnc_default_currency()); gtk_widget_show (info->price_currency_edit); - gtk_table_attach_defaults (GTK_TABLE (table), info->price_currency_edit, 1, 2, 6, 7); + gtk_grid_attach (GTK_GRID(table), info->price_currency_edit, 1, 6, 1, 1); } /* Cash page Widgets */ diff --git a/src/gnome/gtkbuilder/assistant-stock-split.glade b/src/gnome/gtkbuilder/assistant-stock-split.glade index e2119894f5..ed21c4581f 100644 --- a/src/gnome/gtkbuilder/assistant-stock-split.glade +++ b/src/gnome/gtkbuilder/assistant-stock-split.glade @@ -1,16 +1,22 @@ - + + - - - + + True + False + start 12 - - - + Stock Split Assistant + center + 500 + + + True + False This assistant will help you record a stock split or stock merger. True @@ -18,15 +24,19 @@ intro Stock Split Assistant + False - + True + False + 12 vertical True + False Select the account for which you want to record a stock split or merger. center @@ -40,31 +50,39 @@ True True - automatic - automatic True True + True + True + + + + False + True 1 Stock Split Account + False - + True + False vertical True + False Enter the date and the number of shares you gained or lost from the stock split or merger. For stock mergers (negative splits) use a negative value for the share distribution. You can also enter a description of the transaction, or accept the default one. center True @@ -76,131 +94,119 @@ - + True + False 6 - 7 - 2 - 6 12 + 6 True - 0 + False + start _Date: True center - GTK_FILL - + 0 + 0 True - 0 + False + start _Shares: True center + 0 1 - 2 - GTK_FILL - True - 0 + False + start Desc_ription: True center description_entry + 0 2 - 3 - GTK_FILL - True True - + Stock Split - True - True 1 - 2 2 - 3 - GTK_FILL - - + True + False - 2 + 0 3 - 4 - GTK_FILL - + 2 True + False If you want to record a stock price for the split, enter it below. You may safely leave it blank. True center True - 2 + 0 4 - 5 - GTK_FILL - + 2 True - 0 + False + start New _Price: True center + 0 5 - 6 - GTK_FILL - True - 0 + False + start Currenc_y: True center + 0 6 - 7 - GTK_FILL - @@ -213,23 +219,11 @@ - - True - - - - - - 1 - 2 - 6 - 7 - GTK_FILL - - + + False False 1 @@ -237,17 +231,20 @@ Stock Split Details + False - + True + False 6 vertical 12 True + False If you received a cash disbursement as a result of the stock split, enter the details of that payment here. Otherwise, just click `Forward'. center True @@ -259,67 +256,63 @@ - + True - 2 - 2 - 12 + False 6 + 12 True + False _Amount: True center - GTK_FILL - + 0 + 0 True + False _Memo: True center memo_entry + 0 1 - 2 - GTK_FILL - True True - + True + Cash In Lieu - True - True 1 - 2 1 - 2 - + True + False + True 1 - 2 - GTK_FILL - + 0 @@ -330,69 +323,50 @@ - + True - 2 - 2 + False 12 + True True + False <b>_Income Account</b> True True - GTK_FILL - + 0 + 0 True + False <b>A_sset Account</b> True True 1 - 2 - GTK_FILL - + 0 True + False + True 12 True False + True + True 3 - automatic - automatic - - - - - - - - 1 - 2 - - - - - True - - - True - False - 3 - automatic - automatic @@ -401,30 +375,64 @@ 1 - 2 1 - 2 + + + + + True + False + True + + + True + False + True + True + 3 + + + + + + + + 0 + 1 + True + True 2 Cash in Lieu + False True + False If you are finished creating the stock split or merger, press `Apply'. You may also press `Back' to review your choices, or `Cancel' to quit without making any changes. True confirm Stock Split Finish + False + + + + + False + + + False