|
|
18559f |
From a641a92e935a26bdaf104e76a324d533171aa7b4 Mon Sep 17 00:00:00 2001
|
|
|
18559f |
From: Pavel Grunt <pgrunt@redhat.com>
|
|
|
18559f |
Date: Mon, 27 Mar 2017 13:36:57 +0200
|
|
|
18559f |
Subject: [PATCH spice-gtk 6/8] widget: Always call gtk_widget_show_all
|
|
|
18559f |
To: spice-devel@lists.freedesktop.org
|
|
|
18559f |
|
|
|
18559f |
Since spice-gtk 0.32 SpiceDisplay widget internally has changed
|
|
|
18559f |
from the GtkDrawingArea to a GtkContainer.
|
|
|
18559f |
|
|
|
18559f |
Per gtk_widget_show documentation:
|
|
|
18559f |
"Remember that you have to show the containers containing a widget,
|
|
|
18559f |
in addition to the widget itself, before it will appear onscreen."
|
|
|
18559f |
|
|
|
18559f |
Let's always call gtk_widget_show_all, not just for gtk+ >= 3.16
|
|
|
18559f |
otherwise you may get a blackscreen with spice-gtk compiled against
|
|
|
18559f |
an old gtk+ version.
|
|
|
18559f |
|
|
|
18559f |
Fixes:
|
|
|
18559f |
https://bugs.freedesktop.org/show_bug.cgi?id=100251
|
|
|
18559f |
|
|
|
18559f |
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
18559f |
(cherry picked from commit 721dbe9926c0e35e462595346829d55d7820ea05)
|
|
|
18559f |
---
|
|
|
18559f |
src/spice-widget.c | 2 +-
|
|
|
18559f |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
18559f |
|
|
|
18559f |
diff --git a/src/spice-widget.c b/src/spice-widget.c
|
|
|
18559f |
index 06e332f..cc0a705 100644
|
|
|
18559f |
--- a/src/spice-widget.c
|
|
|
18559f |
+++ b/src/spice-widget.c
|
|
|
18559f |
@@ -645,9 +645,9 @@ static void spice_display_init(SpiceDisplay *display)
|
|
|
18559f |
"signal::realize", gl_area_realize, display,
|
|
|
18559f |
NULL);
|
|
|
18559f |
gtk_stack_add_named(d->stack, area, "gl-area");
|
|
|
18559f |
- gtk_widget_show_all(widget);
|
|
|
18559f |
#endif
|
|
|
18559f |
#endif
|
|
|
18559f |
+ gtk_widget_show_all(widget);
|
|
|
18559f |
|
|
|
18559f |
g_signal_connect(display, "grab-broken-event", G_CALLBACK(grab_broken), NULL);
|
|
|
18559f |
g_signal_connect(display, "grab-notify", G_CALLBACK(grab_notify), NULL);
|
|
|
18559f |
--
|
|
|
18559f |
2.12.1
|
|
|
18559f |
|