[pitivi] clipproperties: Align the button for removing an effect to the right
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] clipproperties: Align the button for removing an effect to the right
- Date: Thu, 17 Dec 2015 10:02:32 +0000 (UTC)
commit 45c0af63baa5d97c580d8686743e28e99b32e13e
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Nov 2 12:22:01 2015 +0100
clipproperties: Align the button for removing an effect to the right
If the toolbar buttons are aligned to the left it means they are for the
section below. It can be argued, but I think in this case the button applies
more to the section above with the effects list, not to how the effect
is configured.
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D549
pitivi/clipproperties.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index ae08ec2..7396483 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -125,11 +125,15 @@ class EffectProperties(Gtk.Expander, Loggable):
self._toolbar.get_style_context().add_class(
Gtk.STYLE_CLASS_INLINE_TOOLBAR)
self._toolbar.set_icon_size(Gtk.IconSize.SMALL_TOOLBAR)
+ spring = Gtk.SeparatorToolItem()
+ spring.set_draw(False)
+ spring.set_expand(True)
+ self._toolbar.insert(spring, 0)
removeEffectButton = Gtk.ToolButton()
removeEffectButton.set_icon_name("list-remove-symbolic")
removeEffectButton.set_label(_("Remove effect"))
removeEffectButton.set_is_important(True)
- self._toolbar.insert(removeEffectButton, 0)
+ self._toolbar.insert(removeEffectButton, -1)
# Treeview to display a list of effects (checkbox, effect type and
# name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]