popover: Request raise on ::show

This way latest shown popovers are ensured to be on top.

https://bugzilla.gnome.org/show_bug.cgi?id=756670
This commit is contained in:
Carlos Garnacho 2015-10-22 18:13:19 +02:00 committed by Matthias Clasen
parent fa3e0be80c
commit 9d1b8dfc61

View File

@ -1545,6 +1545,9 @@ gtk_popover_show (GtkWidget *widget)
{
GtkPopoverPrivate *priv = GTK_POPOVER (widget)->priv;
if (priv->window)
_gtk_window_raise_popover (priv->window, widget);
priv->visible = TRUE;
GTK_WIDGET_CLASS (gtk_popover_parent_class)->show (widget);