[gtk+/gtk-3-20] GtkWindow: Ensure the toplevel is realized before realizing popovers
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] GtkWindow: Ensure the toplevel is realized before realizing popovers
- Date: Sat, 30 Jul 2016 09:35:01 +0000 (UTC)
commit 5863a41f37bc2ba084068e295895f881b366bed6
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Apr 14 11:05:00 2016 +0200
GtkWindow: Ensure the toplevel is realized before realizing popovers
Otherwise those get a NULL parent window, which is toplevel-y enough
to disembody the popover.
https://bugzilla.gnome.org/show_bug.cgi?id=764060
gtk/gtkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fc18b68..6eac456 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -12291,7 +12291,8 @@ _gtk_window_set_popover_position (GtkWindow *window,
data->rect = *rect;
data->pos = pos;
- if (gtk_widget_is_visible (popover) && !data->window)
+ if (gtk_widget_is_visible (popover) && !data->window &&
+ gtk_widget_get_realized (GTK_WIDGET (window)))
{
popover_realize (popover, data, window);
popover_map (popover, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]