[gtk/kill-register-surface: 2/10] ime: Stop using gdk_surface_get_user_data
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-register-surface: 2/10] ime: Stop using gdk_surface_get_user_data
- Date: Sat, 23 Feb 2019 23:57:56 +0000 (UTC)
commit 11c7b9e164c26de84f8d1afc20430059e0b25e25
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 23 16:52:23 2019 -0500
ime: Stop using gdk_surface_get_user_data
Use gtk_root_get_for_surface instead.
gtk/gtkimcontextime.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkimcontextime.c b/gtk/gtkimcontextime.c
index 62961eb3b3..e18795c89e 100644
--- a/gtk/gtkimcontextime.c
+++ b/gtk/gtkimcontextime.c
@@ -29,6 +29,7 @@
#include "gtkimcontextime.h"
#include "gtkimmoduleprivate.h"
+#include "gtkroot.h"
#include "imm-extra.h"
@@ -878,9 +879,9 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
if (!context_ime->client_surface)
return;
- gdk_surface_get_user_data (context_ime->client_surface, (gpointer) &widget);
- if (!GTK_IS_WIDGET (widget))
- return;
+ widget = gtk_root_get_for_surface (context_ime->client_surface);
+ if (!widget)
+ return
hwnd = gdk_win32_surface_get_impl_hwnd (context_ime->client_surface);
himc = ImmGetContext (hwnd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]