[pitivi: 5/10] effectlist: Add the name of effects tooltips. Fixes bug #630371.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 5/10] effectlist: Add the name of effects tooltips. Fixes bug #630371.
- Date: Sun, 26 Sep 2010 07:44:55 +0000 (UTC)
commit 77d91b1856d38cb9cfb01935f305cdc7a7d2b056
Author: Thibault Saunier <tsaunier gnome org>
Date: Thu Sep 23 14:03:38 2010 +0200
effectlist: Add the name of effects tooltips. Fixes bug #630371.
pitivi/ui/effectlist.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index 02341c6..4875356 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -277,13 +277,16 @@ class EffectList(gtk.VBox, Loggable):
treeview.set_tooltip_row (tooltip, context[1][0])
name = self.modelFilter.get_value(context[2], COL_ELEMENT_NAME)
- if self._current_effect_name != name:
+ if self._current_effect_name != name:
self._current_effect_name = name
icon = self.app.effects.getEffectIcon(name)
self._current_tooltip_icon = icon
+ longname = self.modelFilter.get_value(context[2], COL_NAME_TEXT).strip()
+ txt = "<b>%s:</b>\n%s" % (longname,
+ self.modelFilter.get_value(context[2], COL_DESC_TEXT))
tooltip.set_icon(self._current_tooltip_icon)
- tooltip.set_text(self.modelFilter.get_value(context[2], COL_DESC_TEXT))
+ tooltip.set_markup(txt)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]