[gtk/wip/matthiasc/popup5: 93/115] text view: Allocate popovers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 93/115] text view: Allocate popovers
- Date: Sun, 19 May 2019 04:52:13 +0000 (UTC)
commit d2754651af2f107d3ddde205952c58ae135d7acf
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 4 18:45:14 2019 +0000
text view: Allocate popovers
gtk/gtktextview.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index c7c83c7d26..aaf90471cb 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -57,6 +57,7 @@
#include "gtkmagnifierprivate.h"
#include "gtkemojichooser.h"
#include "gtkpango.h"
+#include "gtknative.h"
#include "a11y/gtktextviewaccessibleprivate.h"
@@ -4098,6 +4099,7 @@ gtk_text_view_size_allocate (GtkWidget *widget,
GdkRectangle right_rect;
GdkRectangle top_rect;
GdkRectangle bottom_rect;
+ GtkWidget *chooser;
text_view = GTK_TEXT_VIEW (widget);
priv = text_view->priv;
@@ -4172,6 +4174,13 @@ gtk_text_view_size_allocate (GtkWidget *widget,
* chance to run. So we do the work here.
*/
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]