[pitivi] widgets: Remove the keyframes button border
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] widgets: Remove the keyframes button border
- Date: Sun, 24 Jan 2016 21:03:21 +0000 (UTC)
commit 38df2cc3aa9fc89046056d0871c417c04cba7eb1
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Thu Jan 21 00:35:57 2016 +0100
widgets: Remove the keyframes button border
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D696
pitivi/utils/widgets.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index fe9fff9..3a9eca6 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -711,7 +711,7 @@ class GstElementSettingsWidget(Gtk.Box, Loggable):
if (controllable and
not isinstance(widget, ToggleWidget) and
not isinstance(widget, ChoiceWidget)):
- keyframe_toggle_button = self._getKeyframeToggleButton(prop)
+ keyframe_toggle_button = self._createKeyframeToggleButton(prop)
self.keyframeToggleButtons[keyframe_toggle_button] = widget
grid.attach(keyframe_toggle_button, 3, y, 1, 1)
@@ -728,7 +728,7 @@ class GstElementSettingsWidget(Gtk.Box, Loggable):
if binding:
widget.set_sensitive(False)
self.bindings[widget] = binding
- button = self._getResetToDefaultValueButton(prop, widget)
+ button = self._createResetToDefaultValueButton(prop, widget)
grid.attach(button, 2, y, 1, 1)
self.buttons[button] = widget
@@ -740,15 +740,16 @@ class GstElementSettingsWidget(Gtk.Box, Loggable):
widget = self.properties[pspec]
widget.setWidgetValue(self.element.get_child_property(pspec.name)[1])
- def _getKeyframeToggleButton(self, prop):
+ def _createKeyframeToggleButton(self, prop):
button = Gtk.ToggleButton()
button.set_label("◇")
button.props.focus_on_click = False # Avoid the ugly selection outline
button.set_tooltip_text(_("Show keyframes for this value"))
+ button.set_relief(Gtk.ReliefStyle.NONE)
button.connect('toggled', self._showKeyframesToggledCb, prop)
return button
- def _getResetToDefaultValueButton(self, unused_prop, widget):
+ def _createResetToDefaultValueButton(self, unused_prop, widget):
icon = Gtk.Image()
icon.set_from_icon_name("edit-clear-all-symbolic", Gtk.IconSize.MENU)
button = Gtk.Button()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]