[gtk/wip/matthiasc/popup5: 152/186] tooltip: fix critical warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 152/186] tooltip: fix critical warnings
- Date: Tue, 28 May 2019 20:21:43 +0000 (UTC)
commit 9b9292ec44e40951591b8ae59aa1952831bb52a8
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 20 12:17:12 2019 +0000
tooltip: fix critical warnings
We might trigger a requery while unrooted.
Deal with it.
gtk/gtktooltip.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 59625f831d..2e7702574c 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -400,6 +400,9 @@ gtk_tooltip_trigger_tooltip_query (GtkWidget *widget)
toplevel = GTK_WIDGET (gtk_widget_get_root (widget));
+ if (toplevel == NULL)
+ return;
+
if (gtk_native_get_surface (GTK_NATIVE (toplevel)) != surface)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]