From 13b8ad41a6652c4b7ef8d65d09a16cc4822bfbb4 Mon Sep 17 00:00:00 2001
From: James Cameron <quozl@laptop.org>
Date: Tue, 27 Jul 2010 10:42:05 +1000
Subject: [PATCH] add missing tooltip for sensors sample recording interval #2121

There was a tooltip for the sampling interval for the Sound tab, but
not for the Sensors tab.  This patch copies it across as it currently
stands.
---
 sensor_toolbar.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sensor_toolbar.py b/sensor_toolbar.py
index dd92c5c..b799d00 100644
--- a/sensor_toolbar.py
+++ b/sensor_toolbar.py
@@ -96,6 +96,9 @@ class SensorToolbar(gtk.Toolbar):
         self.interval = [_('1/10 second'), _('1 second'), _('30 seconds'),
                          _('5 minutes'), _('30 minutes')]
 
+        if hasattr(self._loginterval_combo, 'set_tooltip_text'):
+            self._loginterval_combo.set_tooltip_text(_('Sampling interval'))
+
         self._interval_changed_id = self._loginterval_combo.connect("changed",
                                          self.loginterval_control)
 
-- 
1.7.1

