text view: Allocate popovers

This commit is contained in:
Matthias Clasen 2019-05-04 18:45:14 +00:00
parent 6c3ffa1380
commit a33d4f0f49

View File

@ -57,6 +57,7 @@
#include "gtkmagnifierprivate.h" #include "gtkmagnifierprivate.h"
#include "gtkemojichooser.h" #include "gtkemojichooser.h"
#include "gtkpango.h" #include "gtkpango.h"
#include "gtknative.h"
#include "a11y/gtktextviewaccessibleprivate.h" #include "a11y/gtktextviewaccessibleprivate.h"
@ -4098,6 +4099,7 @@ gtk_text_view_size_allocate (GtkWidget *widget,
GdkRectangle right_rect; GdkRectangle right_rect;
GdkRectangle top_rect; GdkRectangle top_rect;
GdkRectangle bottom_rect; GdkRectangle bottom_rect;
GtkWidget *chooser;
text_view = GTK_TEXT_VIEW (widget); text_view = GTK_TEXT_VIEW (widget);
priv = text_view->priv; priv = text_view->priv;
@ -4172,6 +4174,13 @@ gtk_text_view_size_allocate (GtkWidget *widget,
* chance to run. So we do the work here. * chance to run. So we do the work here.
*/ */
gtk_text_view_flush_first_validate (text_view); gtk_text_view_flush_first_validate (text_view);
chooser = g_object_get_data (G_OBJECT (text_view), "gtk-emoji-chooser");
if (chooser)
gtk_native_check_resize (GTK_NATIVE (chooser));
if (priv->magnifier_popover)
gtk_native_check_resize (GTK_NATIVE (priv->magnifier_popover));
} }
static void static void