[gtk/wip/matthiasc/context-menu] textview: Don't forget to allocate the context menu



commit bfa576c006f0221aa85dfd3664f7891a79f676f4
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 12 19:15:57 2019 +0000

    textview: Don't forget to allocate the context menu
    
    We do our own context menu, so we are responsible
    for allocating it.

 gtk/gtktextview.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 580837eeb6..cd27844604 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4150,6 +4150,9 @@ gtk_text_view_size_allocate (GtkWidget *widget,
 
   if (priv->magnifier_popover)
     gtk_native_check_resize (GTK_NATIVE (priv->magnifier_popover));
+
+  if (priv->popup_menu)
+    gtk_native_check_resize (GTK_NATIVE (priv->popup_menu));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]