Fix bug in changing price date.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5265 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-09-02 22:17:44 +00:00
parent 3c48817541
commit eff7c124df
2 changed files with 16 additions and 3 deletions

View File

@ -700,6 +700,14 @@ date_changed_cb (GNCDateEdit *gde, gpointer data)
gnc_prices_set_changed (pdb_dialog, TRUE);
}
static void
date_entry_changed_cb (GtkWidget *w, gpointer data)
{
PricesDialog *pdb_dialog = data;
gnc_prices_set_changed (pdb_dialog, TRUE);
}
static void
type_menu_changed (GtkButton *button, gpointer data)
{
@ -802,6 +810,8 @@ gnc_price_dialog_create (PricesDialog *pdb_dialog)
box = glade_xml_get_widget (xml, "currency_box");
w = gnc_currency_edit_new ();
gnc_currency_edit_set_currency (GNC_CURRENCY_EDIT (w),
gnc_default_currency ());
pdb_dialog->currency_edit = w;
gtk_box_pack_start (GTK_BOX (box), w, TRUE, TRUE, 0);
gtk_widget_show (w);
@ -819,6 +829,9 @@ gnc_price_dialog_create (PricesDialog *pdb_dialog)
gtk_signal_connect (GTK_OBJECT (w), "date_changed",
GTK_SIGNAL_FUNC (date_changed_cb), pdb_dialog);
gtk_signal_connect (GTK_OBJECT (GNC_DATE_EDIT (w)->date_entry), "changed",
GTK_SIGNAL_FUNC (date_entry_changed_cb), pdb_dialog);
w = glade_xml_get_widget (xml, "source_entry");
pdb_dialog->source_entry = w;

View File

@ -5,7 +5,7 @@
* All rights reserved.
*
* This file was part of the Gnome Library. It was modifed by
* Dave Peticolas <peticola@cs.ucdavis.edu> for use in GnuCash.
* Dave Peticolas <dave@krondo.com> for use in GnuCash.
*
* 2001.05.13T1647 [PDT], #gnucash:
* <jsled> dave_p: So the header for gnc-dateedit.h is a bit light
@ -34,8 +34,8 @@
@NOTATION@
*/
#ifndef __GNC_DATE_EDIT_H_
#define __GNC_DATE_EDIT_H_
#ifndef GNC_DATE_EDIT_H
#define GNC_DATE_EDIT_H
#include <gnome.h>