mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
3c48817541
commit
eff7c124df
@ -700,6 +700,14 @@ date_changed_cb (GNCDateEdit *gde, gpointer data)
|
|||||||
gnc_prices_set_changed (pdb_dialog, TRUE);
|
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
|
static void
|
||||||
type_menu_changed (GtkButton *button, gpointer data)
|
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");
|
box = glade_xml_get_widget (xml, "currency_box");
|
||||||
|
|
||||||
w = gnc_currency_edit_new ();
|
w = gnc_currency_edit_new ();
|
||||||
|
gnc_currency_edit_set_currency (GNC_CURRENCY_EDIT (w),
|
||||||
|
gnc_default_currency ());
|
||||||
pdb_dialog->currency_edit = w;
|
pdb_dialog->currency_edit = w;
|
||||||
gtk_box_pack_start (GTK_BOX (box), w, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (box), w, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (w);
|
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_connect (GTK_OBJECT (w), "date_changed",
|
||||||
GTK_SIGNAL_FUNC (date_changed_cb), pdb_dialog);
|
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");
|
w = glade_xml_get_widget (xml, "source_entry");
|
||||||
pdb_dialog->source_entry = w;
|
pdb_dialog->source_entry = w;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* This file was part of the Gnome Library. It was modifed by
|
* 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:
|
* 2001.05.13T1647 [PDT], #gnucash:
|
||||||
* <jsled> dave_p: So the header for gnc-dateedit.h is a bit light
|
* <jsled> dave_p: So the header for gnc-dateedit.h is a bit light
|
||||||
@ -34,8 +34,8 @@
|
|||||||
@NOTATION@
|
@NOTATION@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __GNC_DATE_EDIT_H_
|
#ifndef GNC_DATE_EDIT_H
|
||||||
#define __GNC_DATE_EDIT_H_
|
#define GNC_DATE_EDIT_H
|
||||||
|
|
||||||
#include <gnome.h>
|
#include <gnome.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user