[totem] opensubtitles: Don't arbitrarily show and hide the tree view headers



commit c086e3c5ffbae252b979ec99c3e94f0c1bf5bd21
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jul 5 19:02:27 2011 +0100

    opensubtitles: Don't arbitrarily show and hide the tree view headers

 src/plugins/opensubtitles/opensubtitles.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 7095e65..cdbb4ce 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -473,7 +473,6 @@ class OpenSubtitles (GObject.Object, Peas.Activatable):
         # Set up the results treeview
         renderer = Gtk.CellRendererText ()
         self._tree_view.set_model (self._list_store)
-        self._tree_view.set_headers_visible (False)
         renderer.set_property ('ellipsize', Pango.EllipsizeMode.END)
         column = Gtk.TreeViewColumn (_(u"Subtitles"), renderer, text=0)
         column.set_resizable (True)
@@ -576,7 +575,6 @@ class OpenSubtitles (GObject.Object, Peas.Activatable):
 
     def _get_results (self, movie_hash, movie_size):
         self._list_store.clear ()
-        self._tree_view.set_headers_visible (False)
         self._apply_button.set_sensitive (False)
         self._find_button.set_sensitive (False)
 
@@ -604,7 +602,6 @@ class OpenSubtitles (GObject.Object, Peas.Activatable):
                                         sub_data['SubFormat'],
                                         sub_data['SubRating'],
                                         sub_data['IDSubtitleFile'],])
-                self._tree_view.set_headers_visible (True)
         else:
             self._apply_button.set_sensitive (False)
 
@@ -739,14 +736,12 @@ class OpenSubtitles (GObject.Object, Peas.Activatable):
                 if self._filename != new_mrl:
                     self._filename = new_mrl
                     self._list_store.clear ()
-                    self._tree_view.set_headers_visible (False)
                     self._apply_button.set_sensitive (False)
         else:
             self._action.set_sensitive (False)
             if self._dialog and self._dialog.is_active ():
                 self._filename = None
                 self._list_store.clear ()
-                self._tree_view.set_headers_visible (False)
                 self._apply_button.set_sensitive (False)
                 self._find_button.set_sensitive (False)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]