Ticket #2121: 0001-add-missing-tooltip-for-sensors-sample-recording-int.patch

File 0001-add-missing-tooltip-for-sensors-sample-recording-int.patch, 1.1 KB (added by quozl, 14 years ago)

That code is in the Sound toolbar, but I was talking about the Sensors toolbar. Here's the patch I propose as solution for this ticket.

  • sensor_toolbar.py

    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 b class SensorToolbar(gtk.Toolbar): 
    9696        self.interval = [_('1/10 second'), _('1 second'), _('30 seconds'),
    9797                         _('5 minutes'), _('30 minutes')]
    9898
     99        if hasattr(self._loginterval_combo, 'set_tooltip_text'):
     100            self._loginterval_combo.set_tooltip_text(_('Sampling interval'))
     101
    99102        self._interval_changed_id = self._loginterval_combo.connect("changed",
    100103                                         self.loginterval_control)
    101104