[gtk/wip/matthiasc/popup5: 125/145] IME IM: Be able to handle NULL widget correctly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 125/145] IME IM: Be able to handle NULL widget correctly
- Date: Sun, 26 May 2019 19:12:14 +0000 (UTC)
commit d983a1cc5bf4f5a571be10aec6a4467a1e61fda2
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Tue May 21 21:29:38 2019 +0000
IME IM: Be able to handle NULL widget correctly
gtk/gtkimcontextime.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkimcontextime.c b/gtk/gtkimcontextime.c
index 70f54ed1be..8b08d7179d 100644
--- a/gtk/gtkimcontextime.c
+++ b/gtk/gtkimcontextime.c
@@ -255,7 +255,10 @@ gtk_im_context_ime_set_client_widget (GtkIMContext *context,
g_return_if_fail (GTK_IS_IM_CONTEXT_IME (context));
context_ime = GTK_IM_CONTEXT_IME (context);
- client_surface = gtk_native_get_surface (gtk_widget_get_native (widget));
+
+ client_surface = NULL;
+ if (widget)
+ client_surface = gtk_native_get_surface (gtk_widget_get_native (widget));
if (client_surface)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]