diff --git a/ChangeLog b/ChangeLog index f4cbeb7c41..5fb0f0bbca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-06-02 Dave Peticolas + * src/register/gnome/gnucash-date-picker.c (gnc_date_picker_new): + fix bug + * src/SplitLedger.c: fix mem leak * src/gnome/top-level.c: handle X errors ourselves diff --git a/src/register/gnome/gnucash-date-picker.c b/src/register/gnome/gnucash-date-picker.c index b4891d42b3..39ca27d038 100644 --- a/src/register/gnome/gnucash-date-picker.c +++ b/src/register/gnome/gnucash-date-picker.c @@ -217,6 +217,8 @@ gnc_date_picker_new (GnomeCanvasGroup *parent) { GtkWidget *hbox; + GtkAllocation allocation; + GtkRequisition requisition; hbox = gtk_hbox_new (FALSE, 0); @@ -228,6 +230,17 @@ gnc_date_picker_new (GnomeCanvasGroup *parent) "x", -10000.0, "y", -10000.0, NULL); + + gtk_widget_realize (calendar); + + gtk_widget_size_request (calendar, &requisition); + + allocation.x = 0; + allocation.y = 0; + allocation.width = requisition.width; + allocation.height = requisition.height; + + gtk_widget_size_allocate (calendar, &allocation); } date_picker = GNC_DATE_PICKER (item);