summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-04 20:46:39 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-04 21:37:49 +0000
commitb6f918ac3caf0c1c8f66aec1b0428e5bb7c1f574 (patch)
treea2108e4ea3dc8075df93bd852a4ff9fb7efb3865
parente5e4457c43e1c585c77baa132b99d286535daf86 (diff)
downloadtotem-b6f918ac3caf0c1c8f66aec1b0428e5bb7c1f574.tar.gz
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
-rw-r--r--src/totem-object.c1
1 files changed, 1 insertions, 0 deletions
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));
}
/**