[Sugar-devel] [PATCH Record] Fix tooltips in radio buttons

godiard at sugarlabs.org godiard at sugarlabs.org
Mon Oct 3 07:43:46 EDT 2011


From: Gonzalo Odiard <godiard at gmail.com>

Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
---
 record.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/record.py b/record.py
index 5c06f20..dba46af 100644
--- a/record.py
+++ b/record.py
@@ -137,7 +137,7 @@ class Record(activity.Activity):
             self._photo_button.props.group = tool_group
             tool_group = self._photo_button
             self._photo_button.props.icon_name = 'camera-external'
-            self._photo_button.props.label = _('Photo')
+            self._photo_button.set_tooltip(_('Photo'))
             self._photo_button.mode = constants.MODE_PHOTO
             self._photo_button.connect('clicked', self._mode_button_clicked)
             self._toolbar.insert(self._photo_button, -1)
@@ -145,7 +145,7 @@ class Record(activity.Activity):
             self._video_button = RadioToolButton()
             self._video_button.props.group = tool_group
             self._video_button.props.icon_name = 'media-video'
-            self._video_button.props.label = _('Video')
+            self._video_button.set_tooltip(_('Video'))
             self._video_button.mode = constants.MODE_VIDEO
             self._video_button.connect('clicked', self._mode_button_clicked)
             self._toolbar.insert(self._video_button, -1)
@@ -156,7 +156,7 @@ class Record(activity.Activity):
         self._audio_button = RadioToolButton()
         self._audio_button.props.group = tool_group
         self._audio_button.props.icon_name = 'media-audio'
-        self._audio_button.props.label = _('Audio')
+        self._audio_button.set_tooltip(_('Audio'))
         self._audio_button.mode = constants.MODE_AUDIO
         self._audio_button.connect('clicked', self._mode_button_clicked)
         self._toolbar.insert(self._audio_button, -1)
-- 
1.7.4.4



More information about the Sugar-devel mailing list