fepitre / rpms / gtk3

Forked from rpms/gtk3 4 years ago
Clone

Blame SOURCES/0001-menu-Ensure-scroll-arrows-are-visible.patch

f3b657
From fef9f29eea12230498c7ecc9fb729fd8655a27fd Mon Sep 17 00:00:00 2001
f3b657
From: Benjamin Otte <otte@redhat.com>
f3b657
Date: Tue, 28 Jun 2016 16:03:02 -0400
f3b657
Subject: [PATCH] menu: Ensure scroll arrows are visible
f3b657
f3b657
This is a quickfix that ensures we rerun size allocation after computing
f3b657
the scrolling machinery.
f3b657
---
f3b657
 gtk/gtkmenu.c | 2 ++
f3b657
 1 file changed, 2 insertions(+)
f3b657
f3b657
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
f3b657
index 6862ca9..ad5574c 100644
f3b657
--- a/gtk/gtkmenu.c
f3b657
+++ b/gtk/gtkmenu.c
f3b657
@@ -1724,6 +1724,8 @@ gtk_menu_popup_for_device (GtkMenu             *menu,
f3b657
       source_device && gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN)
f3b657
     gtk_menu_shell_select_first (menu_shell, TRUE);
f3b657
 
f3b657
+  gtk_widget_queue_resize (GTK_WIDGET (menu));
f3b657
+
f3b657
   /* Once everything is set up correctly, map the toplevel */
f3b657
   gtk_widget_show (priv->toplevel);
f3b657
 
f3b657
-- 
f3b657
2.7.4
f3b657