Skip to Content
Volume 7A: XView Programming Manual
book

Volume 7A: XView Programming Manual

by Dan Heller
October 1994
Intermediate to advanced
770 pages
22h 58m
English
O'Reilly Media, Inc.
Content preview from Volume 7A: XView Programming Manual
Generic
Object
Selection
Owner
(Selection)
Figure 18-2. Selection owner class hierarchy
If a selection uses a conversion procedure to convert the selection, then the attribute
SEL_CONVERT_PROC specifies the name of the conversion procedure. Section 18.2.4, “Con-
verting the Selection,” describes the conversion procedure. The selection is acquired by set-
ting SEL_OWN to TRUE.
xv_set(sel_owner, SEL_CONVERT_PROC, convert_proc,
SEL_OWN, TRUE,
NULL);
By default, the selection is associated with the primary rank (XA_PRIMARY). If your selection
needs to use another rank, use either SEL_RANK or SEL_RANK_NAME to specify the rank.
xv_set(sel_owner, SEL_CONVERT_PROC, convert_proc,
SEL_RANK_NAME, "SECONDARY",
SEL_OWN, TRUE,
NULL);
SEL_RANK
takes an atom as an argument. SEL_RANK_NAME takes a string as an argument and
creates an atom from the string; if the atom already exists, it is re-used. In X terms, this is
called interning an atom. (See the description for XInternAtom in the Xlib Reference
Manual.)
After an application makes a request and a selection owner responds to that request, the
selection owner waits for notification that the requestor received the data. The maximum
time that the selection owner will wait for an acknowledgement from the selection requestor
is set with SEL_TIMEOUT_VALUE. This value is specified in seconds. If this value is
exceeded, the selection is invalid. This value does not limit how long ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Volume 6A: Motif Programming Manual

Volume 6A: Motif Programming Manual

David Brennan, Dan Heller, Paula Ferguson

Publisher Resources

ISBN: 9780937175873