[gtk/wip/matthiasc/popup5: 88/108] text: Allocate popovers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 88/108] text: Allocate popovers
- Date: Sun, 19 May 2019 20:59:45 +0000 (UTC)
commit b2b81be0d8f36768327a64f04fc353201f823fda
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 4 18:01:29 2019 +0000
text: Allocate popovers
We need to do the same thing the menu button
does, and call gtk_native_check_resize for
all our popovers
gtk/gtktext.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index fc908c358a..531fb52285 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -66,6 +66,7 @@
#include "gtktypebuiltins.h"
#include "gtkwidgetprivate.h"
#include "gtkwindow.h"
+#include "gtknative.h"
#include "a11y/gtktextaccessible.h"
@@ -2174,6 +2175,7 @@ gtk_text_size_allocate (GtkWidget *widget,
{
GtkText *self = GTK_TEXT (widget);
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
+ GtkEmojiChooser *chooser;
priv->text_baseline = baseline;
@@ -2189,6 +2191,16 @@ gtk_text_size_allocate (GtkWidget *widget,
*/
if (gtk_widget_get_realized (widget))
gtk_text_recompute (self);
+
+ chooser = g_object_get_data (G_OBJECT (self), "gtk-emoji-chooser");
+ if (chooser)
+ gtk_native_check_resize (GTK_NATIVE (chooser));
+
+ if (priv->emoji_completion)
+ gtk_native_check_resize (GTK_NATIVE (priv->emoji_completion));
+
+ 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]