-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Caja.OperationHandle.handle property is added: this gives access to the effective handle taking the form of a non-zero signed integer that can be stored in a void pointer. Trying to set this property with an invalid value raises an exception. Upon update_file_info_full call, the new Caja.OperationHandle is preset with a "unique" non-null value generated from an atomic counter. When the python method returns, the handle value is transmitted to Caja whatever it is: this fixes the problem of Caja expecting a non-null handle when CAJA_OPERATION_IN_PROGRESS is returned. Ref: #36
Showing
6 changed files
with
145 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?xml version="1.0" standalone="no"?> | ||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | ||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> | ||
|
||
<refentry id="class-caja-python-operation-handle"> | ||
<refnamediv> | ||
<refname>Caja.OperationHandle</refname> | ||
<refpurpose><link linkend="class-caja-python-file-info"><classname>Caja.FileInfo</classname></link> update in progress handle</refpurpose> | ||
</refnamediv> | ||
|
||
<!-- ******************************* --> | ||
<!-- BEGIN OF CAJA-PYTHON SYNOPSIS --> | ||
<!-- ******************************* --> | ||
|
||
<refsect1> | ||
<title>Synopsis</title> | ||
|
||
<classsynopsis language="python"> | ||
<ooclass><classname>Caja.OperationHandle</classname></ooclass> | ||
</classsynopsis> | ||
</refsect1> | ||
|
||
|
||
<!-- ********************************** --> | ||
<!-- BEGIN OF DESCRIPTION --> | ||
<!-- ********************************** --> | ||
|
||
<refsect1 id="description-operation-handle"> | ||
<title>Description</title> | ||
|
||
<para> | ||
A handle for a <link linkend="class-caja-python-file-info"><classname>Caja.FileInfo</classname></link> update operation in progress. The handle value is a non-zero signed integer that can be stored in a <classname>gobject.gpointer</classname>. It cannot be explicitly constructed and is always generated by Caja itself. | ||
</para> | ||
<para> | ||
As every instance is created and initialized by Caja, handle values may be used as keys within the extension. It is however possible to update these values with more convenient ones. | ||
</para> | ||
|
||
</refsect1> | ||
|
||
|
||
<!-- *********************************** --> | ||
<!-- BEGIN OF PROPERTIES --> | ||
<!-- *********************************** --> | ||
|
||
<refsect1> | ||
<title>Properties</title> | ||
|
||
<blockquote role="properties"> | ||
<informaltable pgwide="1" frame="none"> | ||
<tgroup cols="3"> | ||
<colspec column="1" colwidth="1in"/> | ||
<colspec column="2" colwidth="1in"/> | ||
<colspec column="3" colwidth="4in"/> | ||
<tbody> | ||
|
||
<row valign="top"> | ||
<entry>"handle"</entry> | ||
<entry>The unique handle value. Default value: preset by Caja.</entry> | ||
<entry>Read-Write</entry> | ||
</row> | ||
|
||
</tbody> | ||
</tgroup> | ||
</informaltable> | ||
</blockquote> | ||
</refsect1> | ||
|
||
</refentry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters