[gtk+] Fix compile error in imquartz.c due to API change in GtkIMContext.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix compile error in imquartz.c due to API change in GtkIMContext.
- Date: Wed, 19 Jul 2017 01:45:12 +0000 (UTC)
commit a72c735b74502c2870b82eeb89cc05a69c110a83
Author: John Ralls <jralls ceridwen us>
Date: Tue Jul 18 14:42:26 2017 -0700
Fix compile error in imquartz.c due to API change in GtkIMContext.
modules/input/imquartz.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/modules/input/imquartz.c b/modules/input/imquartz.c
index 508ecf8..7e36378 100644
--- a/modules/input/imquartz.c
+++ b/modules/input/imquartz.c
@@ -268,13 +268,13 @@ quartz_reset (GtkIMContext *context)
}
static void
-quartz_set_client_window (GtkIMContext *context, GdkWindow *window)
+quartz_set_client_window (GtkIMContext *context, GtkWidget *widget)
{
GtkIMContextQuartz *qc = GTK_IM_CONTEXT_QUARTZ (context);
- GTK_NOTE (MISC, g_print ("quartz_set_client_window: %p\n", window));
+ GTK_NOTE (MISC, g_print ("quartz_set_client_window: %p\n", widget));
- qc->client_window = window;
+ qc->client_window = gtk_widget_get_parent_window (widget);
}
static void
@@ -372,7 +372,7 @@ gtk_im_context_quartz_class_init (GtkIMContextClass *klass)
klass->get_preedit_string = quartz_get_preedit_string;
klass->filter_keypress = quartz_filter_keypress;
klass->reset = quartz_reset;
- klass->set_client_window = quartz_set_client_window;
+ klass->set_client_widget = quartz_set_client_window;
klass->focus_in = quartz_focus_in;
klass->focus_out = quartz_focus_out;
klass->set_cursor_location = quartz_set_cursor_location;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]