diff --git a/src/gnome/dialog-tax-info.c b/src/gnome/dialog-tax-info.c index 97a06b1a1d..9d5ad76cda 100644 --- a/src/gnome/dialog-tax-info.c +++ b/src/gnome/dialog-tax-info.c @@ -1155,12 +1155,14 @@ identity_edit_clicked_cb (GtkButton *button, alignment = gtk_alignment_new(1.00, 0.50, 1.00, 0.00); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0); gtk_container_add (GTK_CONTAINER (alignment), label); - table = gtk_table_new (3, 2, FALSE); - gtk_table_attach_defaults (GTK_TABLE (table), alignment, 0, 1, 0, 1); + table = gtk_grid_new (); + gtk_grid_attach (GTK_GRID(table), alignment, 0, 0, 1, 1); + alignment = gtk_alignment_new(0.00, 0.50, 1.00, 0.00); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0); gtk_container_add (GTK_CONTAINER (alignment), name_entry); - gtk_table_attach_defaults (GTK_TABLE (table), alignment, 1, 2, 0, 1); + gtk_grid_attach (GTK_GRID(table), alignment, 1, 0, 1, 1); + store = gtk_list_store_new (1, G_TYPE_STRING); gtk_list_store_clear(store); types = ti_dialog->entity_type_infos; @@ -1194,18 +1196,22 @@ identity_edit_clicked_cb (GtkButton *button, alignment = gtk_alignment_new(1.00, 0.50, 1.00, 0.00); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0); gtk_container_add (GTK_CONTAINER (alignment), label); - gtk_table_attach_defaults (GTK_TABLE (table), alignment, 0, 1, 1, 2); + gtk_grid_attach (GTK_GRID(table), alignment, 0, 1, 1, 1); + alignment = gtk_alignment_new(0.00, 0.50, 1.00, 0.00); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0); gtk_container_add (GTK_CONTAINER (alignment), type_combo); - gtk_table_attach_defaults (GTK_TABLE (table), alignment, 1, 2, 1, 2); + gtk_grid_attach (GTK_GRID(table), alignment, 1, 1, 1, 1); + label = gtk_label_new (_("CAUTION: If you set TXF categories, and later change 'Type', you will need to manually reset those categories one at a time")); + gtk_label_set_max_width_chars (GTK_LABEL (label), 50); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); gnc_label_set_alignment (label, 0.50, 0.50); alignment = gtk_alignment_new(0.50, 0.50, 1.00, 0.00); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 6, 4, 4); gtk_container_add (GTK_CONTAINER (alignment), label); - gtk_table_attach_defaults (GTK_TABLE (table), alignment, 0, 2, 2, 3); + gtk_grid_attach (GTK_GRID(table), alignment, 0, 2, 2, 1); + gtk_container_add (GTK_CONTAINER (content_area), table); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_APPLY); g_signal_connect (G_OBJECT (dialog), "response", @@ -1269,9 +1275,9 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog) builder = gtk_builder_new(); gnc_builder_add_from_file (builder, "dialog-tax-info.glade", "copy_spin_adj"); - gnc_builder_add_from_file (builder, "dialog-tax-info.glade", "Tax Information Dialog"); + gnc_builder_add_from_file (builder, "dialog-tax-info.glade", "tax_information_dialog"); - dialog = GTK_WIDGET(gtk_builder_get_object (builder, "Tax Information Dialog")); + dialog = GTK_WIDGET(gtk_builder_get_object (builder, "tax_information_dialog")); ti_dialog->dialog = dialog; initialize_getters (); diff --git a/src/gnome/gtkbuilder/dialog-tax-info.glade b/src/gnome/gtkbuilder/dialog-tax-info.glade index 7b16160c4e..b3f85b8818 100644 --- a/src/gnome/gtkbuilder/dialog-tax-info.glade +++ b/src/gnome/gtkbuilder/dialog-tax-info.glade @@ -1,30 +1,36 @@ - + + - - - + + + 1 + 100 + 1 + 1 + + False Income Tax Information dialog - + True False + vertical 6 - + True False end - gtk-cancel + _Cancel True True True False - False - True + True False @@ -34,13 +40,12 @@ - gtk-ok + _OK True True True False - False - True + True False @@ -57,9 +62,10 @@ - + True False + vertical True @@ -69,7 +75,7 @@ True False - 0 + start <b>Income Tax Identity</b> True True @@ -92,11 +98,9 @@ 4 12 - + True False - 3 - 2 True @@ -108,7 +112,7 @@ True False - 1 + start Name: True True @@ -117,7 +121,8 @@ - GTK_FILL + 0 + 0 @@ -131,7 +136,6 @@ True False - 1 Type: True True @@ -140,9 +144,8 @@ + 0 1 - 2 - GTK_FILL @@ -157,14 +160,12 @@ True False - 0 1 - 2 - GTK_FILL + 0 @@ -176,28 +177,27 @@ 12 - gtk-edit + _Edit True True False Click to change Tax Name and/or Tax Type. - False - True + center + True - 2 + 0 2 - 3 - - + 2 True False + start 0 0 0 @@ -206,16 +206,12 @@ True False - 0 1 - 2 1 - 2 - GTK_FILL @@ -235,19 +231,20 @@ - + True True - + True False 6 + vertical True False - 0 + start <b>_Accounts</b> True True @@ -264,26 +261,29 @@ False 12 - + True False + vertical - + True False - 2 - 2 _Income True True False - False + start True True True + + 0 + 0 + @@ -291,14 +291,14 @@ True True False - False + start True True income_radio 1 - 2 + 0 @@ -307,14 +307,14 @@ True True False - False + start True True income_radio + 0 1 - 2 @@ -323,16 +323,14 @@ True True False - False + start True True income_radio 1 - 2 1 - 2 @@ -346,8 +344,6 @@ True True - automatic - automatic in @@ -360,7 +356,7 @@ - + True False 3 @@ -380,7 +376,6 @@ True False - 1 Accounts Selected: center @@ -422,56 +417,17 @@ - + True False + _Select Subaccounts True True True 3 - False - - - True - False - 0 - 0 - - - True - False - 2 - - - True - False - gtk-add - - - False - False - 0 - - - - - True - False - _Select Subaccounts - True - - - False - False - 1 - - - - - - + True False @@ -502,20 +458,22 @@ - + True False 6 + vertical 12 - + True False + vertical True False - 0 + start <b>Account Tax Information</b> True @@ -536,7 +494,7 @@ True True False - False + start True True @@ -556,15 +514,16 @@ - + True False False + vertical True False - 0 + start <b>_TXF Categories</b> True True @@ -576,54 +535,42 @@ - + True True + 5 + 5 + True + True + vertical + 200 True False + True + True 12 True - False - automatic - automatic + True + 5 + 5 + True + True in True True + True + True True True - - - - - - - True - True - - - - - True - False - 12 - - - True - False - automatic - automatic - in - - - False - False - word + + + @@ -634,9 +581,42 @@ True + + + True + False + True + True + 12 + + + True + True + 5 + 5 + True + True + in + + + True + True + True + False + word + + + + + + + True + True + + - True + False True 1 @@ -649,20 +629,20 @@ - + True False 30 - + True False False + vertical True False - 0 <b>Payer Name Source</b> True @@ -683,7 +663,7 @@ True True False - False + start True True @@ -706,7 +686,7 @@ True True False - False + start True True current_account_button @@ -727,15 +707,15 @@ - + True False False + vertical True False - 0 <b>Copy Number</b> True @@ -756,8 +736,6 @@ True False False - True - True copy_spin_adj 1 @@ -803,10 +781,4 @@ ok_button - - 1 - 100 - 1 - 1 -