mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-02 05:29:20 -06:00
2003-06-27 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/dialog-hbcitrans.c: Fix stupid bug with transaction templates, introduced during code refactoring. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8754 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0ad03df213
commit
0e3fe2f0e5
@ -1,3 +1,8 @@
|
||||
2003-06-27 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
* src/import-export/hbci/dialog-hbcitrans.c: Fix stupid bug with
|
||||
transaction templates, introduced during code refactoring.
|
||||
|
||||
2003-06-25 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/scm/price-quotes.scm: Don't print the "handling-request"
|
||||
|
@ -206,7 +206,14 @@ static void fill_template_menu_func(gpointer data, gpointer user_data)
|
||||
{
|
||||
GNCTransTempl *templ = data;
|
||||
GtkMenu *menu = user_data;
|
||||
GtkWidget *item = gtk_menu_item_new_with_label(gnc_trans_templ_get_name(templ));
|
||||
GtkWidget *item;
|
||||
|
||||
g_assert(templ);
|
||||
g_assert(menu);
|
||||
|
||||
item = gtk_menu_item_new_with_label(gnc_trans_templ_get_name(templ));
|
||||
g_assert(item);
|
||||
|
||||
gtk_object_set_user_data(GTK_OBJECT(item), templ);
|
||||
gtk_menu_append(menu, item);
|
||||
}
|
||||
@ -370,11 +377,11 @@ gnc_hbci_dialog_new (GtkWidget *parent,
|
||||
/* Connect signals */
|
||||
gnc_option_menu_init_w_signal (td->template_option,
|
||||
GTK_SIGNAL_FUNC(template_selection_cb),
|
||||
&td);
|
||||
td);
|
||||
gtk_signal_connect(GTK_OBJECT (add_templ_button), "clicked",
|
||||
GTK_SIGNAL_FUNC(add_template_cb), &td);
|
||||
GTK_SIGNAL_FUNC(add_template_cb), td);
|
||||
gtk_signal_connect(GTK_OBJECT (td->recp_bankcode_entry), "changed",
|
||||
GTK_SIGNAL_FUNC(blz_changed_cb), &td);
|
||||
GTK_SIGNAL_FUNC(blz_changed_cb), td);
|
||||
|
||||
/* Default button */
|
||||
gnome_dialog_set_default (GNOME_DIALOG (td->dialog), 0);
|
||||
@ -644,8 +651,9 @@ void template_selection_cb(GtkButton *b,
|
||||
gpointer user_data)
|
||||
{
|
||||
HBCITransDialog *td = user_data;
|
||||
unsigned index;
|
||||
g_assert(td);
|
||||
unsigned index = gnc_option_menu_get_active (td->template_option);
|
||||
index = gnc_option_menu_get_active (td->template_option);
|
||||
/*printf("template_selection_cd: %d is active \n", index);*/
|
||||
if ((index > 0) && (index <= g_list_length(td->templ)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user