[gtk/wip/carlosg/text-handle-natives: 685/685] gtkpopover: Re-present surface if position/pointing-to change while visible
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/text-handle-natives: 685/685] gtkpopover: Re-present surface if position/pointing-to change while visible
- Date: Thu, 27 Feb 2020 17:19:17 +0000 (UTC)
commit 6e642a1659eee6dd20973efa6c59532961267590
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Feb 27 18:08:46 2020 +0100
gtkpopover: Re-present surface if position/pointing-to change while visible
This ensures the popover will follow the new position parameters.
gtk/gtkpopover.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 85c280c484..9b7d952e36 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1615,6 +1615,9 @@ gtk_popover_set_pointing_to (GtkPopover *popover,
priv->has_pointing_to = FALSE;
g_object_notify_by_pspec (G_OBJECT (popover), properties[PROP_POINTING_TO]);
+
+ if (gtk_widget_is_visible (GTK_WIDGET (popover)))
+ present_popup (popover);
}
/**
@@ -1684,6 +1687,9 @@ gtk_popover_set_position (GtkPopover *popover,
priv->final_position = position;
g_object_notify_by_pspec (G_OBJECT (popover), properties[PROP_POSITION]);
+
+ if (gtk_widget_is_visible (GTK_WIDGET (popover)))
+ present_popup (popover);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]