[pitivi] widgets: Fix toggle buttons stretched vertically
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] widgets: Fix toggle buttons stretched vertically
- Date: Thu, 12 Mar 2020 08:52:36 +0000 (UTC)
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]