[gtk+/wip/im-osk-position: 1/6] im: Add GtkIMContext::clear-area signal
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/im-osk-position: 1/6] im: Add GtkIMContext::clear-area signal
- Date: Fri, 3 Aug 2012 23:56:46 +0000 (UTC)
commit 92083238a30760365f0d039a0b5cdb0a5564fe30
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Jun 27 15:42:30 2012 +0200
im: Add GtkIMContext::clear-area signal
This signal may be emitted by on-screen-keyboard input methods
to request the UI to clear the monitor area covered by the
keyboard to avoid the focus to stay below it.
gtk/gtkimcontext.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index eb5b981..6f06068 100644
--- a/gtk/gtkimcontext.c
+++ b/gtk/gtkimcontext.c
@@ -104,6 +104,7 @@ enum {
COMMIT,
RETRIEVE_SURROUNDING,
DELETE_SURROUNDING,
+ CLEAR_AREA,
LAST_SIGNAL
};
@@ -297,6 +298,15 @@ gtk_im_context_class_init (GtkIMContextClass *klass)
G_TYPE_BOOLEAN, 2,
G_TYPE_INT,
G_TYPE_INT);
+
+ im_context_signals[CLEAR_AREA] =
+ g_signal_new (I_("clear-area"),
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ NULL, NULL, NULL,
+ _gtk_marshal_VOID__BOXED_BOXED,
+ G_TYPE_NONE, 2,
+ GDK_TYPE_RECTANGLE, GDK_TYPE_RECTANGLE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]