Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1469790 Details for
Bug 1607154
glwDrawingAreaWidgetClass in GLwDrawA.h causing XtCreateWidget "glwidget" requires non-NULL widget class error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
test case for reproducing
test.c (text/x-csrc), 2.60 KB, created by
Trent D'Hooge
on 2018-07-22 16:19:07 UTC
(
hide
)
Description:
test case for reproducing
Filename:
MIME Type:
Creator:
Trent D'Hooge
Created:
2018-07-22 16:19:07 UTC
Size:
2.60 KB
patch
obsolete
>#include <Xm/MainW.h> >#include <GL/GLwDrawA.h> >#include <X11/StringDefs.h> >#include <Xm/Form.h> > >String fallback_resources[] = > { > "*fontList: -misc-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*", > "*background: grey", > "*monitor*height: 130", > "*monitor*columns: 60", > "*foreground: Black", > NULL > }; >static XtAppContext app_context; >static XVisualInfo *vi; >static int double_buf[] = { GLX_RGBA, GLX_DEPTH_SIZE, 1, GLX_DOUBLEBUFFER, > GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, > GLX_BLUE_SIZE, 1, GLX_STENCIL_SIZE, 1, None > }; >static Display *dpy; > >int main(int argc, char** argv) >{ > Arg args[10]; > int n; > Widget parent;/* The parent of the gl widget */ > Widget glw;/* The GLwDrawingArea widget */ > Widget toplevel; > Dimension window_height = 300, window_width = 400; > char title[512] = "Test gui"; > > > > /* Create the widget using RGB mode. This can also be set > * in an X Defaults file > */ > n = 0; > XtSetArg( args[n], XmNiconic, FALSE ); > n++; > XtSetArg( args[n], XmNiconName, "GRIZ" ); > n++; > XtSetArg( args[n], XmNtitle, title ); > n++; > XtSetArg( args[n], XmNallowShellResize, TRUE ); > n++; > toplevel = XtAppInitialize( &app_context, "GRIZ", > (XrmOptionDescList)NULL , 0, > &argc, > (String*)argv, > fallback_resources, > args, n ); > parent = XtVaCreateManagedWidget( > "renderform", xmFormWidgetClass, toplevel, > NULL ); > dpy = XtDisplay( toplevel); > vi = glXChooseVisual( dpy, DefaultScreen( dpy ), double_buf ); > glw = XtVaCreateManagedWidget( > "glwidget", > glwDrawingAreaWidgetClass, > parent, > XmNtopAttachment, XmATTACH_FORM, > XmNleftAttachment, XmATTACH_FORM, > XmNrightAttachment, XmATTACH_FORM, > XmNbottomAttachment, XmATTACH_FORM, > GLwNvisualInfo, vi, > XmNwidth, window_width, XmNheight, window_height, > NULL ); > > XtManageChild(glw); > XtRealizeWidget(toplevel); > XtAppMainLoop(app_context); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1607154
: 1469790 |
1469791
|
1470005