From c229055150130837b07cb9ecc35fe86676a5501a Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Fri, 15 Jun 2001 22:50:50 +0000 Subject: [PATCH] 2001-06-15 Dave Peticolas * src/gnome/dialog-find-transactions.c: use libglade git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4697 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 2 + po/POTFILES.in | 1 + src/gnome/dialog-fincalc.h | 2 - src/gnome/dialog-find-transactions.c | 183 +-- src/gnome/dialog-find-transactions.h | 11 - src/gnome/dialog-print-check.c | 1 + src/gnome/dialog-print-check.h | 1 - src/gnome/glade-gnc-dialogs.c | 1044 ----------------- src/gnome/glade-gnc-dialogs.h | 1 - src/gnome/glade/Makefile.am | 2 + src/gnome/glade/find.glade | 1551 ++++++++++++++++++++++++++ src/gnome/glade/find_strings.c | 89 ++ src/gnome/gnc-dialogs.glade | 1530 ------------------------- src/gnome/print-session.h | 2 - 14 files changed, 1747 insertions(+), 2673 deletions(-) create mode 100644 src/gnome/glade/find.glade create mode 100644 src/gnome/glade/find_strings.c diff --git a/ChangeLog b/ChangeLog index 5bf84317c7..6897013c1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-06-15 Dave Peticolas + * src/gnome/dialog-find-transactions.c: use libglade + * src/guile/gnc.gwp: remove budgeting api * src/gnome/dialog-budget.[ch]: remove diff --git a/po/POTFILES.in b/po/POTFILES.in index fa0028c3d6..f59352c919 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -31,6 +31,7 @@ src/gnome/glade-support.c src/gnome/glade/account_strings.c src/gnome/glade/commodity_strings.c src/gnome/glade/fincalc_strings.c +src/gnome/glade/find_strings.c src/gnome/glade/help_strings.c src/gnome/glade/price_strings.c src/gnome/glade/progress_strings.c diff --git a/src/gnome/dialog-fincalc.h b/src/gnome/dialog-fincalc.h index b0f55e459d..b510e4d48b 100644 --- a/src/gnome/dialog-fincalc.h +++ b/src/gnome/dialog-fincalc.h @@ -27,8 +27,6 @@ #include -#include "glade-gnc-dialogs.h" - typedef struct _FinCalcDialog FinCalcDialog; FinCalcDialog * gnc_ui_fincalc_dialog_create(void); diff --git a/src/gnome/dialog-find-transactions.c b/src/gnome/dialog-find-transactions.c index 7352f364a0..472000f395 100644 --- a/src/gnome/dialog-find-transactions.c +++ b/src/gnome/dialog-find-transactions.c @@ -37,8 +37,6 @@ #include "account-tree.h" #include "dialog-find-transactions.h" #include "dialog-utils.h" -#include "glade-cb-gnc-dialogs.h" -#include "glade-gnc-dialogs.h" #include "gnc-amount-edit.h" #include "gnc-component-manager.h" #include "gnc-dateedit.h" @@ -128,6 +126,23 @@ struct _FindTransactionsDialog { }; +static void gnc_ui_find_transactions_dialog_ok_cb(GtkButton * button, + gpointer user_data); +static void gnc_ui_find_transactions_dialog_cancel_cb(GtkButton * button, + gpointer user_data); +static void gnc_ui_find_transactions_dialog_help_cb(GtkButton * button, + gpointer user_data); +static void +gnc_ui_find_transactions_dialog_early_date_toggle_cb(GtkToggleButton * button, + gpointer user_data); +static void +gnc_ui_find_transactions_dialog_late_date_toggle_cb(GtkToggleButton * button, + gpointer user_data); +static void +gnc_ui_find_transactions_dialog_search_type_cb(GtkToggleButton * tb, + gpointer user_data); + + static int gnc_find_dialog_close_cb(GnomeDialog *dialog, gpointer data) { FindTransactionsDialog * ftd = data; @@ -161,10 +176,38 @@ gnc_ui_find_transactions_dialog_create(xaccLedgerDisplay * orig_ledg) { GtkWidget *box; GtkWidget *edit; GtkWidget *notebook; + GladeXML *xml; gint page_num; - /* call the glade-defined creator */ - ftd->dialog = create_Find_Transactions(); + xml = gnc_glade_xml_new ("find.glade", "Find Transactions"); + + glade_xml_signal_connect_data + (xml, "gnc_ui_find_transactions_dialog_ok_cb", + GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_ok_cb), ftd); + + glade_xml_signal_connect_data + (xml, "gnc_ui_find_transactions_dialog_cancel_cb", + GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_cancel_cb), ftd); + + glade_xml_signal_connect_data + (xml, "gnc_ui_find_transactions_dialog_help_cb", + GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_help_cb), ftd); + + glade_xml_signal_connect_data + (xml, "gnc_ui_find_transactions_dialog_early_date_toggle_cb", + GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_early_date_toggle_cb), + ftd); + + glade_xml_signal_connect_data + (xml, "gnc_ui_find_transactions_dialog_late_date_toggle_cb", + GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_late_date_toggle_cb), + ftd); + + glade_xml_signal_connect_data + (xml, "gnc_ui_find_transactions_dialog_search_type_cb", + GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_search_type_cb), ftd); + + ftd->dialog = glade_xml_get_widget (xml, "Find Transactions"); if(orig_ledg) { ftd->q = xaccQueryCopy (xaccLedgerDisplayGetQuery (orig_ledg)); @@ -179,32 +222,32 @@ gnc_ui_find_transactions_dialog_create(xaccLedgerDisplay * orig_ledg) { ftd->search_type = 0; /* remove the tags page (unfinished) */ - notebook = gtk_object_get_data (GTK_OBJECT (ftd->dialog), "find_notebook"); - box = gtk_object_get_data (GTK_OBJECT (ftd->dialog), "tags_frame"); + notebook = glade_xml_get_widget (xml, "find_notebook"); + box = glade_xml_get_widget (xml, "tags_frame"); page_num = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), box); if (page_num >= 0) gtk_notebook_remove_page (GTK_NOTEBOOK (notebook), page_num); /* find the important widgets */ - ftd->new_search_radiobutton = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "new_search_radiobutton"); + ftd->new_search_radiobutton = + glade_xml_get_widget (xml, "new_search_radiobutton"); ftd->narrow_search_radiobutton = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "narrow_search_radiobutton"); + glade_xml_get_widget (xml, "narrow_search_radiobutton"); ftd->add_search_radiobutton = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "add_search_radiobutton"); + glade_xml_get_widget (xml, "add_search_radiobutton"); ftd->delete_search_radiobutton = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "delete_search_radiobutton"); + glade_xml_get_widget (xml, "delete_search_radiobutton"); ftd->match_accounts_scroller = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "account_match_scroller"); + glade_xml_get_widget (xml, "account_match_scroller"); ftd->match_accounts_picker = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "account_match_picker"); + glade_xml_get_widget (xml, "account_match_picker"); ftd->date_start_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "date_start_toggle"); + glade_xml_get_widget (xml, "date_start_toggle"); ftd->date_start_frame = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "date_start_frame"); + glade_xml_get_widget (xml, "date_start_frame"); ftd->date_start_entry = gnc_date_edit_new(time(NULL), FALSE, FALSE); gtk_container_add(GTK_CONTAINER(ftd->date_start_frame), @@ -212,9 +255,9 @@ gnc_ui_find_transactions_dialog_create(xaccLedgerDisplay * orig_ledg) { gtk_widget_set_sensitive(ftd->date_start_entry, FALSE); ftd->date_end_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "date_end_toggle"); + glade_xml_get_widget (xml, "date_end_toggle"); ftd->date_end_frame = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "date_end_frame"); + glade_xml_get_widget (xml, "date_end_frame"); ftd->date_end_entry = gnc_date_edit_new(time(NULL), FALSE, FALSE); gtk_container_add(GTK_CONTAINER(ftd->date_end_frame), @@ -222,81 +265,70 @@ gnc_ui_find_transactions_dialog_create(xaccLedgerDisplay * orig_ledg) { gtk_widget_set_sensitive(ftd->date_end_entry, FALSE); ftd->description_entry = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "description_entry"); + glade_xml_get_widget (xml, "description_entry"); ftd->description_case_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "description_case_toggle"); + glade_xml_get_widget (xml, "description_case_toggle"); ftd->description_regexp_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "description_regexp_toggle"); + glade_xml_get_widget (xml, "description_regexp_toggle"); ftd->number_entry = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "number_entry"); + glade_xml_get_widget (xml, "number_entry"); ftd->number_case_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "number_case_toggle"); + glade_xml_get_widget (xml, "number_case_toggle"); ftd->number_regexp_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "number_regexp_toggle"); + glade_xml_get_widget (xml, "number_regexp_toggle"); - ftd->credit_debit_picker = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "credit_debit_picker"); - ftd->amount_comp_picker = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "amount_comp_picker"); + ftd->credit_debit_picker = glade_xml_get_widget (xml, "credit_debit_picker"); + ftd->amount_comp_picker = glade_xml_get_widget (xml, "amount_comp_picker"); - box = gtk_object_get_data(GTK_OBJECT(ftd->dialog), "amount_box"); + box = glade_xml_get_widget (xml, "amount_box"); edit = gnc_amount_edit_new (); gtk_widget_show (edit); gtk_box_pack_start (GTK_BOX (box), edit, TRUE, TRUE, 0); ftd->amount_edit = edit; - ftd->memo_entry = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "memo_entry"); - ftd->memo_case_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "memo_case_toggle"); - ftd->memo_regexp_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "memo_regexp_toggle"); + ftd->memo_entry = glade_xml_get_widget (xml, "memo_entry"); + ftd->memo_case_toggle = glade_xml_get_widget (xml, "memo_case_toggle"); + ftd->memo_regexp_toggle = glade_xml_get_widget (xml, "memo_regexp_toggle"); - ftd->shares_comp_picker = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "shares_comp_picker"); + ftd->shares_comp_picker = glade_xml_get_widget (xml, "shares_comp_picker"); - box = gtk_object_get_data(GTK_OBJECT(ftd->dialog), "shares_box"); + box = glade_xml_get_widget (xml, "shares_box"); edit = gnc_amount_edit_new (); gtk_widget_show (edit); gtk_box_pack_start (GTK_BOX (box), edit, TRUE, TRUE, 0); ftd->shares_edit = edit; - ftd->price_comp_picker = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "price_comp_picker"); + ftd->price_comp_picker = glade_xml_get_widget (xml, "price_comp_picker"); - box = gtk_object_get_data(GTK_OBJECT(ftd->dialog), "price_box"); + box = glade_xml_get_widget (xml, "price_box"); edit = gnc_amount_edit_new (); gtk_widget_show (edit); gtk_box_pack_start (GTK_BOX (box), edit, TRUE, TRUE, 0); ftd->price_edit = edit; ftd->action_entry = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "action_entry"); + glade_xml_get_widget (xml, "action_entry"); ftd->action_case_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "action_case_toggle"); + glade_xml_get_widget (xml, "action_case_toggle"); ftd->action_regexp_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "action_regexp_toggle"); + glade_xml_get_widget (xml, "action_regexp_toggle"); ftd->cleared_cleared_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "cleared_cleared_toggle"); + glade_xml_get_widget (xml, "cleared_cleared_toggle"); ftd->cleared_reconciled_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "cleared_reconciled_toggle"); + glade_xml_get_widget (xml, "cleared_reconciled_toggle"); ftd->cleared_not_cleared_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "cleared_not_cleared_toggle"); + glade_xml_get_widget (xml, "cleared_not_cleared_toggle"); ftd->balance_balanced_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "balance_balanced_toggle"); + glade_xml_get_widget (xml, "balance_balanced_toggle"); ftd->balance_not_balanced_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), - "balance_not_balanced_toggle"); + glade_xml_get_widget(xml, "balance_not_balanced_toggle"); - ftd->tag_entry = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "tag_entry"); - ftd->tag_case_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "tag_case_toggle"); - ftd->tag_regexp_toggle = - gtk_object_get_data(GTK_OBJECT(ftd->dialog), "tag_regexp_toggle"); + ftd->tag_entry = glade_xml_get_widget (xml, "tag_entry"); + ftd->tag_case_toggle = glade_xml_get_widget (xml, "tag_case_toggle"); + ftd->tag_regexp_toggle = glade_xml_get_widget (xml, "tag_regexp_toggle"); /* add an account picker to the first tab */ ftd->account_tree = gnc_account_tree_new(); @@ -319,10 +351,6 @@ gnc_ui_find_transactions_dialog_create(xaccLedgerDisplay * orig_ledg) { gnc_option_menu_init(ftd->shares_comp_picker); gnc_option_menu_init(ftd->price_comp_picker); - /* set data so we can find the struct in callbacks */ - gtk_object_set_data(GTK_OBJECT(ftd->dialog), "find_transactions_structure", - ftd); - /* if there's no original query, make the narrow, add, delete * buttons inaccessible */ if(!ftd->q) { @@ -371,20 +399,17 @@ gnc_ui_find_transactions_dialog_destroy(FindTransactionsDialog * ftd) { * callbacks for radio button selections \********************************************************************/ -void +static void gnc_ui_find_transactions_dialog_search_type_cb(GtkToggleButton * tb, gpointer user_data) { + FindTransactionsDialog * ftd = user_data; GSList * buttongroup = gtk_radio_button_group(GTK_RADIO_BUTTON(tb)); - FindTransactionsDialog * ftd = - gtk_object_get_data(GTK_OBJECT(user_data), "find_transactions_structure"); - if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(tb))) { ftd->search_type = - g_slist_length(buttongroup) - g_slist_index(buttongroup, tb) - 1; + g_slist_length(buttongroup) - g_slist_index(buttongroup, tb) - 1; } - } @@ -392,11 +417,10 @@ gnc_ui_find_transactions_dialog_search_type_cb(GtkToggleButton * tb, * gnc_ui_find_transactions_dialog_cancel_cb \********************************************************************/ -void +static void gnc_ui_find_transactions_dialog_cancel_cb(GtkButton * button, gpointer user_data) { - FindTransactionsDialog * ftd = - gtk_object_get_data(GTK_OBJECT(user_data), "find_transactions_structure"); + FindTransactionsDialog * ftd = user_data; gnc_ui_find_transactions_dialog_destroy(ftd); } @@ -406,7 +430,7 @@ gnc_ui_find_transactions_dialog_cancel_cb(GtkButton * button, * gnc_ui_find_transactions_dialog_help_cb \********************************************************************/ -void +static void gnc_ui_find_transactions_dialog_help_cb(GtkButton * button, gpointer user_data) { helpWindow(NULL, NULL, HH_FIND_TRANSACTIONS); @@ -417,11 +441,10 @@ gnc_ui_find_transactions_dialog_help_cb(GtkButton * button, * gnc_ui_find_transactions_dialog_early_date_toggle_cb \********************************************************************/ -void +static void gnc_ui_find_transactions_dialog_early_date_toggle_cb(GtkToggleButton * button, gpointer user_data) { - FindTransactionsDialog * ftd = - gtk_object_get_data(GTK_OBJECT(user_data), "find_transactions_structure"); + FindTransactionsDialog * ftd = user_data; if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { gtk_widget_set_sensitive(GTK_WIDGET(ftd->date_start_entry), TRUE); @@ -436,11 +459,10 @@ gnc_ui_find_transactions_dialog_early_date_toggle_cb(GtkToggleButton * button, * gnc_ui_find_transactions_dialog_late_date_toggle_cb \********************************************************************/ -void +static void gnc_ui_find_transactions_dialog_late_date_toggle_cb(GtkToggleButton * button, - gpointer user_data) { - FindTransactionsDialog * ftd = - gtk_object_get_data(GTK_OBJECT(user_data), "find_transactions_structure"); + gpointer user_data) { + FindTransactionsDialog * ftd = user_data; if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { gtk_widget_set_sensitive(GTK_WIDGET(ftd->date_end_entry), TRUE); @@ -455,12 +477,10 @@ gnc_ui_find_transactions_dialog_late_date_toggle_cb(GtkToggleButton * button, * gnc_ui_find_transactions_dialog_ok_cb \********************************************************************/ -void +static void gnc_ui_find_transactions_dialog_ok_cb(GtkButton * button, gpointer user_data) { - GtkWidget * dialog = user_data; - FindTransactionsDialog * ftd = - gtk_object_get_data(GTK_OBJECT(dialog), "find_transactions_structure"); + FindTransactionsDialog * ftd = user_data; xaccLedgerDisplay *ledger; @@ -517,8 +537,7 @@ gnc_ui_find_transactions_dialog_ok_cb(GtkButton * button, gtk_entry_get_text(GTK_ENTRY(ftd->action_entry)); /* tag */ - tag_match_text = - gtk_entry_get_text(GTK_ENTRY(ftd->tag_entry)); + tag_match_text = ""; /* gtk_entry_get_text(GTK_ENTRY(ftd->tag_entry)); */ if(selected_accounts) { xaccQueryAddAccountMatch(q, selected_accounts, diff --git a/src/gnome/dialog-find-transactions.h b/src/gnome/dialog-find-transactions.h index 82945e8946..85ec07821f 100644 --- a/src/gnome/dialog-find-transactions.h +++ b/src/gnome/dialog-find-transactions.h @@ -37,16 +37,5 @@ FindTransactionsDialog * gnc_ui_find_transactions_dialog_create(xaccLedgerDisplay * ledger); void gnc_ui_find_transactions_dialog_destroy(FindTransactionsDialog * pcd); -void gnc_ui_find_transactions_dialog_ok_cb(GtkButton * button, - gpointer user_data); -void gnc_ui_find_transactions_dialog_cancel_cb(GtkButton * button, - gpointer user_data); - -SelectDateDialog * -gnc_ui_select_date_dialog_create(GtkWidget * w1, GtkWidget * w2, - GtkWidget * w3, char * ymd_format); -void gnc_ui_select_date_dialog_destroy(SelectDateDialog * sdd); -void gnc_ui_select_date_cancel_cb(GtkWidget * w, gpointer user_data); -void gnc_ui_select_date_ok_cb(GtkWidget * w, gpointer user_data); #endif diff --git a/src/gnome/dialog-print-check.c b/src/gnome/dialog-print-check.c index 1ff664ba09..17b8ed10ec 100644 --- a/src/gnome/dialog-print-check.c +++ b/src/gnome/dialog-print-check.c @@ -29,6 +29,7 @@ #include #include "messages.h" +#include "glade-gnc-dialogs.h" #include "dialog-print-check.h" #include "dialog-utils.h" #include "window-help.h" diff --git a/src/gnome/dialog-print-check.h b/src/gnome/dialog-print-check.h index 88a772d496..08352f8919 100644 --- a/src/gnome/dialog-print-check.h +++ b/src/gnome/dialog-print-check.h @@ -29,7 +29,6 @@ #include #include "print-session.h" -#include "glade-gnc-dialogs.h" typedef struct { GtkWidget * dialog; diff --git a/src/gnome/glade-gnc-dialogs.c b/src/gnome/glade-gnc-dialogs.c index b2bc336f85..63ba9a4a9c 100644 --- a/src/gnome/glade-gnc-dialogs.c +++ b/src/gnome/glade-gnc-dialogs.c @@ -671,1047 +671,3 @@ create_Print_Check_Dialog (void) return Print_Check_Dialog; } -GtkWidget* -create_Find_Transactions (void) -{ - GtkWidget *Find_Transactions; - GtkWidget *dialog_vbox7; - GtkWidget *find_notebook; - GtkWidget *frame6; - GtkWidget *match_accounts_vbox; - GtkWidget *hbox26; - GtkWidget *label751; - GtkWidget *account_match_picker; - GtkWidget *account_match_picker_menu; - GtkWidget *glade_menuitem; - GtkWidget *label743; - GtkWidget *account_match_scroller; - GtkWidget *label716; - GtkWidget *frame11; - GtkWidget *vbox79; - GtkWidget *label842; - GtkWidget *hbox71; - GtkWidget *vbox80; - GtkWidget *date_start_toggle; - GtkWidget *date_end_toggle; - GtkWidget *vbox81; - GtkWidget *date_start_frame; - GtkWidget *date_end_frame; - GtkWidget *label768; - GtkWidget *frame8; - GtkWidget *vbox16; - GtkWidget *label752; - GtkWidget *description_entry; - GtkWidget *vbox41; - GtkWidget *description_case_toggle; - GtkWidget *description_regexp_toggle; - GtkWidget *label718; - GtkWidget *frame15; - GtkWidget *vbox42; - GtkWidget *label761; - GtkWidget *number_entry; - GtkWidget *vbox43; - GtkWidget *number_case_toggle; - GtkWidget *number_regexp_toggle; - GtkWidget *label760; - GtkWidget *frame9; - GtkWidget *vbox18; - GtkWidget *hbox17; - GtkWidget *label753; - GtkWidget *credit_debit_picker; - GtkWidget *credit_debit_picker_menu; - GtkWidget *label726; - GtkWidget *hbox28; - GtkWidget *amount_comp_picker; - GtkWidget *amount_comp_picker_menu; - GtkWidget *amount_box; - GtkWidget *label750; - GtkWidget *label719; - GtkWidget *frame10; - GtkWidget *vbox22; - GtkWidget *label759; - GtkWidget *memo_entry; - GtkWidget *vbox40; - GtkWidget *memo_case_toggle; - GtkWidget *memo_regexp_toggle; - GtkWidget *label771; - GtkWidget *frame18; - GtkWidget *vbox45; - GtkWidget *label765; - GtkWidget *hbox31; - GtkWidget *shares_comp_picker; - GtkWidget *shares_comp_picker_menu; - GtkWidget *shares_box; - GtkWidget *label766; - GtkWidget *label764; - GtkWidget *frame19; - GtkWidget *vbox46; - GtkWidget *label769; - GtkWidget *hbox32; - GtkWidget *price_comp_picker; - GtkWidget *price_comp_picker_menu; - GtkWidget *price_box; - GtkWidget *label770; - GtkWidget *label767; - GtkWidget *frame20; - GtkWidget *vbox50; - GtkWidget *label772; - GtkWidget *action_entry; - GtkWidget *vbox51; - GtkWidget *action_case_toggle; - GtkWidget *action_regexp_toggle; - GtkWidget *label720; - GtkWidget *frame25; - GtkWidget *vbox61; - GtkWidget *label787; - GtkWidget *cleared_not_cleared_toggle; - GtkWidget *cleared_cleared_toggle; - GtkWidget *cleared_reconciled_toggle; - GtkWidget *label786; - GtkWidget *frame36; - GtkWidget *vbox87; - GtkWidget *label846; - GtkWidget *balance_balanced_toggle; - GtkWidget *balance_not_balanced_toggle; - GtkWidget *label843; - GtkWidget *tags_frame; - GtkWidget *vbox82; - GtkWidget *label844; - GtkWidget *tag_entry; - GtkWidget *vbox83; - GtkWidget *tag_case_toggle; - GtkWidget *tag_regexp_toggle; - GtkWidget *label845; - GtkWidget *hbox20; - GtkWidget *hbox23; - GtkWidget *frame12; - GtkWidget *vbox24; - GSList *vbox24_group = NULL; - GtkWidget *new_search_radiobutton; - GtkWidget *narrow_search_radiobutton; - GtkWidget *add_search_radiobutton; - GtkWidget *delete_search_radiobutton; - GtkWidget *dialog_action_area7; - GtkWidget *button26; - GtkWidget *button27; - GtkWidget *button28; - - Find_Transactions = gnome_dialog_new (_("Find Transactions"), NULL); - gtk_object_set_data (GTK_OBJECT (Find_Transactions), "Find_Transactions", Find_Transactions); - gtk_window_set_policy (GTK_WINDOW (Find_Transactions), TRUE, TRUE, FALSE); - - dialog_vbox7 = GNOME_DIALOG (Find_Transactions)->vbox; - gtk_object_set_data (GTK_OBJECT (Find_Transactions), "dialog_vbox7", dialog_vbox7); - gtk_widget_show (dialog_vbox7); - - find_notebook = gtk_notebook_new (); - gtk_widget_ref (find_notebook); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "find_notebook", find_notebook, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (find_notebook); - gtk_box_pack_start (GTK_BOX (dialog_vbox7), find_notebook, TRUE, TRUE, 0); - gtk_notebook_set_tab_pos (GTK_NOTEBOOK (find_notebook), GTK_POS_LEFT); - - frame6 = gtk_frame_new (_("Match Accounts")); - gtk_widget_ref (frame6); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame6", frame6, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame6); - gtk_container_add (GTK_CONTAINER (find_notebook), frame6); - - match_accounts_vbox = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (match_accounts_vbox); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "match_accounts_vbox", match_accounts_vbox, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (match_accounts_vbox); - gtk_container_add (GTK_CONTAINER (frame6), match_accounts_vbox); - gtk_container_set_border_width (GTK_CONTAINER (match_accounts_vbox), 5); - - hbox26 = gtk_hbox_new (FALSE, 5); - gtk_widget_ref (hbox26); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox26", hbox26, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox26); - gtk_box_pack_start (GTK_BOX (match_accounts_vbox), hbox26, FALSE, FALSE, 0); - - label751 = gtk_label_new (_("Find transactions affecting")); - gtk_widget_ref (label751); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label751", label751, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label751); - gtk_box_pack_start (GTK_BOX (hbox26), label751, FALSE, FALSE, 5); - - account_match_picker = gtk_option_menu_new (); - gtk_widget_ref (account_match_picker); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "account_match_picker", account_match_picker, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (account_match_picker); - gtk_box_pack_start (GTK_BOX (hbox26), account_match_picker, FALSE, FALSE, 0); - account_match_picker_menu = gtk_menu_new (); - glade_menuitem = gtk_menu_item_new_with_label (_("All")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (account_match_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("Any")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (account_match_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("None")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (account_match_picker_menu), glade_menuitem); - gtk_option_menu_set_menu (GTK_OPTION_MENU (account_match_picker), account_match_picker_menu); - gtk_option_menu_set_history (GTK_OPTION_MENU (account_match_picker), 1); - - label743 = gtk_label_new (_("selected accounts:")); - gtk_widget_ref (label743); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label743", label743, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label743); - gtk_box_pack_start (GTK_BOX (hbox26), label743, FALSE, FALSE, 0); - - account_match_scroller = gtk_scrolled_window_new (NULL, NULL); - gtk_widget_ref (account_match_scroller); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "account_match_scroller", account_match_scroller, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (account_match_scroller); - gtk_box_pack_start (GTK_BOX (match_accounts_vbox), account_match_scroller, TRUE, TRUE, 0); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (account_match_scroller), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - - label716 = gtk_label_new (_("Account")); - gtk_widget_ref (label716); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label716", label716, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label716); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 0), label716); - - frame11 = gtk_frame_new (_("Match Date")); - gtk_widget_ref (frame11); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame11", frame11, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame11); - gtk_container_add (GTK_CONTAINER (find_notebook), frame11); - - vbox79 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox79); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox79", vbox79, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox79); - gtk_container_add (GTK_CONTAINER (frame11), vbox79); - gtk_container_set_border_width (GTK_CONTAINER (vbox79), 5); - - label842 = gtk_label_new (_("Find transactions occurring in the date range:")); - gtk_widget_ref (label842); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label842", label842, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label842); - gtk_box_pack_start (GTK_BOX (vbox79), label842, FALSE, FALSE, 0); - gtk_label_set_justify (GTK_LABEL (label842), GTK_JUSTIFY_LEFT); - gtk_misc_set_alignment (GTK_MISC (label842), 7.45058e-09, 0.5); - - hbox71 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox71); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox71", hbox71, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox71); - gtk_box_pack_start (GTK_BOX (vbox79), hbox71, FALSE, FALSE, 0); - - vbox80 = gtk_vbox_new (TRUE, 0); - gtk_widget_ref (vbox80); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox80", vbox80, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox80); - gtk_box_pack_start (GTK_BOX (hbox71), vbox80, FALSE, FALSE, 0); - - date_start_toggle = gtk_check_button_new_with_label (_("Starting ")); - gtk_widget_ref (date_start_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "date_start_toggle", date_start_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (date_start_toggle); - gtk_box_pack_start (GTK_BOX (vbox80), date_start_toggle, FALSE, FALSE, 0); - - date_end_toggle = gtk_check_button_new_with_label (_("Ending ")); - gtk_widget_ref (date_end_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "date_end_toggle", date_end_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (date_end_toggle); - gtk_box_pack_start (GTK_BOX (vbox80), date_end_toggle, FALSE, FALSE, 0); - - vbox81 = gtk_vbox_new (TRUE, 0); - gtk_widget_ref (vbox81); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox81", vbox81, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox81); - gtk_box_pack_start (GTK_BOX (hbox71), vbox81, FALSE, FALSE, 0); - - date_start_frame = gtk_frame_new (NULL); - gtk_widget_ref (date_start_frame); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "date_start_frame", date_start_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (date_start_frame); - gtk_box_pack_start (GTK_BOX (vbox81), date_start_frame, TRUE, TRUE, 0); - gtk_frame_set_shadow_type (GTK_FRAME (date_start_frame), GTK_SHADOW_NONE); - - date_end_frame = gtk_frame_new (NULL); - gtk_widget_ref (date_end_frame); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "date_end_frame", date_end_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (date_end_frame); - gtk_box_pack_start (GTK_BOX (vbox81), date_end_frame, TRUE, TRUE, 0); - gtk_frame_set_shadow_type (GTK_FRAME (date_end_frame), GTK_SHADOW_NONE); - - label768 = gtk_label_new (_("Date")); - gtk_widget_ref (label768); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label768", label768, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label768); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 1), label768); - - frame8 = gtk_frame_new (_("Match Description")); - gtk_widget_ref (frame8); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame8", frame8, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame8); - gtk_container_add (GTK_CONTAINER (find_notebook), frame8); - - vbox16 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox16); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox16", vbox16, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox16); - gtk_container_add (GTK_CONTAINER (frame8), vbox16); - gtk_container_set_border_width (GTK_CONTAINER (vbox16), 5); - - label752 = gtk_label_new (_("Find transactions whose Description contains:")); - gtk_widget_ref (label752); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label752", label752, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label752); - gtk_box_pack_start (GTK_BOX (vbox16), label752, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label752), 7.45058e-09, 0.5); - - description_entry = gtk_entry_new (); - gtk_widget_ref (description_entry); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "description_entry", description_entry, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (description_entry); - gtk_box_pack_start (GTK_BOX (vbox16), description_entry, FALSE, FALSE, 0); - - vbox41 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox41); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox41", vbox41, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox41); - gtk_box_pack_start (GTK_BOX (vbox16), vbox41, TRUE, TRUE, 0); - - description_case_toggle = gtk_check_button_new_with_label (_("Case sensitive")); - gtk_widget_ref (description_case_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "description_case_toggle", description_case_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (description_case_toggle); - gtk_box_pack_start (GTK_BOX (vbox41), description_case_toggle, FALSE, FALSE, 0); - - description_regexp_toggle = gtk_check_button_new_with_label (_("Regular expression")); - gtk_widget_ref (description_regexp_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "description_regexp_toggle", description_regexp_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (description_regexp_toggle); - gtk_box_pack_start (GTK_BOX (vbox41), description_regexp_toggle, FALSE, FALSE, 0); - - label718 = gtk_label_new (_("Description")); - gtk_widget_ref (label718); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label718", label718, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label718); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 2), label718); - - frame15 = gtk_frame_new (_("Match Description")); - gtk_widget_ref (frame15); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame15", frame15, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame15); - gtk_container_add (GTK_CONTAINER (find_notebook), frame15); - - vbox42 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox42); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox42", vbox42, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox42); - gtk_container_add (GTK_CONTAINER (frame15), vbox42); - gtk_container_set_border_width (GTK_CONTAINER (vbox42), 5); - - label761 = gtk_label_new (_("Find transactions whose Number contains:")); - gtk_widget_ref (label761); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label761", label761, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label761); - gtk_box_pack_start (GTK_BOX (vbox42), label761, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label761), 7.45058e-09, 0.5); - - number_entry = gtk_entry_new (); - gtk_widget_ref (number_entry); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "number_entry", number_entry, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (number_entry); - gtk_box_pack_start (GTK_BOX (vbox42), number_entry, FALSE, FALSE, 0); - - vbox43 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox43); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox43", vbox43, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox43); - gtk_box_pack_start (GTK_BOX (vbox42), vbox43, TRUE, TRUE, 0); - - number_case_toggle = gtk_check_button_new_with_label (_("Case sensitive")); - gtk_widget_ref (number_case_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "number_case_toggle", number_case_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (number_case_toggle); - gtk_box_pack_start (GTK_BOX (vbox43), number_case_toggle, FALSE, FALSE, 0); - - number_regexp_toggle = gtk_check_button_new_with_label (_("Regular expression")); - gtk_widget_ref (number_regexp_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "number_regexp_toggle", number_regexp_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (number_regexp_toggle); - gtk_box_pack_start (GTK_BOX (vbox43), number_regexp_toggle, FALSE, FALSE, 0); - - label760 = gtk_label_new (_("Number")); - gtk_widget_ref (label760); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label760", label760, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label760); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 3), label760); - - frame9 = gtk_frame_new (_("Match Amount")); - gtk_widget_ref (frame9); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame9", frame9, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame9); - gtk_container_add (GTK_CONTAINER (find_notebook), frame9); - - vbox18 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox18); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox18", vbox18, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox18); - gtk_container_add (GTK_CONTAINER (frame9), vbox18); - gtk_container_set_border_width (GTK_CONTAINER (vbox18), 5); - - hbox17 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox17); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox17", hbox17, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox17); - gtk_box_pack_start (GTK_BOX (vbox18), hbox17, FALSE, FALSE, 0); - - label753 = gtk_label_new (_("Find ")); - gtk_widget_ref (label753); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label753", label753, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label753); - gtk_box_pack_start (GTK_BOX (hbox17), label753, FALSE, FALSE, 0); - - credit_debit_picker = gtk_option_menu_new (); - gtk_widget_ref (credit_debit_picker); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "credit_debit_picker", credit_debit_picker, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (credit_debit_picker); - gtk_box_pack_start (GTK_BOX (hbox17), credit_debit_picker, FALSE, FALSE, 0); - credit_debit_picker_menu = gtk_menu_new (); - glade_menuitem = gtk_menu_item_new_with_label (_("Credit or Debit")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (credit_debit_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("Credit")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (credit_debit_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("Debit")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (credit_debit_picker_menu), glade_menuitem); - gtk_option_menu_set_menu (GTK_OPTION_MENU (credit_debit_picker), credit_debit_picker_menu); - - label726 = gtk_label_new (_("splits having amounts of:")); - gtk_widget_ref (label726); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label726", label726, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label726); - gtk_box_pack_start (GTK_BOX (hbox17), label726, FALSE, FALSE, 5); - - hbox28 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox28); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox28", hbox28, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox28); - gtk_box_pack_start (GTK_BOX (vbox18), hbox28, FALSE, FALSE, 0); - - amount_comp_picker = gtk_option_menu_new (); - gtk_widget_ref (amount_comp_picker); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "amount_comp_picker", amount_comp_picker, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (amount_comp_picker); - gtk_box_pack_start (GTK_BOX (hbox28), amount_comp_picker, FALSE, FALSE, 0); - amount_comp_picker_menu = gtk_menu_new (); - glade_menuitem = gtk_menu_item_new_with_label (_("At least")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (amount_comp_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("At most ")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (amount_comp_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("Exactly")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (amount_comp_picker_menu), glade_menuitem); - gtk_option_menu_set_menu (GTK_OPTION_MENU (amount_comp_picker), amount_comp_picker_menu); - - amount_box = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (amount_box); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "amount_box", amount_box, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (amount_box); - gtk_box_pack_start (GTK_BOX (hbox28), amount_box, TRUE, TRUE, 0); - - label750 = gtk_label_new (""); - gtk_widget_ref (label750); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label750", label750, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label750); - gtk_box_pack_start (GTK_BOX (hbox28), label750, TRUE, TRUE, 0); - - label719 = gtk_label_new (_("Amount")); - gtk_widget_ref (label719); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label719", label719, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label719); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 4), label719); - - frame10 = gtk_frame_new (_("Match Memo")); - gtk_widget_ref (frame10); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame10", frame10, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame10); - gtk_container_add (GTK_CONTAINER (find_notebook), frame10); - - vbox22 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox22); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox22", vbox22, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox22); - gtk_container_add (GTK_CONTAINER (frame10), vbox22); - gtk_container_set_border_width (GTK_CONTAINER (vbox22), 5); - - label759 = gtk_label_new (_("Find splits whose Memo contains:")); - gtk_widget_ref (label759); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label759", label759, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label759); - gtk_box_pack_start (GTK_BOX (vbox22), label759, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label759), 7.45058e-09, 0.5); - - memo_entry = gtk_entry_new (); - gtk_widget_ref (memo_entry); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "memo_entry", memo_entry, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (memo_entry); - gtk_box_pack_start (GTK_BOX (vbox22), memo_entry, FALSE, FALSE, 0); - - vbox40 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox40); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox40", vbox40, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox40); - gtk_box_pack_start (GTK_BOX (vbox22), vbox40, TRUE, TRUE, 0); - - memo_case_toggle = gtk_check_button_new_with_label (_("Case sensitive")); - gtk_widget_ref (memo_case_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "memo_case_toggle", memo_case_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (memo_case_toggle); - gtk_box_pack_start (GTK_BOX (vbox40), memo_case_toggle, FALSE, FALSE, 0); - - memo_regexp_toggle = gtk_check_button_new_with_label (_("Regular expression")); - gtk_widget_ref (memo_regexp_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "memo_regexp_toggle", memo_regexp_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (memo_regexp_toggle); - gtk_box_pack_start (GTK_BOX (vbox40), memo_regexp_toggle, FALSE, FALSE, 0); - - label771 = gtk_label_new (_("Memo")); - gtk_widget_ref (label771); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label771", label771, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label771); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 5), label771); - - frame18 = gtk_frame_new (_("Match number of shares")); - gtk_widget_ref (frame18); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame18", frame18, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame18); - gtk_container_add (GTK_CONTAINER (find_notebook), frame18); - - vbox45 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox45); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox45", vbox45, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox45); - gtk_container_add (GTK_CONTAINER (frame18), vbox45); - gtk_container_set_border_width (GTK_CONTAINER (vbox45), 5); - - label765 = gtk_label_new (_("Find securities transactions of:")); - gtk_widget_ref (label765); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label765", label765, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label765); - gtk_box_pack_start (GTK_BOX (vbox45), label765, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label765), 7.45058e-09, 0.5); - - hbox31 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox31); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox31", hbox31, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox31); - gtk_box_pack_start (GTK_BOX (vbox45), hbox31, FALSE, FALSE, 0); - - shares_comp_picker = gtk_option_menu_new (); - gtk_widget_ref (shares_comp_picker); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "shares_comp_picker", shares_comp_picker, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (shares_comp_picker); - gtk_box_pack_start (GTK_BOX (hbox31), shares_comp_picker, FALSE, FALSE, 0); - shares_comp_picker_menu = gtk_menu_new (); - glade_menuitem = gtk_menu_item_new_with_label (_("At least")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (shares_comp_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("At most")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (shares_comp_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("Exactly")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (shares_comp_picker_menu), glade_menuitem); - gtk_option_menu_set_menu (GTK_OPTION_MENU (shares_comp_picker), shares_comp_picker_menu); - - shares_box = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (shares_box); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "shares_box", shares_box, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (shares_box); - gtk_box_pack_start (GTK_BOX (hbox31), shares_box, TRUE, TRUE, 0); - - label766 = gtk_label_new (_("shares")); - gtk_widget_ref (label766); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label766", label766, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label766); - gtk_box_pack_start (GTK_BOX (hbox31), label766, TRUE, TRUE, 0); - gtk_misc_set_alignment (GTK_MISC (label766), 0.02, 0.5); - - label764 = gtk_label_new (_("Shares")); - gtk_widget_ref (label764); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label764", label764, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label764); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 6), label764); - - frame19 = gtk_frame_new (_("Match share price")); - gtk_widget_ref (frame19); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame19", frame19, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame19); - gtk_container_add (GTK_CONTAINER (find_notebook), frame19); - - vbox46 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox46); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox46", vbox46, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox46); - gtk_container_add (GTK_CONTAINER (frame19), vbox46); - gtk_container_set_border_width (GTK_CONTAINER (vbox46), 5); - - label769 = gtk_label_new (_("Find securities transactions with share price of:")); - gtk_widget_ref (label769); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label769", label769, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label769); - gtk_box_pack_start (GTK_BOX (vbox46), label769, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label769), 7.45058e-09, 0.5); - - hbox32 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox32); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox32", hbox32, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox32); - gtk_box_pack_start (GTK_BOX (vbox46), hbox32, FALSE, FALSE, 0); - - price_comp_picker = gtk_option_menu_new (); - gtk_widget_ref (price_comp_picker); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "price_comp_picker", price_comp_picker, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (price_comp_picker); - gtk_box_pack_start (GTK_BOX (hbox32), price_comp_picker, FALSE, FALSE, 0); - price_comp_picker_menu = gtk_menu_new (); - glade_menuitem = gtk_menu_item_new_with_label (_("At least")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (price_comp_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("At most")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (price_comp_picker_menu), glade_menuitem); - glade_menuitem = gtk_menu_item_new_with_label (_("Exactly")); - gtk_widget_show (glade_menuitem); - gtk_menu_append (GTK_MENU (price_comp_picker_menu), glade_menuitem); - gtk_option_menu_set_menu (GTK_OPTION_MENU (price_comp_picker), price_comp_picker_menu); - - price_box = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (price_box); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "price_box", price_box, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (price_box); - gtk_box_pack_start (GTK_BOX (hbox32), price_box, TRUE, TRUE, 0); - - label770 = gtk_label_new (""); - gtk_widget_ref (label770); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label770", label770, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label770); - gtk_box_pack_start (GTK_BOX (hbox32), label770, TRUE, TRUE, 0); - gtk_misc_set_alignment (GTK_MISC (label770), 0.02, 0.5); - - label767 = gtk_label_new (_("Price")); - gtk_widget_ref (label767); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label767", label767, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label767); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 7), label767); - - frame20 = gtk_frame_new (_("Match Action")); - gtk_widget_ref (frame20); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame20", frame20, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame20); - gtk_container_add (GTK_CONTAINER (find_notebook), frame20); - - vbox50 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox50); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox50", vbox50, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox50); - gtk_container_add (GTK_CONTAINER (frame20), vbox50); - gtk_container_set_border_width (GTK_CONTAINER (vbox50), 5); - - label772 = gtk_label_new (_("Find transactions whose Action contains:")); - gtk_widget_ref (label772); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label772", label772, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label772); - gtk_box_pack_start (GTK_BOX (vbox50), label772, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label772), 7.45058e-09, 0.5); - - action_entry = gtk_entry_new (); - gtk_widget_ref (action_entry); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "action_entry", action_entry, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (action_entry); - gtk_box_pack_start (GTK_BOX (vbox50), action_entry, FALSE, FALSE, 0); - - vbox51 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox51); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox51", vbox51, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox51); - gtk_box_pack_start (GTK_BOX (vbox50), vbox51, TRUE, TRUE, 0); - - action_case_toggle = gtk_check_button_new_with_label (_("Case sensitive")); - gtk_widget_ref (action_case_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "action_case_toggle", action_case_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (action_case_toggle); - gtk_box_pack_start (GTK_BOX (vbox51), action_case_toggle, FALSE, FALSE, 0); - - action_regexp_toggle = gtk_check_button_new_with_label (_("Regular expression")); - gtk_widget_ref (action_regexp_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "action_regexp_toggle", action_regexp_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (action_regexp_toggle); - gtk_box_pack_start (GTK_BOX (vbox51), action_regexp_toggle, FALSE, FALSE, 0); - - label720 = gtk_label_new (_("Action")); - gtk_widget_ref (label720); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label720", label720, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label720); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 8), label720); - - frame25 = gtk_frame_new (_("Match Cleared state")); - gtk_widget_ref (frame25); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame25", frame25, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame25); - gtk_container_add (GTK_CONTAINER (find_notebook), frame25); - - vbox61 = gtk_vbox_new (FALSE, 5); - gtk_widget_ref (vbox61); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox61", vbox61, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox61); - gtk_container_add (GTK_CONTAINER (frame25), vbox61); - gtk_container_set_border_width (GTK_CONTAINER (vbox61), 5); - - label787 = gtk_label_new (_("Find transactions whose Cleared status is:")); - gtk_widget_ref (label787); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label787", label787, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label787); - gtk_box_pack_start (GTK_BOX (vbox61), label787, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label787), 7.45058e-09, 0.5); - - cleared_not_cleared_toggle = gtk_check_button_new_with_label (_("Not cleared (n)")); - gtk_widget_ref (cleared_not_cleared_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "cleared_not_cleared_toggle", cleared_not_cleared_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (cleared_not_cleared_toggle); - gtk_box_pack_start (GTK_BOX (vbox61), cleared_not_cleared_toggle, FALSE, FALSE, 0); - - cleared_cleared_toggle = gtk_check_button_new_with_label (_("Cleared (c)")); - gtk_widget_ref (cleared_cleared_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "cleared_cleared_toggle", cleared_cleared_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (cleared_cleared_toggle); - gtk_box_pack_start (GTK_BOX (vbox61), cleared_cleared_toggle, FALSE, FALSE, 0); - - cleared_reconciled_toggle = gtk_check_button_new_with_label (_("Reconciled (y)")); - gtk_widget_ref (cleared_reconciled_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "cleared_reconciled_toggle", cleared_reconciled_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (cleared_reconciled_toggle); - gtk_box_pack_start (GTK_BOX (vbox61), cleared_reconciled_toggle, FALSE, FALSE, 0); - - label786 = gtk_label_new (_("Cleared")); - gtk_widget_ref (label786); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label786", label786, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label786); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 9), label786); - - frame36 = gtk_frame_new (_("Match Balance state")); - gtk_widget_ref (frame36); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame36", frame36, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame36); - gtk_container_add (GTK_CONTAINER (find_notebook), frame36); - - vbox87 = gtk_vbox_new (FALSE, 5); - gtk_widget_ref (vbox87); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox87", vbox87, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox87); - gtk_container_add (GTK_CONTAINER (frame36), vbox87); - gtk_container_set_border_width (GTK_CONTAINER (vbox87), 5); - - label846 = gtk_label_new (_("Find transactions whose Balance status is:")); - gtk_widget_ref (label846); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label846", label846, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label846); - gtk_box_pack_start (GTK_BOX (vbox87), label846, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label846), 7.45058e-09, 0.5); - - balance_balanced_toggle = gtk_check_button_new_with_label (_("Balanced")); - gtk_widget_ref (balance_balanced_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "balance_balanced_toggle", balance_balanced_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (balance_balanced_toggle); - gtk_box_pack_start (GTK_BOX (vbox87), balance_balanced_toggle, FALSE, FALSE, 0); - - balance_not_balanced_toggle = gtk_check_button_new_with_label (_("Not Balanced")); - gtk_widget_ref (balance_not_balanced_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "balance_not_balanced_toggle", balance_not_balanced_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (balance_not_balanced_toggle); - gtk_box_pack_start (GTK_BOX (vbox87), balance_not_balanced_toggle, FALSE, FALSE, 0); - - label843 = gtk_label_new (_("Balance")); - gtk_widget_ref (label843); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label843", label843, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label843); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 10), label843); - - tags_frame = gtk_frame_new (_("Match transaction tags (CURRENTLY INOPERABLE)")); - gtk_widget_ref (tags_frame); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "tags_frame", tags_frame, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (tags_frame); - gtk_container_add (GTK_CONTAINER (find_notebook), tags_frame); - - vbox82 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox82); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox82", vbox82, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox82); - gtk_container_add (GTK_CONTAINER (tags_frame), vbox82); - gtk_container_set_border_width (GTK_CONTAINER (vbox82), 5); - - label844 = gtk_label_new (_("Find transactions with the tag:")); - gtk_widget_ref (label844); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label844", label844, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label844); - gtk_box_pack_start (GTK_BOX (vbox82), label844, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label844), 7.45058e-09, 0.5); - - tag_entry = gtk_entry_new (); - gtk_widget_ref (tag_entry); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "tag_entry", tag_entry, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (tag_entry); - gtk_box_pack_start (GTK_BOX (vbox82), tag_entry, FALSE, FALSE, 0); - gtk_widget_set_sensitive (tag_entry, FALSE); - - vbox83 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox83); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox83", vbox83, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox83); - gtk_box_pack_start (GTK_BOX (vbox82), vbox83, TRUE, TRUE, 0); - - tag_case_toggle = gtk_check_button_new_with_label (_("Case sensitive")); - gtk_widget_ref (tag_case_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "tag_case_toggle", tag_case_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (tag_case_toggle); - gtk_box_pack_start (GTK_BOX (vbox83), tag_case_toggle, FALSE, FALSE, 0); - gtk_widget_set_sensitive (tag_case_toggle, FALSE); - - tag_regexp_toggle = gtk_check_button_new_with_label (_("Regular expression")); - gtk_widget_ref (tag_regexp_toggle); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "tag_regexp_toggle", tag_regexp_toggle, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (tag_regexp_toggle); - gtk_box_pack_start (GTK_BOX (vbox83), tag_regexp_toggle, FALSE, FALSE, 0); - gtk_widget_set_sensitive (tag_regexp_toggle, FALSE); - - label845 = gtk_label_new (_("Tags")); - gtk_widget_ref (label845); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "label845", label845, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (label845); - gtk_notebook_set_tab_label (GTK_NOTEBOOK (find_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (find_notebook), 11), label845); - - hbox20 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox20); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox20", hbox20, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox20); - gtk_box_pack_start (GTK_BOX (dialog_vbox7), hbox20, FALSE, FALSE, 0); - - hbox23 = gtk_hbox_new (FALSE, 0); - gtk_widget_ref (hbox23); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "hbox23", hbox23, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (hbox23); - gtk_box_pack_start (GTK_BOX (hbox20), hbox23, FALSE, FALSE, 0); - - frame12 = gtk_frame_new (_("Type of search")); - gtk_widget_ref (frame12); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "frame12", frame12, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (frame12); - gtk_box_pack_start (GTK_BOX (hbox23), frame12, FALSE, FALSE, 0); - - vbox24 = gtk_vbox_new (FALSE, 0); - gtk_widget_ref (vbox24); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "vbox24", vbox24, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (vbox24); - gtk_container_add (GTK_CONTAINER (frame12), vbox24); - gtk_container_set_border_width (GTK_CONTAINER (vbox24), 3); - - new_search_radiobutton = gtk_radio_button_new_with_label (vbox24_group, _("New search")); - vbox24_group = gtk_radio_button_group (GTK_RADIO_BUTTON (new_search_radiobutton)); - gtk_widget_ref (new_search_radiobutton); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "new_search_radiobutton", new_search_radiobutton, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (new_search_radiobutton); - gtk_box_pack_start (GTK_BOX (vbox24), new_search_radiobutton, FALSE, FALSE, 0); - - narrow_search_radiobutton = gtk_radio_button_new_with_label (vbox24_group, _("Refine current search")); - vbox24_group = gtk_radio_button_group (GTK_RADIO_BUTTON (narrow_search_radiobutton)); - gtk_widget_ref (narrow_search_radiobutton); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "narrow_search_radiobutton", narrow_search_radiobutton, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (narrow_search_radiobutton); - gtk_box_pack_start (GTK_BOX (vbox24), narrow_search_radiobutton, FALSE, FALSE, 0); - - add_search_radiobutton = gtk_radio_button_new_with_label (vbox24_group, _("Add results to current search")); - vbox24_group = gtk_radio_button_group (GTK_RADIO_BUTTON (add_search_radiobutton)); - gtk_widget_ref (add_search_radiobutton); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "add_search_radiobutton", add_search_radiobutton, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (add_search_radiobutton); - gtk_box_pack_start (GTK_BOX (vbox24), add_search_radiobutton, FALSE, FALSE, 0); - - delete_search_radiobutton = gtk_radio_button_new_with_label (vbox24_group, _("Delete results from current search")); - vbox24_group = gtk_radio_button_group (GTK_RADIO_BUTTON (delete_search_radiobutton)); - gtk_widget_ref (delete_search_radiobutton); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "delete_search_radiobutton", delete_search_radiobutton, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (delete_search_radiobutton); - gtk_box_pack_start (GTK_BOX (vbox24), delete_search_radiobutton, FALSE, FALSE, 0); - - dialog_action_area7 = GNOME_DIALOG (Find_Transactions)->action_area; - gtk_object_set_data (GTK_OBJECT (Find_Transactions), "dialog_action_area7", dialog_action_area7); - gtk_widget_show (dialog_action_area7); - gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_SPREAD); - gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area7), 8); - - gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (Find_Transactions), - _("Find"), GNOME_STOCK_PIXMAP_SEARCH); - button26 = g_list_last (GNOME_DIALOG (Find_Transactions)->buttons)->data; - gtk_widget_ref (button26); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "button26", button26, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button26); - GTK_WIDGET_SET_FLAGS (button26, GTK_CAN_DEFAULT); - - gnome_dialog_append_button (GNOME_DIALOG (Find_Transactions), GNOME_STOCK_BUTTON_CANCEL); - button27 = g_list_last (GNOME_DIALOG (Find_Transactions)->buttons)->data; - gtk_widget_ref (button27); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "button27", button27, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button27); - GTK_WIDGET_SET_FLAGS (button27, GTK_CAN_DEFAULT); - - gnome_dialog_append_button (GNOME_DIALOG (Find_Transactions), GNOME_STOCK_BUTTON_HELP); - button28 = g_list_last (GNOME_DIALOG (Find_Transactions)->buttons)->data; - gtk_widget_ref (button28); - gtk_object_set_data_full (GTK_OBJECT (Find_Transactions), "button28", button28, - (GtkDestroyNotify) gtk_widget_unref); - gtk_widget_show (button28); - GTK_WIDGET_SET_FLAGS (button28, GTK_CAN_DEFAULT); - - gtk_signal_connect (GTK_OBJECT (date_start_toggle), "toggled", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_early_date_toggle_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (date_end_toggle), "toggled", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_late_date_toggle_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (new_search_radiobutton), "toggled", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_search_type_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (narrow_search_radiobutton), "toggled", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_search_type_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (add_search_radiobutton), "toggled", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_search_type_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (delete_search_radiobutton), "toggled", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_search_type_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (button26), "clicked", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_ok_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (button27), "clicked", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_cancel_cb), - Find_Transactions); - gtk_signal_connect (GTK_OBJECT (button28), "clicked", - GTK_SIGNAL_FUNC (gnc_ui_find_transactions_dialog_help_cb), - Find_Transactions); - - return Find_Transactions; -} - diff --git a/src/gnome/glade-gnc-dialogs.h b/src/gnome/glade-gnc-dialogs.h index b4df37b340..e9364d723b 100644 --- a/src/gnome/glade-gnc-dialogs.h +++ b/src/gnome/glade-gnc-dialogs.h @@ -4,4 +4,3 @@ GtkWidget* create_QIF_Import_Account_Picker (void); GtkWidget* create_Print_Check_Dialog (void); -GtkWidget* create_Find_Transactions (void); diff --git a/src/gnome/glade/Makefile.am b/src/gnome/glade/Makefile.am index fc777ec0ad..071452e634 100644 --- a/src/gnome/glade/Makefile.am +++ b/src/gnome/glade/Makefile.am @@ -3,6 +3,7 @@ glade_DATA = \ account.glade \ commodity.glade \ fincalc.glade \ + find.glade \ help.glade \ price.glade \ progress.glade \ @@ -18,6 +19,7 @@ STRING_FILES = \ account_strings.c \ commodity_strings.c \ fincalc_strings.c \ + find_strings.c \ help_strings.c \ price_strings.c \ progress_strings.c \ diff --git a/src/gnome/glade/find.glade b/src/gnome/glade/find.glade new file mode 100644 index 0000000000..5495913bd2 --- /dev/null +++ b/src/gnome/glade/find.glade @@ -0,0 +1,1551 @@ + + + + + Glade + glade + + + + C + True + True + False + False + False + False + True + find_strings.c + + + + GnomeDialog + Find Transactions + Find Transactions + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + True + False + False + False + + + GtkVBox + GnomeDialog:vbox + dialog-vbox7 + False + 8 + + 4 + True + True + + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area7 + GTK_BUTTONBOX_SPREAD + 8 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button26 + True + True + + clicked + gnc_ui_find_transactions_dialog_ok_cb + Find_Transactions + Wed, 29 Mar 2000 18:54:52 GMT + + + GNOME_STOCK_PIXMAP_SEARCH + + + + GtkButton + button27 + True + True + + clicked + gnc_ui_find_transactions_dialog_cancel_cb + Find_Transactions + Thu, 30 Mar 2000 18:02:10 GMT + + GNOME_STOCK_BUTTON_CANCEL + + + + GtkButton + button28 + True + True + + clicked + gnc_ui_find_transactions_dialog_help_cb + Find_Transactions + Thu, 30 Mar 2000 18:01:32 GMT + + GNOME_STOCK_BUTTON_HELP + + + + + GtkNotebook + find_notebook + True + True + True + GTK_POS_LEFT + False + 2 + 2 + False + + 0 + True + True + + + + GtkFrame + frame6 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + match_accounts_vbox + 5 + False + 0 + + + GtkHBox + hbox26 + False + 5 + + 0 + False + False + + + + GtkLabel + label751 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 5 + False + False + + + + + GtkOptionMenu + account_match_picker + True + All +Any +None + + 1 + + 0 + False + False + + + + + GtkLabel + label743 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + + GtkScrolledWindow + account_match_scroller + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_UPDATE_CONTINUOUS + GTK_UPDATE_CONTINUOUS + + 0 + True + True + + + + Placeholder + + + + + + + GtkLabel + Notebook:tab + label716 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame11 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox79 + 5 + False + 0 + + + GtkLabel + label842 + + GTK_JUSTIFY_LEFT + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkHBox + hbox71 + False + 0 + + 0 + False + False + + + + GtkVBox + vbox80 + True + 0 + + 0 + False + False + + + + GtkCheckButton + date_start_toggle + True + + toggled + gnc_ui_find_transactions_dialog_early_date_toggle_cb + Find_Transactions + Mon, 02 Oct 2000 14:55:56 GMT + + + False + True + + 0 + False + False + + + + + GtkCheckButton + date_end_toggle + True + + toggled + gnc_ui_find_transactions_dialog_late_date_toggle_cb + Find_Transactions + Mon, 02 Oct 2000 14:56:25 GMT + + + False + True + + 0 + False + False + + + + + + GtkVBox + vbox81 + True + 0 + + 0 + False + False + + + + GtkFrame + date_start_frame + 0 + GTK_SHADOW_NONE + + 0 + True + True + + + + Placeholder + + + + + GtkFrame + date_end_frame + 0 + GTK_SHADOW_NONE + + 0 + True + True + + + + Placeholder + + + + + + + + + GtkLabel + Notebook:tab + label768 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame8 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox16 + 5 + False + 0 + + + GtkLabel + label752 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkEntry + description_entry + True + True + True + 0 + + + 0 + False + False + + + + + GtkVBox + vbox41 + False + 0 + + 0 + True + True + + + + GtkCheckButton + description_case_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + description_regexp_toggle + True + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label718 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame15 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox42 + 5 + False + 0 + + + GtkLabel + label761 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkEntry + number_entry + True + True + True + 0 + + + 0 + False + False + + + + + GtkVBox + vbox43 + False + 0 + + 0 + True + True + + + + GtkCheckButton + number_case_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + number_regexp_toggle + True + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label760 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame9 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox18 + 5 + False + 0 + + + GtkHBox + hbox17 + False + 0 + + 0 + False + False + + + + GtkLabel + label753 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkOptionMenu + credit_debit_picker + True + Credit or Debit +Credit +Debit + + 0 + + 0 + False + False + + + + + GtkLabel + label726 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 5 + False + False + + + + + + GtkHBox + hbox28 + False + 0 + + 0 + False + False + + + + GtkOptionMenu + amount_comp_picker + True + At least +At most +Exactly + + 0 + + 0 + False + False + + + + + GtkHBox + amount_box + False + 0 + + 0 + True + True + + + + Placeholder + + + + + GtkLabel + label750 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + True + True + + + + + + + + GtkLabel + Notebook:tab + label719 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame10 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox22 + 5 + False + 0 + + + GtkLabel + label759 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkEntry + memo_entry + True + True + True + 0 + + + 0 + False + False + + + + + GtkVBox + vbox40 + False + 0 + + 0 + True + True + + + + GtkCheckButton + memo_case_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + memo_regexp_toggle + True + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label771 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame18 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox45 + 5 + False + 0 + + + GtkLabel + label765 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkHBox + hbox31 + False + 0 + + 0 + False + False + + + + GtkOptionMenu + shares_comp_picker + True + At least +At most +Exactly + + 0 + + 0 + False + False + + + + + GtkHBox + shares_box + False + 0 + + 0 + True + True + + + + Placeholder + + + + + GtkLabel + label766 + + GTK_JUSTIFY_CENTER + False + 0.02 + 0.5 + 0 + 0 + + 0 + True + True + + + + + + + + GtkLabel + Notebook:tab + label764 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame19 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox46 + 5 + False + 0 + + + GtkLabel + label769 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkHBox + hbox32 + False + 0 + + 0 + False + False + + + + GtkOptionMenu + price_comp_picker + True + At least +At most +Exactly + + 0 + + 0 + False + False + + + + + GtkHBox + price_box + False + 0 + + 0 + True + True + + + + Placeholder + + + + + GtkLabel + label770 + + GTK_JUSTIFY_CENTER + False + 0.02 + 0.5 + 0 + 0 + + 0 + True + True + + + + + + + + GtkLabel + Notebook:tab + label767 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame20 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox50 + 5 + False + 0 + + + GtkLabel + label772 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkEntry + action_entry + True + True + True + 0 + + + 0 + False + False + + + + + GtkVBox + vbox51 + False + 0 + + 0 + True + True + + + + GtkCheckButton + action_case_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + action_regexp_toggle + True + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label720 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame25 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox61 + 5 + False + 5 + + + GtkLabel + label787 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkCheckButton + cleared_not_cleared_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + cleared_cleared_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + cleared_reconciled_toggle + True + + False + True + + 0 + False + False + + + + + + + GtkLabel + Notebook:tab + label786 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + frame36 + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox87 + 5 + False + 5 + + + GtkLabel + label846 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkCheckButton + balance_balanced_toggle + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + balance_not_balanced_toggle + True + + False + True + + 0 + False + False + + + + + + + GtkLabel + Notebook:tab + label843 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkFrame + tags_frame + + 0 + GTK_SHADOW_ETCHED_IN + + + GtkVBox + vbox82 + 5 + False + 0 + + + GtkLabel + label844 + + GTK_JUSTIFY_CENTER + False + 7.45058e-09 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkEntry + tag_entry + False + True + True + True + 0 + + + 0 + False + False + + + + + GtkVBox + vbox83 + False + 0 + + 0 + True + True + + + + GtkCheckButton + tag_case_toggle + False + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + tag_regexp_toggle + False + True + + False + True + + 0 + False + False + + + + + + + + GtkLabel + Notebook:tab + label845 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + GtkHBox + hbox20 + False + 0 + + 0 + False + False + + + + GtkHBox + hbox23 + False + 0 + + 0 + False + False + + + + GtkFrame + frame12 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkVBox + vbox24 + 3 + False + 0 + + + GtkRadioButton + new_search_radiobutton + True + + toggled + gnc_ui_find_transactions_dialog_search_type_cb + Find_Transactions + Wed, 05 Apr 2000 14:19:54 GMT + + + False + True + + 0 + False + False + + + + + GtkRadioButton + narrow_search_radiobutton + True + + toggled + gnc_ui_find_transactions_dialog_search_type_cb + Find_Transactions + Wed, 05 Apr 2000 14:20:05 GMT + + + False + True + + 0 + False + False + + + + + GtkRadioButton + add_search_radiobutton + True + + toggled + gnc_ui_find_transactions_dialog_search_type_cb + Find_Transactions + Wed, 05 Apr 2000 14:20:17 GMT + + + False + True + + 0 + False + False + + + + + GtkRadioButton + delete_search_radiobutton + True + + toggled + gnc_ui_find_transactions_dialog_search_type_cb + Find_Transactions + Wed, 05 Apr 2000 14:20:26 GMT + + + False + True + + 0 + False + False + + + + + + + + + + diff --git a/src/gnome/glade/find_strings.c b/src/gnome/glade/find_strings.c new file mode 100644 index 0000000000..27f863648b --- /dev/null +++ b/src/gnome/glade/find_strings.c @@ -0,0 +1,89 @@ +/* + * 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_("Find Transactions"); +gchar *s = N_("Find"); +gchar *s = N_("Match Accounts"); +gchar *s = N_("Find transactions affecting"); +gchar *s = N_("All\n" + "Any\n" + "None\n" + ""); +gchar *s = N_("selected accounts:"); +gchar *s = N_("Account"); +gchar *s = N_("Match Date"); +gchar *s = N_("Find transactions occurring in the date range:"); +gchar *s = N_("Starting "); +gchar *s = N_("Ending "); +gchar *s = N_("Date"); +gchar *s = N_("Match Description"); +gchar *s = N_("Find transactions whose Description contains:"); +gchar *s = N_("Case sensitive"); +gchar *s = N_("Regular expression"); +gchar *s = N_("Description"); +gchar *s = N_("Match Description"); +gchar *s = N_("Find transactions whose Number contains:"); +gchar *s = N_("Case sensitive"); +gchar *s = N_("Regular expression"); +gchar *s = N_("Number"); +gchar *s = N_("Match Amount"); +gchar *s = N_("Find "); +gchar *s = N_("Credit or Debit\n" + "Credit\n" + "Debit\n" + ""); +gchar *s = N_("splits having amounts of:"); +gchar *s = N_("At least\n" + "At most \n" + "Exactly\n" + ""); +gchar *s = N_("Amount"); +gchar *s = N_("Match Memo"); +gchar *s = N_("Find splits whose Memo contains:"); +gchar *s = N_("Case sensitive"); +gchar *s = N_("Regular expression"); +gchar *s = N_("Memo"); +gchar *s = N_("Match number of shares"); +gchar *s = N_("Find securities transactions of:"); +gchar *s = N_("At least\n" + "At most\n" + "Exactly\n" + ""); +gchar *s = N_("shares"); +gchar *s = N_("Shares"); +gchar *s = N_("Match share price"); +gchar *s = N_("Find securities transactions with share price of:"); +gchar *s = N_("At least\n" + "At most\n" + "Exactly\n" + ""); +gchar *s = N_("Price"); +gchar *s = N_("Match Action"); +gchar *s = N_("Find transactions whose Action contains:"); +gchar *s = N_("Case sensitive"); +gchar *s = N_("Regular expression"); +gchar *s = N_("Action"); +gchar *s = N_("Match Cleared state"); +gchar *s = N_("Find transactions whose Cleared status is:"); +gchar *s = N_("Not cleared (n)"); +gchar *s = N_("Cleared (c)"); +gchar *s = N_("Reconciled (y)"); +gchar *s = N_("Cleared"); +gchar *s = N_("Match Balance state"); +gchar *s = N_("Find transactions whose Balance status is:"); +gchar *s = N_("Balanced"); +gchar *s = N_("Not Balanced"); +gchar *s = N_("Balance"); +gchar *s = N_("Match transaction tags (CURRENTLY INOPERABLE)"); +gchar *s = N_("Find transactions with the tag:"); +gchar *s = N_("Case sensitive"); +gchar *s = N_("Regular expression"); +gchar *s = N_("Tags"); +gchar *s = N_("Type of search"); +gchar *s = N_("New search"); +gchar *s = N_("Refine current search"); +gchar *s = N_("Add results to current search"); +gchar *s = N_("Delete results from current search"); diff --git a/src/gnome/gnc-dialogs.glade b/src/gnome/gnc-dialogs.glade index 98a919c8f7..bffbc07e83 100644 --- a/src/gnome/gnc-dialogs.glade +++ b/src/gnome/gnc-dialogs.glade @@ -1048,1534 +1048,4 @@ Points - - GnomeDialog - Find Transactions - Find Transactions - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - True - True - False - False - False - - - GtkVBox - GnomeDialog:vbox - dialog-vbox7 - False - 8 - - 4 - True - True - - - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area7 - GTK_BUTTONBOX_SPREAD - 8 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END - - - - GtkButton - button26 - True - True - - clicked - gnc_ui_find_transactions_dialog_ok_cb - Find_Transactions - Wed, 29 Mar 2000 18:54:52 GMT - - - GNOME_STOCK_PIXMAP_SEARCH - - - - GtkButton - button27 - True - True - - clicked - gnc_ui_find_transactions_dialog_cancel_cb - Find_Transactions - Thu, 30 Mar 2000 18:02:10 GMT - - GNOME_STOCK_BUTTON_CANCEL - - - - GtkButton - button28 - True - True - - clicked - gnc_ui_find_transactions_dialog_help_cb - Find_Transactions - Thu, 30 Mar 2000 18:01:32 GMT - - GNOME_STOCK_BUTTON_HELP - - - - - GtkNotebook - find_notebook - True - True - True - GTK_POS_LEFT - False - 2 - 2 - False - - 0 - True - True - - - - GtkFrame - frame6 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - match_accounts_vbox - 5 - False - 0 - - - GtkHBox - hbox26 - False - 5 - - 0 - False - False - - - - GtkLabel - label751 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 5 - False - False - - - - - GtkOptionMenu - account_match_picker - True - All -Any -None - - 1 - - 0 - False - False - - - - - GtkLabel - label743 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 0 - False - False - - - - - - GtkScrolledWindow - account_match_scroller - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_UPDATE_CONTINUOUS - GTK_UPDATE_CONTINUOUS - - 0 - True - True - - - - Placeholder - - - - - - - GtkLabel - Notebook:tab - label716 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame11 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox79 - 5 - False - 0 - - - GtkLabel - label842 - - GTK_JUSTIFY_LEFT - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkHBox - hbox71 - False - 0 - - 0 - False - False - - - - GtkVBox - vbox80 - True - 0 - - 0 - False - False - - - - GtkCheckButton - date_start_toggle - True - - toggled - gnc_ui_find_transactions_dialog_early_date_toggle_cb - Find_Transactions - Mon, 02 Oct 2000 14:55:56 GMT - - - False - True - - 0 - False - False - - - - - GtkCheckButton - date_end_toggle - True - - toggled - gnc_ui_find_transactions_dialog_late_date_toggle_cb - Find_Transactions - Mon, 02 Oct 2000 14:56:25 GMT - - - False - True - - 0 - False - False - - - - - - GtkVBox - vbox81 - True - 0 - - 0 - False - False - - - - GtkFrame - date_start_frame - 0 - GTK_SHADOW_NONE - - 0 - True - True - - - - Placeholder - - - - - GtkFrame - date_end_frame - 0 - GTK_SHADOW_NONE - - 0 - True - True - - - - Placeholder - - - - - - - - - GtkLabel - Notebook:tab - label768 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame8 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox16 - 5 - False - 0 - - - GtkLabel - label752 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkEntry - description_entry - True - True - True - 0 - - - 0 - False - False - - - - - GtkVBox - vbox41 - False - 0 - - 0 - True - True - - - - GtkCheckButton - description_case_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - description_regexp_toggle - True - - False - True - - 0 - False - False - - - - - - - - GtkLabel - Notebook:tab - label718 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame15 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox42 - 5 - False - 0 - - - GtkLabel - label761 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkEntry - number_entry - True - True - True - 0 - - - 0 - False - False - - - - - GtkVBox - vbox43 - False - 0 - - 0 - True - True - - - - GtkCheckButton - number_case_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - number_regexp_toggle - True - - False - True - - 0 - False - False - - - - - - - - GtkLabel - Notebook:tab - label760 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame9 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox18 - 5 - False - 0 - - - GtkHBox - hbox17 - False - 0 - - 0 - False - False - - - - GtkLabel - label753 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkOptionMenu - credit_debit_picker - True - Credit or Debit -Credit -Debit - - 0 - - 0 - False - False - - - - - GtkLabel - label726 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 5 - False - False - - - - - - GtkHBox - hbox28 - False - 0 - - 0 - False - False - - - - GtkOptionMenu - amount_comp_picker - True - At least -At most -Exactly - - 0 - - 0 - False - False - - - - - GtkHBox - amount_box - False - 0 - - 0 - True - True - - - - Placeholder - - - - - GtkLabel - label750 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 0 - True - True - - - - - - - - GtkLabel - Notebook:tab - label719 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame10 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox22 - 5 - False - 0 - - - GtkLabel - label759 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkEntry - memo_entry - True - True - True - 0 - - - 0 - False - False - - - - - GtkVBox - vbox40 - False - 0 - - 0 - True - True - - - - GtkCheckButton - memo_case_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - memo_regexp_toggle - True - - False - True - - 0 - False - False - - - - - - - - GtkLabel - Notebook:tab - label771 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame18 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox45 - 5 - False - 0 - - - GtkLabel - label765 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkHBox - hbox31 - False - 0 - - 0 - False - False - - - - GtkOptionMenu - shares_comp_picker - True - At least -At most -Exactly - - 0 - - 0 - False - False - - - - - GtkHBox - shares_box - False - 0 - - 0 - True - True - - - - Placeholder - - - - - GtkLabel - label766 - - GTK_JUSTIFY_CENTER - False - 0.02 - 0.5 - 0 - 0 - - 0 - True - True - - - - - - - - GtkLabel - Notebook:tab - label764 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame19 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox46 - 5 - False - 0 - - - GtkLabel - label769 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkHBox - hbox32 - False - 0 - - 0 - False - False - - - - GtkOptionMenu - price_comp_picker - True - At least -At most -Exactly - - 0 - - 0 - False - False - - - - - GtkHBox - price_box - False - 0 - - 0 - True - True - - - - Placeholder - - - - - GtkLabel - label770 - - GTK_JUSTIFY_CENTER - False - 0.02 - 0.5 - 0 - 0 - - 0 - True - True - - - - - - - - GtkLabel - Notebook:tab - label767 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame20 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox50 - 5 - False - 0 - - - GtkLabel - label772 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkEntry - action_entry - True - True - True - 0 - - - 0 - False - False - - - - - GtkVBox - vbox51 - False - 0 - - 0 - True - True - - - - GtkCheckButton - action_case_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - action_regexp_toggle - True - - False - True - - 0 - False - False - - - - - - - - GtkLabel - Notebook:tab - label720 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame25 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox61 - 5 - False - 5 - - - GtkLabel - label787 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkCheckButton - cleared_not_cleared_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - cleared_cleared_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - cleared_reconciled_toggle - True - - False - True - - 0 - False - False - - - - - - - GtkLabel - Notebook:tab - label786 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - frame36 - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox87 - 5 - False - 5 - - - GtkLabel - label846 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkCheckButton - balance_balanced_toggle - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - balance_not_balanced_toggle - True - - False - True - - 0 - False - False - - - - - - - GtkLabel - Notebook:tab - label843 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - GtkFrame - tags_frame - - 0 - GTK_SHADOW_ETCHED_IN - - - GtkVBox - vbox82 - 5 - False - 0 - - - GtkLabel - label844 - - GTK_JUSTIFY_CENTER - False - 7.45058e-09 - 0.5 - 0 - 0 - - 0 - False - False - - - - - GtkEntry - tag_entry - False - True - True - True - 0 - - - 0 - False - False - - - - - GtkVBox - vbox83 - False - 0 - - 0 - True - True - - - - GtkCheckButton - tag_case_toggle - False - True - - False - True - - 0 - False - False - - - - - GtkCheckButton - tag_regexp_toggle - False - True - - False - True - - 0 - False - False - - - - - - - - GtkLabel - Notebook:tab - label845 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - - - - GtkHBox - hbox20 - False - 0 - - 0 - False - False - - - - GtkHBox - hbox23 - False - 0 - - 0 - False - False - - - - GtkFrame - frame12 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - False - False - - - - GtkVBox - vbox24 - 3 - False - 0 - - - GtkRadioButton - new_search_radiobutton - True - - toggled - gnc_ui_find_transactions_dialog_search_type_cb - Find_Transactions - Wed, 05 Apr 2000 14:19:54 GMT - - - False - True - - 0 - False - False - - - - - GtkRadioButton - narrow_search_radiobutton - True - - toggled - gnc_ui_find_transactions_dialog_search_type_cb - Find_Transactions - Wed, 05 Apr 2000 14:20:05 GMT - - - False - True - - 0 - False - False - - - - - GtkRadioButton - add_search_radiobutton - True - - toggled - gnc_ui_find_transactions_dialog_search_type_cb - Find_Transactions - Wed, 05 Apr 2000 14:20:17 GMT - - - False - True - - 0 - False - False - - - - - GtkRadioButton - delete_search_radiobutton - True - - toggled - gnc_ui_find_transactions_dialog_search_type_cb - Find_Transactions - Wed, 05 Apr 2000 14:20:26 GMT - - - False - True - - 0 - False - False - - - - - - - - - diff --git a/src/gnome/print-session.h b/src/gnome/print-session.h index 36673d7b57..11d4751367 100644 --- a/src/gnome/print-session.h +++ b/src/gnome/print-session.h @@ -38,8 +38,6 @@ /* #include */ #include -#include "glade-gnc-dialogs.h" - typedef struct { GnomePrintMaster * master; GnomePrintMeta * meta;