diff --git a/ChangeLog b/ChangeLog index 346a508a27..4d4dbb51b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-06-13 Dave Peticolas + * src/gnome/dialog-utils.c (gnc_glade_lookup_widget): new func + + * src/gnome/dialog-tax-info.c: use libglade + * src/gnome/dialog-style-sheet.c: use libglade 2001-06-13 James LewisMoss diff --git a/po/POTFILES.in b/po/POTFILES.in index 460beb13ca..91156afa5a 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -32,6 +32,7 @@ src/gnome/glade/commodity_strings.c src/gnome/glade/price_strings.c src/gnome/glade/report_strings.c src/gnome/glade/stocks_strings.c +src/gnome/glade/tax_strings.c src/gnome/glade/userpass_strings.c src/gnome/gnc-commodity-edit.c src/gnome/gnc-datedelta.c diff --git a/src/gnome/dialog-dup-trans.c b/src/gnome/dialog-dup-trans.c index dc1c2707fe..00bc6ae215 100644 --- a/src/gnome/dialog-dup-trans.c +++ b/src/gnome/dialog-dup-trans.c @@ -26,7 +26,7 @@ #include #include -#include "glade-gnc-dialogs.h" +#include "dialog-utils.h" #include "gnc-dateedit.h" #include "gnc-engine-util.h" #include "gnc-ui.h" @@ -75,11 +75,12 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog, time_t date, const char *num_str) { GtkWidget *dialog; - GtkObject *dtdo; + GladeXML *xml; - dialog = create_Duplicate_Transaction_Dialog (); + xml = gnc_glade_xml_new ("register.glade", "Duplicate Transaction Dialog"); + + dialog = glade_xml_get_widget (xml, "Duplicate Transaction Dialog"); dt_dialog->dialog = dialog; - dtdo = GTK_OBJECT (dialog); /* parent */ if (parent != NULL) @@ -94,7 +95,7 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog, GtkWidget *hbox; date_edit = gnc_date_edit_new (date, FALSE, FALSE); - hbox = gtk_object_get_data (dtdo, "date_hbox"); + hbox = glade_xml_get_widget (xml, "date_hbox"); gtk_widget_show (date_edit); gtk_box_pack_end (GTK_BOX (hbox), date_edit, TRUE, TRUE, 0); @@ -105,7 +106,7 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog, GtkWidget *num_spin; long int num; - num_spin = gtk_object_get_data (dtdo, "num_spin"); + num_spin = glade_xml_get_widget (xml, "num_spin"); dt_dialog->num_edit = num_spin; gnome_dialog_editable_enters (GNOME_DIALOG (dialog), diff --git a/src/gnome/dialog-tax-info.c b/src/gnome/dialog-tax-info.c index d551043ab4..e6cea400e4 100644 --- a/src/gnome/dialog-tax-info.c +++ b/src/gnome/dialog-tax-info.c @@ -28,8 +28,6 @@ #include "account-tree.h" #include "dialog-utils.h" -#include "glade-gnc-dialogs.h" -#include "glade-support.h" #include "gnc-component-manager.h" #include "gnc-engine-util.h" #include "gnc-ui.h" @@ -136,7 +134,7 @@ gnc_tax_info_set_changed (TaxInfoDialog *ti_dialog, gboolean changed) { GtkWidget *button; - button = lookup_widget (ti_dialog->dialog, "apply_button"); + button = gnc_glade_lookup_widget (ti_dialog->dialog, "apply_button"); gtk_widget_set_sensitive (button, changed); ti_dialog->changed = changed; @@ -538,8 +536,8 @@ gnc_tax_info_update_accounts (TaxInfoDialog *ti_dialog) num_accounts = g_list_length (accounts); - label = lookup_widget (ti_dialog->dialog, "num_accounts_label"); - frame = lookup_widget (ti_dialog->dialog, "tax_info_frame"); + label = gnc_glade_lookup_widget (ti_dialog->dialog, "num_accounts_label"); + frame = gnc_glade_lookup_widget (ti_dialog->dialog, "tax_info_frame"); string = g_strdup_printf ("%d", num_accounts); gtk_label_set_text (GTK_LABEL (label), string); @@ -625,12 +623,13 @@ txf_code_select_row_cb (GtkCList *clist, gtk_editable_delete_text (ge, 0, -1); gtk_editable_insert_text (ge, text, strlen (text), &pos); - scroll = lookup_widget (GTK_WIDGET (clist), "help_scroll"); + scroll = gnc_glade_lookup_widget (GTK_WIDGET (clist), "help_scroll"); adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (scroll)); gtk_adjustment_set_value (adj, 0.0); - frame = lookup_widget (GTK_WIDGET (clist), "payer_name_source_frame"); + frame = gnc_glade_lookup_widget (GTK_WIDGET (clist), + "payer_name_source_frame"); if (txf_info->payer_name_source) { @@ -667,7 +666,8 @@ tax_related_toggled_cb (GtkToggleButton *togglebutton, on = gtk_toggle_button_get_active (togglebutton); - frame = lookup_widget (GTK_WIDGET (togglebutton), "txf_categories_frame"); + frame = gnc_glade_lookup_widget (GTK_WIDGET (togglebutton), + "txf_categories_frame"); gtk_widget_set_sensitive (frame, on); gnc_tax_info_set_changed (ti_dialog, TRUE); @@ -687,8 +687,11 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog) { GtkWidget *dialog; GtkObject *tido; + GladeXML *xml; - dialog = create_Tax_Information_Dialog (); + xml = gnc_glade_xml_new ("tax.glade", "Tax Information Dialog"); + + dialog = glade_xml_get_widget (xml, "Tax Information Dialog"); ti_dialog->dialog = dialog; tido = GTK_OBJECT (dialog); @@ -723,13 +726,13 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog) GtkWidget *clist; GtkWidget *text; - button = lookup_widget (dialog, "tax_related_button"); + button = glade_xml_get_widget (xml, "tax_related_button"); ti_dialog->tax_related_button = button; gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (tax_related_toggled_cb), ti_dialog); - text = lookup_widget (dialog, "txf_help_text"); + text = glade_xml_get_widget (xml, "txf_help_text"); gtk_text_set_word_wrap (GTK_TEXT (text), TRUE); ti_dialog->txf_help_text = text; @@ -745,17 +748,17 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog) gtk_widget_set_usize (text, 0, (font->ascent + font->descent) * 5 + 6); } - clist = lookup_widget (dialog, "txf_category_clist"); + clist = glade_xml_get_widget (xml, "txf_category_clist"); gtk_clist_column_titles_passive (GTK_CLIST (clist)); ti_dialog->txf_category_clist = clist; gtk_signal_connect (GTK_OBJECT (clist), "select-row", GTK_SIGNAL_FUNC (txf_code_select_row_cb), ti_dialog); - button = lookup_widget (dialog, "current_account_button"); + button = glade_xml_get_widget (xml, "current_account_button"); ti_dialog->current_account_button = button; - button = lookup_widget (dialog, "parent_account_button"); + button = glade_xml_get_widget (xml, "parent_account_button"); ti_dialog->parent_account_button = button; gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -792,10 +795,10 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog) gtk_widget_show (ti_dialog->account_tree); - scroll = gtk_object_get_data (tido, "account_scroll"); + scroll = glade_xml_get_widget (xml, "account_scroll"); gtk_container_add (GTK_CONTAINER (scroll), ti_dialog->account_tree); - income_radio = lookup_widget (dialog, "income_radio"); + income_radio = glade_xml_get_widget (xml, "income_radio"); gtk_signal_connect (GTK_OBJECT (income_radio), "toggled", GTK_SIGNAL_FUNC (gnc_tax_info_income_cb), ti_dialog); @@ -805,7 +808,7 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog) { GtkWidget *button; - button = lookup_widget (dialog, "select_subaccounts_button"); + button = glade_xml_get_widget (xml, "select_subaccounts_button"); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (select_subaccounts_clicked), ti_dialog); diff --git a/src/gnome/dialog-utils.c b/src/gnome/dialog-utils.c index 139b837476..b6c1a31187 100644 --- a/src/gnome/dialog-utils.c +++ b/src/gnome/dialog-utils.c @@ -872,3 +872,16 @@ gnc_glade_xml_new (const char *filename, const char *root) return xml; } + +GtkWidget * +gnc_glade_lookup_widget (GtkWidget *widget, const char *name) +{ + GladeXML *xml; + + if (!widget || !name) return NULL; + + xml = glade_get_widget_tree (widget); + if (!xml) return NULL; + + return glade_xml_get_widget (xml, name); +} diff --git a/src/gnome/dialog-utils.h b/src/gnome/dialog-utils.h index e2a6b6ad37..d6b67da91a 100644 --- a/src/gnome/dialog-utils.h +++ b/src/gnome/dialog-utils.h @@ -90,5 +90,6 @@ void gnc_clist_set_check (GtkCList *list, int row, int col, gboolean checked); void gnc_clist_columns_autosize (GtkCList *list); GladeXML * gnc_glade_xml_new (const char *filename, const char *root); +GtkWidget * gnc_glade_lookup_widget (GtkWidget *widget, const char *name); #endif diff --git a/src/gnome/glade-gnc-dialogs.c b/src/gnome/glade-gnc-dialogs.c index 1e8f5aae58..b2550ee51b 100644 --- a/src/gnome/glade-gnc-dialogs.c +++ b/src/gnome/glade-gnc-dialogs.c @@ -5774,407 +5774,3 @@ create_Report_Window (void) return Report_Window; } -GtkWidget* -create_Tax_Information_Dialog (void) -{ - GtkWidget *Tax_Information_Dialog; - GtkWidget *dialog_vbox14; - GtkWidget *hbox81; - GtkWidget *account_frame; - GtkWidget *vbox96; - GtkWidget *hbox97; - GSList *tax_info_account_type_group = NULL; - GtkWidget *income_radio; - GtkWidget *expense_radio; - GtkWidget *account_scroll; - GtkWidget *hbox98; - GtkWidget *label847733; - GtkWidget *num_accounts_label; - GtkWidget *select_subaccounts_button; - GtkWidget *tax_info_frame; - GtkWidget *vbox92; - GtkWidget *tax_related_button; - GtkWidget *hseparator1; - GtkWidget *txf_categories_frame; - GtkWidget *vbox113; - GtkWidget *scrolledwindow28; - GtkWidget *txf_category_clist; - GtkWidget *label847734; - GtkWidget *label847735; - GtkWidget *help_scroll; - GtkWidget *txf_help_text; - GtkWidget *payer_name_source_frame; - GtkWidget *vbox97; - GSList *payer_name_source_group = NULL; - GtkWidget *current_account_button; - GtkWidget *parent_account_button; - GtkWidget *dialog_action_area14; - GtkWidget *button73; - GtkWidget *apply_button; - GtkWidget *button75; - - Tax_Information_Dialog = gnome_dialog_new (_("Tax Information"), NULL); - gtk_object_set_data (GTK_OBJECT (Tax_Information_Dialog), "Tax_Information_Dialog", Tax_Information_Dialog); - gtk_window_set_policy (GTK_WINDOW (Tax_Information_Dialog), TRUE, TRUE, FALSE); - - dialog_vbox14 = GNOME_DIALOG (Tax_Information_Dialog)->vbox; - gtk_object_set_data (GTK_OBJECT (Tax_Information_Dialog), "dialog_vbox14", dialog_vbox14); - gtk_widget_show (dialog_vbox14); - - hbox81 = gtk_hbox_new (FALSE, 2); - gtk_widget_ref (hbox81); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hbox81", hbox81, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox81); - gtk_box_pack_start (GTK_BOX (dialog_vbox14), hbox81, TRUE, TRUE, 0); - - account_frame = gtk_frame_new (_("Accounts")); - gtk_widget_ref (account_frame); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "account_frame", account_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (account_frame); - gtk_box_pack_start (GTK_BOX (hbox81), account_frame, TRUE, TRUE, 0); - - vbox96 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox96); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox96", vbox96, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox96); - gtk_container_add (GTK_CONTAINER (account_frame), vbox96); - - hbox97 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox97); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hbox97", hbox97, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox97); - gtk_box_pack_start (GTK_BOX (vbox96), hbox97, FALSE, FALSE, 2); - gtk_container_set_border_width (GTK_CONTAINER (hbox97), 3); - - income_radio = gtk_radio_button_new_with_label (tax_info_account_type_group, _("Income")); - tax_info_account_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (income_radio)); - gtk_widget_ref (income_radio); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "income_radio", income_radio, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (income_radio); - gtk_box_pack_start (GTK_BOX (hbox97), income_radio, FALSE, FALSE, 0); - - expense_radio = gtk_radio_button_new_with_label (tax_info_account_type_group, _("Expense")); - tax_info_account_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (expense_radio)); - gtk_widget_ref (expense_radio); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "expense_radio", expense_radio, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (expense_radio); - gtk_box_pack_start (GTK_BOX (hbox97), expense_radio, FALSE, FALSE, 0); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (expense_radio), TRUE); - - account_scroll = gtk_scrolled_window_new (NULL, NULL); - gtk_widget_ref (account_scroll); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "account_scroll", account_scroll, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (account_scroll); - gtk_box_pack_start (GTK_BOX (vbox96), account_scroll, TRUE, TRUE, 0); - gtk_container_set_border_width (GTK_CONTAINER (account_scroll), 3); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (account_scroll), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); - - hbox98 = gtk_hbox_new (FALSE, 2); - gtk_widget_ref (hbox98); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hbox98", hbox98, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox98); - gtk_box_pack_start (GTK_BOX (vbox96), hbox98, FALSE, FALSE, 0); - gtk_container_set_border_width (GTK_CONTAINER (hbox98), 3); - - label847733 = gtk_label_new (_("Accounts Selected:")); - gtk_widget_ref (label847733); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "label847733", label847733, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label847733); - gtk_box_pack_start (GTK_BOX (hbox98), label847733, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label847733), 1, 0.5); - - num_accounts_label = gtk_label_new (_("0")); - gtk_widget_ref (num_accounts_label); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "num_accounts_label", num_accounts_label, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (num_accounts_label); - gtk_box_pack_start (GTK_BOX (hbox98), num_accounts_label, FALSE, FALSE, 0); - - select_subaccounts_button = gtk_button_new_with_label (_("Select Subaccounts")); - gtk_widget_ref (select_subaccounts_button); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "select_subaccounts_button", select_subaccounts_button, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (select_subaccounts_button); - gtk_box_pack_start (GTK_BOX (vbox96), select_subaccounts_button, FALSE, FALSE, 0); - gtk_container_set_border_width (GTK_CONTAINER (select_subaccounts_button), 3); - - tax_info_frame = gtk_frame_new (_("Tax Information")); - gtk_widget_ref (tax_info_frame); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "tax_info_frame", tax_info_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (tax_info_frame); - gtk_box_pack_start (GTK_BOX (hbox81), tax_info_frame, TRUE, TRUE, 0); - gtk_widget_set_sensitive (tax_info_frame, FALSE); - - vbox92 = gtk_vbox_new (FALSE, 3); - gtk_widget_ref (vbox92); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox92", vbox92, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox92); - gtk_container_add (GTK_CONTAINER (tax_info_frame), vbox92); - gtk_container_set_border_width (GTK_CONTAINER (vbox92), 3); - - tax_related_button = gtk_check_button_new_with_label (_("Tax Related")); - gtk_widget_ref (tax_related_button); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "tax_related_button", tax_related_button, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (tax_related_button); - gtk_box_pack_start (GTK_BOX (vbox92), tax_related_button, FALSE, FALSE, 0); - - hseparator1 = gtk_hseparator_new (); - gtk_widget_ref (hseparator1); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hseparator1", hseparator1, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hseparator1); - gtk_box_pack_start (GTK_BOX (vbox92), hseparator1, FALSE, FALSE, 6); - - txf_categories_frame = gtk_frame_new (_("TXF Categories")); - gtk_widget_ref (txf_categories_frame); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "txf_categories_frame", txf_categories_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (txf_categories_frame); - gtk_box_pack_start (GTK_BOX (vbox92), txf_categories_frame, TRUE, TRUE, 0); - gtk_widget_set_sensitive (txf_categories_frame, FALSE); - - vbox113 = gtk_vbox_new (FALSE, 2); - gtk_widget_ref (vbox113); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox113", vbox113, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox113); - gtk_container_add (GTK_CONTAINER (txf_categories_frame), vbox113); - gtk_container_set_border_width (GTK_CONTAINER (vbox113), 3); - - scrolledwindow28 = gtk_scrolled_window_new (NULL, NULL); - gtk_widget_ref (scrolledwindow28); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "scrolledwindow28", scrolledwindow28, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (scrolledwindow28); - gtk_box_pack_start (GTK_BOX (vbox113), scrolledwindow28, TRUE, TRUE, 0); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow28), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); - - txf_category_clist = gtk_clist_new (2); - gtk_widget_ref (txf_category_clist); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "txf_category_clist", txf_category_clist, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (txf_category_clist); - gtk_container_add (GTK_CONTAINER (scrolledwindow28), txf_category_clist); - gtk_clist_set_column_width (GTK_CLIST (txf_category_clist), 0, 80); - gtk_clist_set_column_width (GTK_CLIST (txf_category_clist), 1, 80); - gtk_clist_set_selection_mode (GTK_CLIST (txf_category_clist), GTK_SELECTION_BROWSE); - gtk_clist_column_titles_show (GTK_CLIST (txf_category_clist)); - - label847734 = gtk_label_new (_("Form")); - gtk_widget_ref (label847734); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "label847734", label847734, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label847734); - gtk_clist_set_column_widget (GTK_CLIST (txf_category_clist), 0, label847734); - - label847735 = gtk_label_new (_("Description")); - gtk_widget_ref (label847735); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "label847735", label847735, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label847735); - gtk_clist_set_column_widget (GTK_CLIST (txf_category_clist), 1, label847735); - - help_scroll = gtk_scrolled_window_new (NULL, NULL); - gtk_widget_ref (help_scroll); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "help_scroll", help_scroll, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (help_scroll); - gtk_box_pack_start (GTK_BOX (vbox113), help_scroll, FALSE, FALSE, 0); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (help_scroll), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); - - txf_help_text = gtk_text_new (NULL, NULL); - gtk_widget_ref (txf_help_text); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "txf_help_text", txf_help_text, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (txf_help_text); - gtk_container_add (GTK_CONTAINER (help_scroll), txf_help_text); - - payer_name_source_frame = gtk_frame_new (_("Payer Name Source")); - gtk_widget_ref (payer_name_source_frame); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "payer_name_source_frame", payer_name_source_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (payer_name_source_frame); - gtk_box_pack_start (GTK_BOX (vbox92), payer_name_source_frame, FALSE, FALSE, 0); - - vbox97 = gtk_vbox_new (FALSE, 2); - gtk_widget_ref (vbox97); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox97", vbox97, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox97); - gtk_container_add (GTK_CONTAINER (payer_name_source_frame), vbox97); - gtk_container_set_border_width (GTK_CONTAINER (vbox97), 3); - - current_account_button = gtk_radio_button_new_with_label (payer_name_source_group, _("Current Account")); - payer_name_source_group = gtk_radio_button_group (GTK_RADIO_BUTTON (current_account_button)); - gtk_widget_ref (current_account_button); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "current_account_button", current_account_button, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (current_account_button); - gtk_box_pack_start (GTK_BOX (vbox97), current_account_button, FALSE, FALSE, 0); - - parent_account_button = gtk_radio_button_new_with_label (payer_name_source_group, _("Parent Account")); - payer_name_source_group = gtk_radio_button_group (GTK_RADIO_BUTTON (parent_account_button)); - gtk_widget_ref (parent_account_button); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "parent_account_button", parent_account_button, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (parent_account_button); - gtk_box_pack_start (GTK_BOX (vbox97), parent_account_button, FALSE, FALSE, 0); - - dialog_action_area14 = GNOME_DIALOG (Tax_Information_Dialog)->action_area; - gtk_object_set_data (GTK_OBJECT (Tax_Information_Dialog), "dialog_action_area14", dialog_action_area14); - gtk_widget_show (dialog_action_area14); - gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area14), GTK_BUTTONBOX_END); - gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area14), 8); - - gnome_dialog_append_button (GNOME_DIALOG (Tax_Information_Dialog), GNOME_STOCK_BUTTON_OK); - button73 = g_list_last (GNOME_DIALOG (Tax_Information_Dialog)->buttons)->data; - gtk_widget_ref (button73); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "button73", button73, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button73); - GTK_WIDGET_SET_FLAGS (button73, GTK_CAN_DEFAULT); - - gnome_dialog_append_button (GNOME_DIALOG (Tax_Information_Dialog), GNOME_STOCK_BUTTON_APPLY); - apply_button = g_list_last (GNOME_DIALOG (Tax_Information_Dialog)->buttons)->data; - gtk_widget_ref (apply_button); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "apply_button", apply_button, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (apply_button); - GTK_WIDGET_SET_FLAGS (apply_button, GTK_CAN_DEFAULT); - - gnome_dialog_append_button (GNOME_DIALOG (Tax_Information_Dialog), GNOME_STOCK_BUTTON_CLOSE); - button75 = g_list_last (GNOME_DIALOG (Tax_Information_Dialog)->buttons)->data; - gtk_widget_ref (button75); - gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "button75", button75, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button75); - GTK_WIDGET_SET_FLAGS (button75, GTK_CAN_DEFAULT); - - return Tax_Information_Dialog; -} - -GtkWidget* -create_Duplicate_Transaction_Dialog (void) -{ - GtkWidget *Duplicate_Transaction_Dialog; - GtkWidget *dialog_vbox15; - GtkWidget *frame41; - GtkWidget *hbox84; - GtkWidget *vbox94; - GtkWidget *label847669; - GtkWidget *label847670; - GtkWidget *vbox95; - GtkWidget *date_hbox; - GtkObject *num_spin_adj; - GtkWidget *num_spin; - GtkWidget *dialog_action_area15; - GtkWidget *button76; - GtkWidget *button77; - - Duplicate_Transaction_Dialog = gnome_dialog_new (_("Duplicate Transaction"), NULL); - gtk_object_set_data (GTK_OBJECT (Duplicate_Transaction_Dialog), "Duplicate_Transaction_Dialog", Duplicate_Transaction_Dialog); - gtk_window_set_modal (GTK_WINDOW (Duplicate_Transaction_Dialog), TRUE); - gtk_window_set_policy (GTK_WINDOW (Duplicate_Transaction_Dialog), FALSE, FALSE, FALSE); - gnome_dialog_close_hides (GNOME_DIALOG (Duplicate_Transaction_Dialog), TRUE); - - dialog_vbox15 = GNOME_DIALOG (Duplicate_Transaction_Dialog)->vbox; - gtk_object_set_data (GTK_OBJECT (Duplicate_Transaction_Dialog), "dialog_vbox15", dialog_vbox15); - gtk_widget_show (dialog_vbox15); - - frame41 = gtk_frame_new (_("Transaction Information")); - gtk_widget_ref (frame41); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "frame41", frame41, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame41); - gtk_box_pack_start (GTK_BOX (dialog_vbox15), frame41, TRUE, TRUE, 0); - - hbox84 = gtk_hbox_new (FALSE, 2); - gtk_widget_ref (hbox84); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "hbox84", hbox84, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox84); - gtk_container_add (GTK_CONTAINER (frame41), hbox84); - gtk_container_set_border_width (GTK_CONTAINER (hbox84), 3); - - vbox94 = gtk_vbox_new (TRUE, 5); - gtk_widget_ref (vbox94); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "vbox94", vbox94, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox94); - gtk_box_pack_start (GTK_BOX (hbox84), vbox94, FALSE, FALSE, 0); - - label847669 = gtk_label_new (_("Date:")); - gtk_widget_ref (label847669); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "label847669", label847669, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label847669); - gtk_box_pack_start (GTK_BOX (vbox94), label847669, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label847669), 1, 0.5); - - label847670 = gtk_label_new (_("Num:")); - gtk_widget_ref (label847670); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "label847670", label847670, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label847670); - gtk_box_pack_start (GTK_BOX (vbox94), label847670, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label847670), 1, 0.5); - - vbox95 = gtk_vbox_new (TRUE, 5); - gtk_widget_ref (vbox95); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "vbox95", vbox95, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox95); - gtk_box_pack_start (GTK_BOX (hbox84), vbox95, TRUE, TRUE, 0); - - date_hbox = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (date_hbox); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "date_hbox", date_hbox, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (date_hbox); - gtk_box_pack_start (GTK_BOX (vbox95), date_hbox, TRUE, TRUE, 0); - - num_spin_adj = gtk_adjustment_new (0, 0, 100000, 1, 10, 10); - num_spin = gtk_spin_button_new (GTK_ADJUSTMENT (num_spin_adj), 1, 0); - gtk_widget_ref (num_spin); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "num_spin", num_spin, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (num_spin); - gtk_box_pack_start (GTK_BOX (vbox95), num_spin, FALSE, FALSE, 0); - - dialog_action_area15 = GNOME_DIALOG (Duplicate_Transaction_Dialog)->action_area; - gtk_object_set_data (GTK_OBJECT (Duplicate_Transaction_Dialog), "dialog_action_area15", dialog_action_area15); - gtk_widget_show (dialog_action_area15); - gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area15), GTK_BUTTONBOX_END); - gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area15), 8); - - gnome_dialog_append_button (GNOME_DIALOG (Duplicate_Transaction_Dialog), GNOME_STOCK_BUTTON_OK); - button76 = g_list_last (GNOME_DIALOG (Duplicate_Transaction_Dialog)->buttons)->data; - gtk_widget_ref (button76); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "button76", button76, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button76); - GTK_WIDGET_SET_FLAGS (button76, GTK_CAN_DEFAULT); - - gnome_dialog_append_button (GNOME_DIALOG (Duplicate_Transaction_Dialog), GNOME_STOCK_BUTTON_CANCEL); - button77 = g_list_last (GNOME_DIALOG (Duplicate_Transaction_Dialog)->buttons)->data; - gtk_widget_ref (button77); - gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "button77", button77, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button77); - GTK_WIDGET_SET_FLAGS (button77, GTK_CAN_DEFAULT); - - return Duplicate_Transaction_Dialog; -} - diff --git a/src/gnome/glade-gnc-dialogs.h b/src/gnome/glade-gnc-dialogs.h index c340dd1e5a..3593054a1b 100644 --- a/src/gnome/glade-gnc-dialogs.h +++ b/src/gnome/glade-gnc-dialogs.h @@ -17,5 +17,3 @@ GtkWidget* create_Transfer_Dialog (void); GtkWidget* create_Progress_Dialog (void); GtkWidget* create_Help_Window (void); GtkWidget* create_Report_Window (void); -GtkWidget* create_Tax_Information_Dialog (void); -GtkWidget* create_Duplicate_Transaction_Dialog (void); diff --git a/src/gnome/glade/Makefile.am b/src/gnome/glade/Makefile.am index 253cf33c69..9f0870a5cc 100644 --- a/src/gnome/glade/Makefile.am +++ b/src/gnome/glade/Makefile.am @@ -2,15 +2,19 @@ gladedir = $(GNC_GLADE_DIR) glade_DATA = \ commodity.glade \ price.glade \ + register.glade \ report.glade \ stocks.glade \ + tax.glade \ userpass.glade STRING_FILES = \ commodity_strings.c \ price_strings.c \ + register_strings.c \ report_strings.c \ stocks.glade \ + tax.glade \ userpass_strings.c EXTRA_DIST = $(glade_DATA) $(STRING_FILES) diff --git a/src/gnome/glade/register.glade b/src/gnome/glade/register.glade new file mode 100644 index 0000000000..a2f2a1d4a0 --- /dev/null +++ b/src/gnome/glade/register.glade @@ -0,0 +1,200 @@ + + + + + Glade + glade + + + + C + True + True + False + False + False + False + True + register_strings.c + + + + GnomeDialog + Duplicate Transaction Dialog + Duplicate Transaction + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + True + False + False + False + False + True + + + GtkVBox + GnomeDialog:vbox + dialog-vbox15 + False + 8 + + 4 + True + True + + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area15 + GTK_BUTTONBOX_END + 8 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button76 + True + True + GNOME_STOCK_BUTTON_OK + + + + GtkButton + button77 + True + True + GNOME_STOCK_BUTTON_CANCEL + + + + + GtkFrame + frame41 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + True + True + + + + GtkHBox + hbox84 + 3 + False + 2 + + + GtkVBox + vbox94 + True + 5 + + 0 + False + False + + + + GtkLabel + label847669 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkLabel + label847670 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + False + False + + + + + + GtkVBox + vbox95 + True + 5 + + 0 + True + True + + + + GtkHBox + date_hbox + False + 0 + + 0 + True + True + + + + Placeholder + + + + + GtkSpinButton + num_spin + True + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 0 + 0 + 100000 + 1 + 10 + 10 + + 0 + False + False + + + + + + + + + diff --git a/src/gnome/glade/register_strings.c b/src/gnome/glade/register_strings.c new file mode 100644 index 0000000000..b2af11dd5b --- /dev/null +++ b/src/gnome/glade/register_strings.c @@ -0,0 +1,10 @@ +/* + * Translatable strings file generated by Glade. + * Add this file to your project's POTFILES.in. + * DO NOT compile it as part of your application. + */ + +gchar *s = N_("Duplicate Transaction"); +gchar *s = N_("Transaction Information"); +gchar *s = N_("Date:"); +gchar *s = N_("Num:"); diff --git a/src/gnome/glade/tax.glade b/src/gnome/glade/tax.glade new file mode 100644 index 0000000000..2ed7163f47 --- /dev/null +++ b/src/gnome/glade/tax.glade @@ -0,0 +1,436 @@ + + + + + Glade + glade + + + + C + True + True + False + False + False + False + True + tax_strings.c + + + + GnomeDialog + Tax Information Dialog + Tax Information + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + True + False + False + False + + + GtkVBox + GnomeDialog:vbox + dialog-vbox14 + False + 8 + + 4 + True + True + + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area14 + GTK_BUTTONBOX_END + 8 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button73 + True + True + GNOME_STOCK_BUTTON_OK + + + + GtkButton + apply_button + True + True + GNOME_STOCK_BUTTON_APPLY + + + + GtkButton + button75 + True + True + GNOME_STOCK_BUTTON_CLOSE + + + + + GtkHBox + hbox81 + False + 2 + + 0 + True + True + + + + GtkFrame + account_frame + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + True + True + + + + GtkVBox + vbox96 + False + 0 + + + GtkHBox + hbox97 + 3 + False + 0 + + 2 + False + False + + + + GtkRadioButton + income_radio + True + + False + True + tax_info_account_type + + 0 + False + False + + + + + GtkRadioButton + expense_radio + True + + True + True + tax_info_account_type + + 0 + False + False + + + + + + GtkScrolledWindow + account_scroll + 3 + GTK_POLICY_NEVER + GTK_POLICY_ALWAYS + GTK_UPDATE_CONTINUOUS + GTK_UPDATE_CONTINUOUS + + 0 + True + True + + + + Placeholder + + + + + GtkHBox + hbox98 + 3 + False + 2 + + 0 + False + False + + + + GtkLabel + label847733 + + GTK_JUSTIFY_CENTER + False + 1 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkLabel + num_accounts_label + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + + GtkButton + select_subaccounts_button + 3 + True + + + 0 + False + False + + + + + + + GtkFrame + tax_info_frame + False + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + True + True + + + + GtkVBox + vbox92 + 3 + False + 3 + + + GtkCheckButton + tax_related_button + True + + False + True + + 0 + False + False + + + + + GtkHSeparator + hseparator1 + + 6 + False + False + + + + + GtkFrame + txf_categories_frame + False + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + True + True + + + + GtkVBox + vbox113 + 3 + False + 2 + + + GtkScrolledWindow + scrolledwindow28 + GTK_POLICY_AUTOMATIC + GTK_POLICY_ALWAYS + GTK_UPDATE_CONTINUOUS + GTK_UPDATE_CONTINUOUS + + 0 + True + True + + + + GtkCList + txf_category_clist + True + 2 + 80,80 + GTK_SELECTION_BROWSE + True + GTK_SHADOW_IN + + + GtkLabel + CList:title + label847734 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CList:title + label847735 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + GtkScrolledWindow + help_scroll + GTK_POLICY_NEVER + GTK_POLICY_ALWAYS + GTK_UPDATE_CONTINUOUS + GTK_UPDATE_CONTINUOUS + + 0 + False + False + + + + GtkText + txf_help_text + True + False + + + + + + + + GtkFrame + payer_name_source_frame + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkVBox + vbox97 + 3 + False + 2 + + + GtkRadioButton + current_account_button + True + + False + True + payer_name_source + + 0 + False + False + + + + + GtkRadioButton + parent_account_button + True + + False + True + payer_name_source + + 0 + False + False + + + + + + + + + + + diff --git a/src/gnome/glade/tax_strings.c b/src/gnome/glade/tax_strings.c new file mode 100644 index 0000000000..d421ac8576 --- /dev/null +++ b/src/gnome/glade/tax_strings.c @@ -0,0 +1,21 @@ +/* + * Translatable strings file generated by Glade. + * Add this file to your project's POTFILES.in. + * DO NOT compile it as part of your application. + */ + +gchar *s = N_("Tax Information"); +gchar *s = N_("Accounts"); +gchar *s = N_("Income"); +gchar *s = N_("Expense"); +gchar *s = N_("Accounts Selected:"); +gchar *s = N_("0"); +gchar *s = N_("Select Subaccounts"); +gchar *s = N_("Tax Information"); +gchar *s = N_("Tax Related"); +gchar *s = N_("TXF Categories"); +gchar *s = N_("Form"); +gchar *s = N_("Description"); +gchar *s = N_("Payer Name Source"); +gchar *s = N_("Current Account"); +gchar *s = N_("Parent Account"); diff --git a/src/gnome/gnc-dialogs.glade b/src/gnome/gnc-dialogs.glade index 21fa91f383..7e516ccfbf 100644 --- a/src/gnome/gnc-dialogs.glade +++ b/src/gnome/gnc-dialogs.glade @@ -8507,598 +8507,4 @@ Click "Cancel" to abort the QIF import process. - - GnomeDialog - Tax Information Dialog - Tax Information - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - True - True - False - False - False - - - GtkVBox - GnomeDialog:vbox - dialog-vbox14 - False - 8 - - 4 - True - True - - - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area14 - GTK_BUTTONBOX_END - 8 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END - - - - GtkButton - button73 - True - True - GNOME_STOCK_BUTTON_OK - - - - GtkButton - apply_button - True - True - GNOME_STOCK_BUTTON_APPLY - - - - GtkButton - button75 - True - True - GNOME_STOCK_BUTTON_CLOSE - - - - - GtkHBox - hbox81 - False - 2 - - 0 - True - True - - - - GtkFrame - account_frame - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - True - True - - - - GtkVBox - vbox96 - False - 0 - - - GtkHBox - hbox97 - 3 - False - 0 - - 2 - False - False - - - - GtkRadioButton - income_radio - True - - False - True - tax_info_account_type - - 0 - False - False - - - - - GtkRadioButton - expense_radio - True - - True - True - tax_info_account_type - - 0 - False - False - - - - - - GtkScrolledWindow - account_scroll - 3 - GTK_POLICY_NEVER - GTK_POLICY_ALWAYS - GTK_UPDATE_CONTINUOUS - GTK_UPDATE_CONTINUOUS - - 0 - True - True - - - - Placeholder - - - - - GtkHBox - hbox98 - 3 - False - 2 - - 0 - False - False - - - - GtkLabel - label847733 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkLabel - num_accounts_label - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 0 - False - False - - - - - - GtkButton - select_subaccounts_button - 3 - True - - - 0 - False - False - - - - - - - GtkFrame - tax_info_frame - False - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - True - True - - - - GtkVBox - vbox92 - 3 - False - 3 - - - GtkCheckButton - tax_related_button - True - - False - True - - 0 - False - False - - - - - GtkHSeparator - hseparator1 - - 6 - False - False - - - - - GtkFrame - txf_categories_frame - False - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - True - True - - - - GtkVBox - vbox113 - 3 - False - 2 - - - GtkScrolledWindow - scrolledwindow28 - GTK_POLICY_AUTOMATIC - GTK_POLICY_ALWAYS - GTK_UPDATE_CONTINUOUS - GTK_UPDATE_CONTINUOUS - - 0 - True - True - - - - GtkCList - txf_category_clist - True - 2 - 80,80 - GTK_SELECTION_BROWSE - True - GTK_SHADOW_IN - - - GtkLabel - CList:title - label847734 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkLabel - CList:title - label847735 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - - - GtkScrolledWindow - help_scroll - GTK_POLICY_NEVER - GTK_POLICY_ALWAYS - GTK_UPDATE_CONTINUOUS - GTK_UPDATE_CONTINUOUS - - 0 - False - False - - - - GtkText - txf_help_text - True - False - - - - - - - - GtkFrame - payer_name_source_frame - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - False - False - - - - GtkVBox - vbox97 - 3 - False - 2 - - - GtkRadioButton - current_account_button - True - - False - True - payer_name_source - - 0 - False - False - - - - - GtkRadioButton - parent_account_button - True - - False - True - payer_name_source - - 0 - False - False - - - - - - - - - - - - GnomeDialog - Duplicate Transaction Dialog - Duplicate Transaction - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - True - False - False - False - False - True - - - GtkVBox - GnomeDialog:vbox - dialog-vbox15 - False - 8 - - 4 - True - True - - - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area15 - GTK_BUTTONBOX_END - 8 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END - - - - GtkButton - button76 - True - True - GNOME_STOCK_BUTTON_OK - - - - GtkButton - button77 - True - True - GNOME_STOCK_BUTTON_CANCEL - - - - - GtkFrame - frame41 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - True - True - - - - GtkHBox - hbox84 - 3 - False - 2 - - - GtkVBox - vbox94 - True - 5 - - 0 - False - False - - - - GtkLabel - label847669 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkLabel - label847670 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 0 - 0 - - 0 - False - False - - - - - - GtkVBox - vbox95 - True - 5 - - 0 - True - True - - - - GtkHBox - date_hbox - False - 0 - - 0 - True - True - - - - Placeholder - - - - - GtkSpinButton - num_spin - True - 1 - 0 - False - GTK_UPDATE_ALWAYS - False - False - 0 - 0 - 100000 - 1 - 10 - 10 - - 0 - False - False - - - - - - - -