[pitivi] Use symbolic icons for the "Reset to default value" dynamic widget buttons



commit f2389adc64161f5eae4b661bcc69a6322a35c011
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Thu Jan 31 22:55:43 2013 -0500

    Use symbolic icons for the "Reset to default value" dynamic widget buttons

 pitivi/dialogs/prefs.py |    3 ++-
 pitivi/utils/widgets.py |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index ba80b39..2a1ee6b 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -272,10 +272,11 @@ class PreferencesDialog():
                 else:
                     label_widget = Gtk.Label(label=_(label) + ":")
                 icon = Gtk.Image()
-                icon.set_from_stock('gtk-clear', Gtk.IconSize.MENU)
+                icon.set_from_icon_name("edit-clear-all-symbolic", Gtk.IconSize.MENU)
                 revert = Gtk.Button()
                 revert.add(icon)
                 revert.set_tooltip_text(_("Reset to default value"))
+                revert.set_relief(Gtk.ReliefStyle.NONE)
                 revert.set_sensitive(not self.settings.isDefault(attrname))
                 revert.connect("clicked", self._resetOptionCb, attrname)
                 revert.show_all()
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 783d8e8..889052b 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -880,10 +880,11 @@ class GstElementSettingsWidget(Gtk.VBox, Loggable):
 
     def _getResetToDefaultValueButton(self, prop, widget):
         icon = Gtk.Image()
-        icon.set_from_stock('gtk-clear', Gtk.IconSize.MENU)
+        icon.set_from_icon_name("edit-clear-all-symbolic", Gtk.IconSize.MENU)
         button = Gtk.Button()
         button.add(icon)
         button.set_tooltip_text(_("Reset to default value"))
+        button.set_relief(Gtk.ReliefStyle.NONE)
         button.connect('clicked', self._defaultBtnClickedCb, widget)
         return button
 



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