fix report core dump, grey out menu entry

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@187 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1997-11-29 10:06:01 +00:00
parent 344c8e1a3e
commit f40513a025
3 changed files with 4 additions and 5 deletions

2
README
View File

@ -99,7 +99,7 @@ be tricky, since it requires hacks on the Xbae widget used to
display the register.
-------------
The "reports" menu item is unimplemented and will result in a core dump.
The "reports" menu item is unimplemented.
-------------
That's all folks!

View File

@ -434,7 +434,7 @@ mainWindow( Widget parent )
NULL, NULL, (MenuItem *)NULL },
{ "Transfer", &xmPushButtonWidgetClass, 'C', NULL, NULL, True,
accountMenubarCB, (XtPointer)AMB_TRNS, (MenuItem *)NULL },
{ "Report", &xmPushButtonWidgetClass, 'R', NULL, NULL, True,
{ "Report", &xmPushButtonWidgetClass, 'R', NULL, NULL, False,
accountMenubarCB, (XtPointer)AMB_RPRT, (MenuItem *)NULL },
#if 0
{ "Edit Categories...", &xmPushButtonWidgetClass, 'C', NULL, NULL, True,

View File

@ -72,8 +72,7 @@ simpleReportWindow( Widget parent )
/* Makes a nice looking frame */
frame = XtVaCreateManagedWidget( "frame",
xmFrameWidgetClass, form,
XmNtopAttachment, XmATTACH_WIDGET,
XmNtopWidget, widget,
XmNtopAttachment, XmATTACH_FORM,
XmNleftAttachment, XmATTACH_FORM,
XmNleftOffset, 20,
XmNrightAttachment, XmATTACH_FORM,
@ -85,7 +84,7 @@ simpleReportWindow( Widget parent )
* The buttons at the bottom... *
\******************************************************************/
buttonform = XtVaCreateWidget( "form",
buttonform = XtVaCreateWidget( "buttonform",
xmFormWidgetClass, form,
XmNfractionBase, 5,
XmNtopAttachment, XmATTACH_WIDGET,