Top | ![]() |
![]() |
![]() |
![]() |
GHashTable * | attributes | Read |
gchar * | filename | Read / Write / Construct Only |
gint | id | Read / Write / Construct Only |
MaliitAttributeExtension class can be used by application to override some aspect of IM plugin currently used, like the looks of action key.
void maliit_attribute_extension_attach_to_object (MaliitAttributeExtension *extension
,GObject *object
);
Attaches extension
to object
, so input context can retrieve it
from object
. Note that attaching extensions to non-input
GObject<!-- -->s does not have much sense.
extension |
The MaliitAttributeExtension which you want to be attached. |
[transfer none] |
object |
The GObject to which |
[transfer none] |
GHashTable *
maliit_attribute_extension_get_attributes
(MaliitAttributeExtension *extension
);
Gets all attributes of this extension that were set previously with
maliit_attribute_extension_set_attribute()
.
const gchar *
maliit_attribute_extension_get_filename
(MaliitAttributeExtension *extension
);
Gets filename of this extension that were set previously with
maliit_attribute_extension_new_with_filename()
.
int
maliit_attribute_extension_get_id (MaliitAttributeExtension *extension
);
Gets ID of this extension.
MaliitAttributeExtension *
maliit_attribute_extension_new (void
);
Creates new attribute extension, which is not associated with any file.
MaliitAttributeExtension *
maliit_attribute_extension_new_with_filename
(const gchar *filename
);
Creates new attribute extension, which is associated with file
given as filename
.
void maliit_attribute_extension_set_attribute (MaliitAttributeExtension *extension
,const gchar *key
,GVariant *value
);
Sets an attribute in extension
described by key
to value in value
.
extension |
The MaliitAttributeExtension which attribute you want to set. |
[transfer none] |
key |
Attribute name to update. |
[transfer none] |
value |
Attribute value to update. |
[transfer none] |
void maliit_attribute_extension_update_attribute (MaliitAttributeExtension *extension
,const gchar *key
,GVariant *value
);
Updates the extension
's attribute described by key
with
value
. This function always emits a
“extended-attribute-changed” signal.
extension |
The MaliitAttributeExtension which attribute you want to update. |
[transfer none] |
key |
Attribute name to update. |
[transfer none] |
value |
Attribute value to update. |
[transfer none] |
“filename”
property “filename” gchar *
Filename of the extension.
Flags: Read / Write / Construct Only
Default value: NULL
“extended-attribute-changed”
signalvoid user_function (MaliitAttributeExtension *extension, gchar *key, GVariant *value, gpointer user_data)
Informs application that input method server has changed the extended attribute.
extension |
The MaliitAttributeExtension emitting the signal. |
|
key |
A string specifying the target for the attribute. |
|
value |
A new value. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First