diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-10 11:25:02 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-10 11:25:02 +0100 |
commit | 9b6739d55adfd302967595bbf74e69ca7862a238 (patch) | |
tree | e6f81506c3fa5f8d58b49d8508a951bc07d55a94 /gtk/spice-grabsequence.c | |
parent | a968466dcead744516c4ae5b9b30c17a6d9d51f7 (diff) |
gtk: complete API documentation
Diffstat (limited to 'gtk/spice-grabsequence.c')
-rw-r--r-- | gtk/spice-grabsequence.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gtk/spice-grabsequence.c b/gtk/spice-grabsequence.c index 2bb5822..f11a9a9 100644 --- a/gtk/spice-grabsequence.c +++ b/gtk/spice-grabsequence.c @@ -40,6 +40,13 @@ GType spice_grab_sequence_get_type(void) } +/** + * spice_grab_sequence_new: + * @nkeysyms: GDK_ key values + * @keysyms: number of key values in @nkeysyms + * + * Returns: a new #SpiceGrabSequence. + **/ SpiceGrabSequence *spice_grab_sequence_new(guint nkeysyms, guint *keysyms) { SpiceGrabSequence *sequence; @@ -53,6 +60,12 @@ SpiceGrabSequence *spice_grab_sequence_new(guint nkeysyms, guint *keysyms) } +/** + * spice_grab_sequence_new_from_string: + * @str: a string of '+' seperated key names (ex: "Control_L+Alt_L") + * + * Returns: a new #SpiceGrabSequence. + **/ SpiceGrabSequence *spice_grab_sequence_new_from_string(const gchar *str) { gchar **keysymstr; @@ -77,6 +90,12 @@ SpiceGrabSequence *spice_grab_sequence_new_from_string(const gchar *str) } +/** + * spice_grab_sequence_copy: + * @srcSequence: sequence to copy + * + * Returns: a copy of @srcSequence + **/ SpiceGrabSequence *spice_grab_sequence_copy(SpiceGrabSequence *srcSequence) { SpiceGrabSequence *sequence; @@ -90,12 +109,24 @@ SpiceGrabSequence *spice_grab_sequence_copy(SpiceGrabSequence *srcSequence) } +/** + * spice_grab_sequence_free: + * @sequence: + * + * Free @sequence. + **/ void spice_grab_sequence_free(SpiceGrabSequence *sequence) { g_slice_free(SpiceGrabSequence, sequence); } +/** + * spice_grab_sequence_as_string: + * @sequence: + * + * Returns: a newly allocated string representing the key sequence + **/ gchar *spice_grab_sequence_as_string(SpiceGrabSequence *sequence) { GString *str = g_string_new(""); |