Changeset 480 for trunk/src/atk/Document.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/atk/Document.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/atk/Document.d
r466 r480 47 47 * module aliases: 48 48 * local aliases: 49 * overrides: 49 50 */ 50 51 … … 220 221 * Returns: a string indicating the document type 221 222 */ 222 public char[]getDocumentType()223 public string getDocumentType() 223 224 { 224 225 // const gchar* atk_document_get_document_type (AtkDocument *document); 225 return Str.toString(atk_document_get_document_type(atkDocument)) .dup;226 return Str.toString(atk_document_get_document_type(atkDocument)); 226 227 } 227 228 … … 244 245 * Returns: a string value associated with the named attribute for this document, or NULL if a value for attribute_name has not been specified for this document.Since ATK 1.12 245 246 */ 246 public char[] getAttributeValue(char[]attributeName)247 public string getAttributeValue(string attributeName) 247 248 { 248 249 // const gchar* atk_document_get_attribute_value (AtkDocument *document, const gchar *attribute_name); 249 return Str.toString(atk_document_get_attribute_value(atkDocument, Str.toStringz(attributeName))) .dup;250 return Str.toString(atk_document_get_attribute_value(atkDocument, Str.toStringz(attributeName))); 250 251 } 251 252 … … 257 258 * Returns: TRUE if value is successfully associated with attribute_name for this document, FALSE otherwise (e.g. if the document does not allow the attribute to be modified).Since ATK 1.12 258 259 */ 259 public int setAttributeValue( char[] attributeName, char[]attributeValue)260 public int setAttributeValue(string attributeName, string attributeValue) 260 261 { 261 262 // gboolean atk_document_set_attribute_value (AtkDocument *document, const gchar *attribute_name, const gchar *attribute_value); … … 282 283 * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of the document content as a whole, or NULL if the document content does not specify a locale.Signal DetailsThe "load-complete" signalvoid user_function (AtkDocument *atkdocument, gpointer user_data) : Run LastThe 'load-complete' signal is emitted when a pending load of a staticdocument has completed. This signal is to be expected by ATK clients if and when AtkDocument implementors expose ATK_STATE_BUSY. If the stateof an AtkObject which implements AtkDocument does not include ATK_STATE_BUSY,it should be safe for clients to assume that the AtkDocument's static contentsare fully loaded into the container. (Dynamic document contents shouldbe exposed via other signals.) 283 284 */ 284 public char[]getLocale()285 public string getLocale() 285 286 { 286 287 // const gchar* atk_document_get_locale (AtkDocument *document); 287 return Str.toString(atk_document_get_locale(atkDocument)) .dup;288 return Str.toString(atk_document_get_locale(atkDocument)); 288 289 } 289 290 }
