diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-06 13:56:27 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-06 14:27:45 -0400 |
commit | 1f0024a7f03510b66ebba15f2a5f51880a9fb549 (patch) | |
tree | 9123db85bd82a78261f352e068eba1dea007dc8a /gtk/gtkpopover.c | |
parent | cb94c7d69e93cb34ba9db7d4cd06a52848044492 (diff) | |
download | gtk+-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.c | 3 |
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 |