mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-06-02 Dave Peticolas <dave@krondo.com>
* src/register/gnome/gnucash-date-picker.c (gnc_date_picker_new): fix bug git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4371 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
29935d54a2
commit
0d738a34b9
@ -1,5 +1,8 @@
|
|||||||
2001-06-02 Dave Peticolas <dave@krondo.com>
|
2001-06-02 Dave Peticolas <dave@krondo.com>
|
||||||
|
|
||||||
|
* src/register/gnome/gnucash-date-picker.c (gnc_date_picker_new):
|
||||||
|
fix bug
|
||||||
|
|
||||||
* src/SplitLedger.c: fix mem leak
|
* src/SplitLedger.c: fix mem leak
|
||||||
|
|
||||||
* src/gnome/top-level.c: handle X errors ourselves
|
* src/gnome/top-level.c: handle X errors ourselves
|
||||||
|
@ -217,6 +217,8 @@ gnc_date_picker_new (GnomeCanvasGroup *parent)
|
|||||||
|
|
||||||
{
|
{
|
||||||
GtkWidget *hbox;
|
GtkWidget *hbox;
|
||||||
|
GtkAllocation allocation;
|
||||||
|
GtkRequisition requisition;
|
||||||
|
|
||||||
hbox = gtk_hbox_new (FALSE, 0);
|
hbox = gtk_hbox_new (FALSE, 0);
|
||||||
|
|
||||||
@ -228,6 +230,17 @@ gnc_date_picker_new (GnomeCanvasGroup *parent)
|
|||||||
"x", -10000.0,
|
"x", -10000.0,
|
||||||
"y", -10000.0,
|
"y", -10000.0,
|
||||||
NULL);
|
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);
|
date_picker = GNC_DATE_PICKER (item);
|
||||||
|
Loading…
Reference in New Issue
Block a user