[pitivi] widgets: Fix toggle buttons stretched vertically



commit 2a8b99392f54b316abc8b2d74ceac85c8e89c0f6
Author: Himanshu-Modi <himanshumodi33 gmail com>
Date:   Thu Mar 12 00:32:36 2020 +0530

    widgets: Fix toggle buttons stretched vertically
    
    Fixes #2419

 pitivi/utils/widgets.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 4b6409cf..1d33bb93 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -449,6 +449,7 @@ class ToggleWidget(Gtk.Box, DynamicWidget):
     def __init__(self, default=None, switch_button=None):
         Gtk.Box.__init__(self)
         DynamicWidget.__init__(self, default)
+        self.props.valign = Gtk.Align.CENTER
         if switch_button is None:
             self.switch_button = Gtk.Switch()
             self.pack_start(self.switch_button, expand=False, fill=False, padding=0)


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