summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkimcontext.c')
-rw-r--r--gtk/gtkimcontext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index 6b45160491..b8e9978ed3 100644
--- a/gtk/gtkimcontext.c
+++ b/gtk/gtkimcontext.c
@@ -361,8 +361,8 @@ gtk_im_context_reset (GtkIMContext *context)
* window.
**/
void
-gtk_im_context_set_cursor_location (GtkIMContext *context,
- GdkRectangle *area)
+gtk_im_context_set_cursor_location (GtkIMContext *context,
+ const GdkRectangle *area)
{
GtkIMContextClass *klass;
@@ -370,7 +370,7 @@ gtk_im_context_set_cursor_location (GtkIMContext *context,
klass = GTK_IM_CONTEXT_GET_CLASS (context);
if (klass->set_cursor_location)
- klass->set_cursor_location (context, area);
+ klass->set_cursor_location (context, (GdkRectangle *) area);
}
/**