[totem/wip/hadess/fix-alt-tab-warning] main: Fix warning on Alt-Tab




commit 7ae429a28d56e77f2b031d5b029e8e74aecfa54d
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]