[totem] opensubtitles: Fix display of text on the progress bar
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] opensubtitles: Fix display of text on the progress bar
- Date: Fri, 8 Jul 2011 18:01:49 +0000 (UTC)
commit 74e344ff5e5446501332781acc733bce249758b0
Author: Philip Withnall <philip tecnocode co uk>
Date: Fri Jul 8 18:52:53 2011 +0100
opensubtitles: Fix display of text on the progress bar
Turns out that GTK+ helpfully disabled display of text on progress bars with
the change to 3.0 unless a show-text property was set to True.
Closes: bgo#654242
src/plugins/opensubtitles/opensubtitles.py | 12 ++++++------
src/plugins/opensubtitles/opensubtitles.ui | 5 ++++-
2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index d609c7c..d867fe9 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -174,7 +174,7 @@ class SearchThread (threading.Thread):
return results
def get_message (self):
- message = ''
+ message = _(u'Searching for subtitlesâ')
self._lock.acquire (True)
if self._done:
@@ -222,7 +222,7 @@ class DownloadThread (threading.Thread):
return subtitles
def get_message (self):
- message = ''
+ message = _(u'Downloading the subtitlesâ')
self._lock.acquire (True)
if self._done:
@@ -320,13 +320,13 @@ class OpenSubtitlesModel (object):
result = self._server.SearchSubtitles (self._token,
[searchdata])
except xmlrpclib.ProtocolError:
- message = _(u'Could not contact the OpenSubtitles website')
+ message = _(u'Could not contact the OpenSubtitles website.')
if result.get ('data'):
self._lock.release ()
return (result['data'], message)
else:
- message = _(u'No results found')
+ message = _(u'No results found.')
else:
message = log_in_message
@@ -338,7 +338,7 @@ class OpenSubtitlesModel (object):
self._lock.acquire (True)
message = ''
- error_message = _(u'Could not contact the OpenSubtitles website')
+ error_message = _(u'Could not contact the OpenSubtitles website.')
(log_in_success, log_in_message) = self._log_in ()
@@ -683,7 +683,7 @@ class OpenSubtitles (GObject.Object, Peas.Activatable):
if message:
self._progress.set_text (message)
else:
- self._progress.set_text ('')
+ self._progress.set_text (' ')
self._progress.set_fraction (0.0)
self._find_button.set_sensitive (True)
diff --git a/src/plugins/opensubtitles/opensubtitles.ui b/src/plugins/opensubtitles/opensubtitles.ui
index b94f52b..ad24241 100644
--- a/src/plugins/opensubtitles/opensubtitles.ui
+++ b/src/plugins/opensubtitles/opensubtitles.ui
@@ -95,7 +95,10 @@
</packing>
</child>
<child>
- <object class="GtkProgressBar" id="progress_bar"/>
+ <object class="GtkProgressBar" id="progress_bar">
+ <property name="text"> </property>
+ <property name="show-text">True</property>
+ </object>
<packing>
<property name="expand">False</property>
<property name="position">2</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]