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 931430 Details for
Bug 1134365
Rendering issues seen while scrolling window
[?]
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 program to show rendering issues while scrolling
test_scrolling.c (text/plain), 3.12 KB, created by
Siteshwar Vashisht
on 2014-08-27 11:56:21 UTC
(
hide
)
Description:
Test program to show rendering issues while scrolling
Filename:
MIME Type:
Creator:
Siteshwar Vashisht
Created:
2014-08-27 11:56:21 UTC
Size:
3.12 KB
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <unistd.h> >#include <string.h> > >#include <X11/X.h> >#include <X11/Xlib.h> >#include <Xm/Xm.h> >#include <Xm/Label.h> >#include <Xm/LabelG.h> >#include <Xm/BulletinB.h> >#include <Xm/PushB.h> >#include <Xm/ScrolledW.h> > >Widget toplevel; > >static void End_A( ); > >int main( int argc, char *argv[] ) >{ > int idx; > int y; > char buf[256]; > XmString xms; > Arg arg[8]; > Widget mainW; > Widget pushB; > Widget scrlW; > Widget bullB; > Widget tmpW; > > XtSetLanguageProc( NULL, NULL, NULL ); > > toplevel = XtInitialize( argv[0], "", NULL, 0, &argc, argv ); > > > /* Create MainWindow(BulletinBoard) */ > XtSetArg( arg[0], XmNwidth, 200 ); > XtSetArg( arg[1], XmNheight, 300 ); > XtSetArg( arg[2], XmNresizePolicy, XmRESIZE_NONE ); > XtSetArg( arg[3], XmNmarginWidth, 0 ); > XtSetArg( arg[4], XmNmarginHeight, 0 ); > mainW = XmCreateBulletinBoard( toplevel, (String)"", arg, 5 ); > > /* Create END Button(PushButton) */ > xms = XmCvtCTToXmString( "END" ); > XtSetArg( arg[0], XmNx, 0 ); > XtSetArg( arg[1], XmNy, 0 ); > XtSetArg( arg[2], XmNlabelString, xms ); > pushB = XmCreatePushButton( mainW, (String)"", arg, 3 ); > XtManageChild( pushB ); > XmStringFree( xms ); > XtAddCallback( pushB, XmNactivateCallback, (XtCallbackProc)End_A, (XtPointer)0 ); > > /* Create ScrolledWindow */ > XtSetArg( arg[0], XmNx, 0 ); > XtSetArg( arg[1], XmNy, 30 ); > XtSetArg( arg[2], XmNwidth, 200 ); > XtSetArg( arg[3], XmNheight, 260 ); > XtSetArg( arg[4], XmNscrollingPolicy, XmAUTOMATIC ); > scrlW = XmCreateScrolledWindow( mainW, (String)"", arg, 5 ); > XtManageChild( scrlW ); > XtSetArg( arg[0], XmNwidth, 165 ); > XtSetArg( arg[1], XmNheight, 330 ); > XtSetArg( arg[2], XmNresizePolicy, XmRESIZE_NONE ); > XtSetArg( arg[3], XmNmarginWidth, 0 ); > XtSetArg( arg[4], XmNmarginHeight, 0 ); > bullB = XmCreateBulletinBoard( scrlW, (String)"", arg, 5 ); > XtManageChild( bullB ); > > /* Create LabelGadget */ > for( idx = 0, y = 0; idx < 10; idx++, y += 30 ) { > sprintf( buf, "gadget%03d", idx+1 ); > xms = XmCvtCTToXmString( buf ); > XtSetArg( arg[0], XmNx, 5 ); > XtSetArg( arg[1], XmNy, y ); > XtSetArg( arg[2], XmNlabelString, xms ); > XtSetArg( arg[3], XmNheight, 13 ); > tmpW = XmCreateLabelGadget( bullB, (String)"", arg, 4 ); > XtManageChild( tmpW ); > XmStringFree( xms ); > } > > XtManageChild( mainW ); > XtRealizeWidget( toplevel ); > > XtMainLoop( ); >} > >static void End_A( Widget w, caddr_t client_data, caddr_t call_data ) >{ > exit( 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 1134365
: 931430 |
1159343
|
1159391