[totem] Small UI and compatibility fixes to the OpenSubtitles plugin
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Subject: [totem] Small UI and compatibility fixes to the OpenSubtitles plugin
- Date: Sun, 19 Jul 2009 22:55:15 +0000 (UTC)
commit 5a1b3c0fe2c23e7993d6880efde2bfc08bde1e5c
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Jul 19 23:51:41 2009 +0100
Small UI and compatibility fixes to the OpenSubtitles plugin
2009-07-19 Philip Withnall <philip tecnocode co uk>
* src/plugins/opensubtitles/opensubtitles.py:
* src/plugins/opensubtitles/opensubtitles.ui: Fixed underlines in the
OpenSubtitles interface, and removed use of a GLib 2.18-only function
ChangeLog | 6 ++++++
src/plugins/opensubtitles/opensubtitles.py | 9 +++++++--
src/plugins/opensubtitles/opensubtitles.ui | 1 +
3 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fff3596..b63fcd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-19 Philip Withnall <philip tecnocode co uk>
+
+ * src/plugins/opensubtitles/opensubtitles.py:
+ * src/plugins/opensubtitles/opensubtitles.ui: Fixed underlines in the
+ OpenSubtitles interface, and removed use of a GLib 2.18-only function
+
2009-07-19 Bastien Nocera <hadess hadess net>
* browser-plugin/totem-plugin-viewer.c (main):
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 3c5c3bc..08f52ea 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -4,7 +4,7 @@ gobject.threads_init()
import xmlrpclib
import threading
import xdg.BaseDirectory
-from os import sep
+from os import sep, path, mkdir
import gettext
import pango
@@ -517,7 +517,12 @@ class OpenSubtitles(totem.Plugin):
if not filename:
directory = gio.File(xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep + 'subtitles' + sep)
if not directory.query_exists():
- directory.make_directory_with_parents()
+ if not path.exists (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep):
+ mkdir (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep)
+ if not path.exists (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep + 'subtitles' + sep):
+ mkdir (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep + 'subtitles' + sep)
+ # FIXME: We can't use this function until we depend on GLib (PyGObject) 2.18
+ # directory.make_directory_with_parents()
file = gio.File(self.filename)
movie_name = file.get_basename().rpartition('.')[0]
diff --git a/src/plugins/opensubtitles/opensubtitles.ui b/src/plugins/opensubtitles/opensubtitles.ui
index 66b1410..c90af47 100644
--- a/src/plugins/opensubtitles/opensubtitles.ui
+++ b/src/plugins/opensubtitles/opensubtitles.ui
@@ -150,6 +150,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">image_apply</property>
+ <property name="use-underline">True</property>
</object>
<packing>
<property name="expand">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]