Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 634443 Details for
Bug 870712
A very simple MOTIF program fails with "X Error of failed request: BadWindow (invalid Window parameter)"
Home
New
Search
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.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
The testprogram's source
xmhallo.c (text/x-csrc), 2.73 KB, created by
Joachim Backes
on 2012-10-28 06:58:06 UTC
(
hide
)
Description:
The testprogram's source
Filename:
MIME Type:
Creator:
Joachim Backes
Created:
2012-10-28 06:58:06 UTC
Size:
2.73 KB
patch
obsolete
>/* Dies ist das Beispielprogramm xmhallo aus folgendem Buch: > * > * Autoren: Hans-Joachim Brede, Nicolai Josuttis, > * Sabine Lemberg, Achim Loerke > * Titel: Programmieren mit OSF/Motif Version 2 > * Verlag: Addison-Wesley, 2. voellig ueberarbeitete Auflage 1995 > * ISBN: 3-89319-727-3 > * > * Copyright 1995 by Hans-Joachim Brede, Nicolai Josuttis, Sabine Lemberg and > * Achim Loerke. All rights reserved. > * > * Permission to use, copy, modify and distribute this software for personal > * and educational use is hereby granted without fee, provided that the above > * copyright notice appear in all copies and that both that copyright notice > * and this permission notice appear in supporting documentation, and that the > * names of Addison-Wesley or the authors are not be used in advertising or > * publicity pertaining to distribution of the software without specific, > * written prior permission. Addison-Wesley and the authors make no > * representations about the suitability of this software for any purpose. > * It is provided "as is" without express or implied warranty. > * > * ADDISON-WESLEY AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS > * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, > * IN NO EVENT SHALL ADDISON-WESLEY OR THE AUTHORS BE LIABLE FOR ANY SPECIAL, > * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM > * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE > * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR > * PERFORMANCE OF THIS SOFTWARE. > * > */ > >/* xmhallo: XmLabel-Widget erzeugen, in dem der Text "hallo" > * ausgegeben wird > */ > >/* Allgemeine Header-Dateien einbinden > */ >#include <stdio.h> >#include <stdlib.h> >#include <Xm/Xm.h> > >/* Header-Dateien fuer die verwendeten Widgetklassen einbinden > */ >#include <Xm/Label.h> > >/* Klassenname der Applikation > */ >#define APPL_KLASSE "XmHallo" > > >main (argc, argv) >int argc; >char* argv[]; >{ > XtAppContext kontext; /* Applikations-Umgebung */ > Widget applShell; /* Applikations-Shell */ > > /* Initialisierungen und Applikations-Shell erzeugen > */ > applShell = XtAppInitialize (&kontext, APPL_KLASSE, > (XrmOptionDescRec*)NULL, 0, > &argc, argv, > (String*)NULL, (Arg*)NULL, 0); > > /* XmLabel-Widget mit dem Namen "hallo" erzeugen > * (der Name wird als Default-Label verwendet) > */ > XtCreateManagedWidget ("hallo", xmLabelWidgetClass, > applShell, (Arg*)NULL, 0); > > /* Widgetbaum realisieren > */ > XtRealizeWidget (applShell); > > /* Hauptschleife mit Ereignisbehandlung > */ > XtAppMainLoop (kontext); >} >
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 870712
: 634443