mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Fix compile error in imquartz.c due to API change in GtkIMContext.
This commit is contained in:
parent
fb70bfb69b
commit
a72c735b74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user