forked from AuroraMiddleware/gtk
Merge branch 'bilelmoussaoui/4.2-annotations' into 'master'
IMContext: add since annotations to the new APIs See merge request GNOME/gtk!3315
This commit is contained in:
commit
574b0bf48a
@ -754,6 +754,8 @@ gtk_im_context_set_surrounding (GtkIMContext *context,
|
|||||||
* string. This function is expected to be called in response to the
|
* string. This function is expected to be called in response to the
|
||||||
* GtkIMContext::retrieve_surrounding signal, and will likely have no
|
* GtkIMContext::retrieve_surrounding signal, and will likely have no
|
||||||
* effect if called at other times.
|
* effect if called at other times.
|
||||||
|
*
|
||||||
|
* Since: 4.2
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_im_context_set_surrounding_with_selection (GtkIMContext *context,
|
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
|
* Returns: `TRUE` if surrounding text was provided; in this case
|
||||||
* you must free the result stored in `text`.
|
* you must free the result stored in `text`.
|
||||||
|
*
|
||||||
|
* Since: 4.2
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_im_context_get_surrounding_with_selection (GtkIMContext *context,
|
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,
|
gboolean gtk_im_context_get_surrounding (GtkIMContext *context,
|
||||||
char **text,
|
char **text,
|
||||||
int *cursor_index);
|
int *cursor_index);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_4_2
|
||||||
void gtk_im_context_set_surrounding_with_selection
|
void gtk_im_context_set_surrounding_with_selection
|
||||||
(GtkIMContext *context,
|
(GtkIMContext *context,
|
||||||
const char *text,
|
const char *text,
|
||||||
int len,
|
int len,
|
||||||
int cursor_index,
|
int cursor_index,
|
||||||
int anchor_index);
|
int anchor_index);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_4_2
|
||||||
gboolean gtk_im_context_get_surrounding_with_selection
|
gboolean gtk_im_context_get_surrounding_with_selection
|
||||||
(GtkIMContext *context,
|
(GtkIMContext *context,
|
||||||
char **text,
|
char **text,
|
||||||
|
Loading…
Reference in New Issue
Block a user