[totem/wip/hadess/widget-cleanup: 3/3] main: Remove yet another intermediate box widget




commit 84b5c7263f6bc8ca825276ffc74e76a7a9dd723b
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 8 13:16:32 2022 +0100

    main: Remove yet another intermediate box widget
    
    tmw_bvw_box contained the video widget and an unused revealer.

 data/totem.ui      | 17 -----------------
 src/totem-object.c |  7 +++----
 2 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/data/totem.ui b/data/totem.ui
index f80643215..e70da8863 100644
--- a/data/totem.ui
+++ b/data/totem.ui
@@ -186,23 +186,6 @@
       <object class="GtkStack" id="tmw_main_stack">
         <property name="visible">True</property>
         <property name="homogeneous">True</property>
-        <child>
-          <object class="GtkOverlay" id="tmw_bvw_box">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <child type="overlay">
-              <object class="GtkRevealer" id="toolbar-revealer">
-                <property name="halign">fill</property>
-                <property name="valign">start</property>
-                <property name="visible">False</property>
-                <property name="no-show-all">True</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="name">player</property>
-          </packing>
-        </child>
       </object>
     </child>
   </object>
diff --git a/src/totem-object.c b/src/totem-object.c
index f8aea4ef1..b60b67302 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -4238,7 +4238,6 @@ void
 video_widget_create (TotemObject *totem)
 {
        GError *err = NULL;
-       GtkContainer *container;
 
        totem->bvw = BACON_VIDEO_WIDGET (bacon_video_widget_new (&err));
 
@@ -4297,9 +4296,9 @@ video_widget_create (TotemObject *totem)
                          G_CALLBACK (on_bvw_motion_notify_cb),
                          totem);
 
-       container = GTK_CONTAINER (gtk_builder_get_object (totem->xml, "tmw_bvw_box"));
-       gtk_container_add (container,
-                       GTK_WIDGET (totem->bvw));
+       gtk_stack_add_named (GTK_STACK (totem->stack),
+                            GTK_WIDGET (totem->bvw),
+                            "player");
 
        totem->bvw_grid = gtk_grid_new ();
        gtk_overlay_add_overlay (GTK_OVERLAY (totem->bvw), totem->bvw_grid);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]