summaryrefslogtreecommitdiff
path: root/gtk/gtkpopover.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-06 13:56:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-06 14:27:45 -0400
commit1f0024a7f03510b66ebba15f2a5f51880a9fb549 (patch)
tree9123db85bd82a78261f352e068eba1dea007dc8a /gtk/gtkpopover.c
parentcb94c7d69e93cb34ba9db7d4cd06a52848044492 (diff)
downloadgtk+-1f0024a7f03510b66ebba15f2a5f51880a9fb549.tar.gz
tooltip: Add private api to allocate the window
Add private gtk_tooltip_maybe_allocate() function and use it from GtkWindow and GtkPopover. This will let us stop using the ::size-allocate signal, without having to redo all the tooltip management first. That will happen later.
Diffstat (limited to 'gtk/gtkpopover.c')
-rw-r--r--gtk/gtkpopover.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 6ffc7f7126..7b21e2b725 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -122,6 +122,7 @@
#include "gtksnapshot.h"
#include "gtkshortcutmanager.h"
#include "gtkbuildable.h"
+#include "gtktooltipprivate.h"
#include "gtkrender.h"
#include "gtkstylecontextprivate.h"
@@ -1417,6 +1418,8 @@ gtk_popover_size_allocate (GtkWidget *widget,
gtk_popover_update_shape (popover);
g_clear_pointer (&priv->arrow_render_node, gsk_render_node_unref);
}
+
+ gtk_tooltip_maybe_allocate (GTK_NATIVE (popover));
}
static void