[pitivi: 23/41] Add tooltips to preference widgets
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 23/41] Add tooltips to preference widgets
- Date: Sat, 13 Aug 2011 12:08:10 +0000 (UTC)
commit b81f5d931175fb69f21687c2c62340f3771b2319
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Sun Jul 24 23:58:01 2011 -0400
Add tooltips to preference widgets
pitivi/ui/prefs.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/prefs.py b/pitivi/ui/prefs.py
index 49c05ea..41e321a 100644
--- a/pitivi/ui/prefs.py
+++ b/pitivi/ui/prefs.py
@@ -280,14 +280,14 @@ class PreferencesDialog():
revert.connect("clicked", self._resetOptionCb, attrname)
revert.show_all()
self.resets[attrname] = revert
- prefs[label] = (label_widget, widget, revert)
+ prefs[label] = (label_widget, widget, description, revert)
# Sort widgets: I think we only want to sort by the non-localized
# names, so options appear in the same place across locales ...
# but then I may be wrong
for y, unlocalized in enumerate(sorted(prefs)):
- label, widget, revert = prefs[unlocalized]
+ label, widget, description, revert = prefs[unlocalized]
if isinstance(widget, dynamic.ToggleWidget):
# Avoid the separating the label from the checkbox
widget.set_label(label.get_text())
@@ -295,10 +295,12 @@ class PreferencesDialog():
widgets.attach(revert, 2, 3, y, y + 1, xoptions=0, yoptions=0)
else:
label.set_alignment(1.0, 0.5)
+ label.set_tooltip_text(description)
widgets.attach(label, 0, 1, y, y + 1, xoptions=gtk.FILL, yoptions=0)
widgets.attach(widget, 1, 2, y, y + 1, yoptions=0)
widgets.attach(revert, 2, 3, y, y + 1, xoptions=0, yoptions=0)
label.show()
+ widget.set_tooltip_text(description)
widget.show()
revert.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]