[gtk+/wip/attachment-rectangle] menu: realize menu top-level on popup
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attachment-rectangle] menu: realize menu top-level on popup
- Date: Tue, 25 Aug 2015 15:14:53 +0000 (UTC)
commit d10d37ca9bb0add58bd222b1d476f4ccf7b86602
Author: William Hua <william hua canonical com>
Date: Tue Aug 25 16:13:47 2015 +0100
menu: realize menu top-level on popup
gtk/gtkmenu.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 611ea1c..37a44f7 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -4568,6 +4568,7 @@ gtk_menu_position (GtkMenu *menu,
GdkPoint parent_origin;
GdkRectangle allocation;
+ gtk_widget_realize (priv->toplevel);
menu_window = gtk_widget_get_window (priv->toplevel);
if (menu_window)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]