summaryrefslogtreecommitdiff
path: root/bus/inputcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/inputcontext.c')
-rw-r--r--bus/inputcontext.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/bus/inputcontext.c b/bus/inputcontext.c
index a2d1d52c..512a0ec3 100644
--- a/bus/inputcontext.c
+++ b/bus/inputcontext.c
@@ -1,8 +1,8 @@
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/* vim:set et sts=4: */
/* ibus - The Input Bus
- * Copyright (C) 2008-2013 Peng Huang <shawn.p.huang@gmail.com>
- * Copyright (C) 2008-2013 Red Hat, Inc.
+ * Copyright (C) 2008-2014 Peng Huang <shawn.p.huang@gmail.com>
+ * Copyright (C) 2008-2014 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -2459,3 +2459,15 @@ bus_input_context_get_client (BusInputContext *context)
g_assert (BUS_IS_INPUT_CONTEXT (context));
return context->client;
}
+
+void
+bus_input_context_get_content_type (BusInputContext *context,
+ guint *purpose,
+ guint *hints)
+{
+ g_assert (BUS_IS_INPUT_CONTEXT (context));
+ g_return_if_fail (purpose != NULL && hints != NULL);
+
+ *purpose = context->purpose;
+ *hints = context->hints;
+}