[pitivi: 6/41] prefs.py: use icons for reset buttons for consistency



commit cc9747cc451fef872126cc2b45da5fb51215ccc3
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sun Jul 24 21:13:11 2011 -0400

    prefs.py: use icons for reset buttons for consistency

 pitivi/ui/prefs.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/prefs.py b/pitivi/ui/prefs.py
index 15f6292..7278695 100644
--- a/pitivi/ui/prefs.py
+++ b/pitivi/ui/prefs.py
@@ -267,9 +267,14 @@ class PreferencesDialog():
                 widget.connectValueChanged(self._valueChanged, widget,
                     attrname)
                 self.widgets[attrname] = widget
-                revert = gtk.Button(_("Reset"))
+                icon = gtk.Image()
+                icon.set_from_stock('gtk-clear', gtk.ICON_SIZE_MENU)
+                revert = gtk.Button()
+                revert.add(icon)
+                revert.set_tooltip_text(_("Reset to default value"))
                 revert.set_sensitive(not self.settings.isDefault(attrname))
                 revert.connect("clicked", self._resetOptionCb, attrname)
+                revert.show_all()
                 self.resets[attrname] = revert
                 prefs[label] = (label_widget, widget, revert)
 



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