[gtk/matthiasc/for-master: 2/3] popover: Queue a resize when position changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 2/3] popover: Queue a resize when position changes
- Date: Sun, 14 Feb 2021 01:27:28 +0000 (UTC)
commit b3a055a9b751cccd26ba5a89d04afa778f73cca8
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 13 20:25:24 2021 -0500
popover: Queue a resize when position changes
At least with an arrow, changing the position
requires a resize
gtk/gtkpopover.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 3d3325a09e..6d10169073 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -2014,6 +2014,8 @@ gtk_popover_set_position (GtkPopover *popover,
g_object_notify_by_pspec (G_OBJECT (popover), properties[PROP_POSITION]);
+ gtk_widget_queue_resize (GTK_WIDGET (popover));
+
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]