mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
IMContext: add since annotations to the new APIs
This commit is contained in:
parent
2ce92085e1
commit
0b100229e3
@ -754,6 +754,8 @@ gtk_im_context_set_surrounding (GtkIMContext *context,
|
||||
* string. This function is expected to be called in response to the
|
||||
* GtkIMContext::retrieve_surrounding signal, and will likely have no
|
||||
* effect if called at other times.
|
||||
*
|
||||
* Since: 4.2
|
||||
*/
|
||||
void
|
||||
gtk_im_context_set_surrounding_with_selection (GtkIMContext *context,
|
||||
@ -853,6 +855,8 @@ gtk_im_context_get_surrounding (GtkIMContext *context,
|
||||
*
|
||||
* Returns: `TRUE` if surrounding text was provided; in this case
|
||||
* you must free the result stored in `text`.
|
||||
*
|
||||
* Since: 4.2
|
||||
*/
|
||||
gboolean
|
||||
gtk_im_context_get_surrounding_with_selection (GtkIMContext *context,
|
||||
|
@ -150,14 +150,14 @@ GDK_DEPRECATED_IN_4_2_FOR(gtk_im_context_get_surrounding_with_selection)
|
||||
gboolean gtk_im_context_get_surrounding (GtkIMContext *context,
|
||||
char **text,
|
||||
int *cursor_index);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_AVAILABLE_IN_4_2
|
||||
void gtk_im_context_set_surrounding_with_selection
|
||||
(GtkIMContext *context,
|
||||
const char *text,
|
||||
int len,
|
||||
int cursor_index,
|
||||
int anchor_index);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_AVAILABLE_IN_4_2
|
||||
gboolean gtk_im_context_get_surrounding_with_selection
|
||||
(GtkIMContext *context,
|
||||
char **text,
|
||||
|
Loading…
Reference in New Issue
Block a user