This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: glwDrawingAreaWidgetClass
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-xfree at cygwin dot com
- Cc: cwcarlsonc at cox dot net
- Date: Tue, 07 Oct 2014 14:50:13 +0100
- Subject: Re: glwDrawingAreaWidgetClass
- Authentication-results: sourceware.org; auth=none
- References: <5433509B dot 8050805 at cox dot net>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On 07/10/2014 03:31, Chris Carlson wrote:
I've discovered that the constant glwDrawingAreaWidgetClass is set to
0. It's supposed to be defined as:
WidgetClass glwDrawingAreaWidgetClass=(WidgetClass)&glwDrawingAreaClassRec;
Can I ask you to please provide some more details as to how you made
this discovery?
If you do this:
$ cat glw-test.c
#include <Xm/Xm.h>
#include <GL/GLwDrawA.h>
#include <stdio.h>
int main()
{
printf("glwDrawingAreaWidgetClass %p", glwDrawingAreaWidgetClass);
}
then you could reach that conclusion:
$ gcc glw-test.c ; ./a
glwDrawingAreaWidgetClass 0x0
but this isn't testing correctly as glwDrawingAreaWidgetClass isn't
marked as extern in GLwDrawA.h
$ cat glw-test.c
#include <Xm/Xm.h>
#include <stdio.h>
extern WidgetClass glwDrawingAreaWidgetClass;
int main()
{
printf("glwDrawingAreaWidgetClass %p", glwDrawingAreaWidgetClass);
}
$ gcc glw-test.c -lGLw ; ./a
glwDrawingAreaWidgetClass 0x5bd8e3640
Is it broken?
I don't know.
--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/