[totem/wip/hadess/fix-alt-tab-warning: 2/2] main: Fix warning on Alt-Tab
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/fix-alt-tab-warning: 2/2] main: Fix warning on Alt-Tab
- Date: Fri, 4 Feb 2022 21:37:50 +0000 (UTC)
commit b6f918ac3caf0c1c8f66aec1b0428e5bb7c1f574
Author: Bastien Nocera <hadess hadess net>
Date: Fri Feb 4 20:46:39 2022 +0100
main: Fix warning on Alt-Tab
Alt+Tab'ing the window after starting totem without any movies throws
an error:
(totem:511152): Gtk-CRITICAL **: 18:12:59.499: gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT
(widget, event)' failed
The widget in question is BaconVideoWidget for which we removed an explicit
gtk_widget_realize() while doing the GL port.
Reinstate that call for GTK 3.
Closes: #503
src/totem-object.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index bbb703e55..59d23f3ab 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -4321,6 +4321,7 @@ video_widget_create (TotemObject *totem)
GDK_ACTION_MOVE);
gtk_widget_show (GTK_WIDGET (totem->bvw));
+ gtk_widget_realize (GTK_WIDGET (totem->bvw));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]