totem r6181 - in trunk: . src/plugins/opensubtitles



Author: icq
Date: Sun Mar 22 01:08:21 2009
New Revision: 6181
URL: http://svn.gnome.org/viewvc/totem?rev=6181&view=rev

Log:
2009-03-22  Ignacio Casal Quinteiro  <nacho resa gmail com>

        * src/plugins/opensubtitles/opensubtitles.py:
        * src/plugins/opensubtitles/opensubtitles.ui:
        If the sub name is long, do not resize the dialog (Fixes bug #576208).



Modified:
   trunk/ChangeLog
   trunk/src/plugins/opensubtitles/opensubtitles.py
   trunk/src/plugins/opensubtitles/opensubtitles.ui

Modified: trunk/src/plugins/opensubtitles/opensubtitles.py
==============================================================================
--- trunk/src/plugins/opensubtitles/opensubtitles.py	(original)
+++ trunk/src/plugins/opensubtitles/opensubtitles.py	Sun Mar 22 01:08:21 2009
@@ -6,6 +6,7 @@
 import xdg.BaseDirectory
 from os import sep
 import gettext
+import pango
 
 from hash import hashFile
 
@@ -359,14 +360,22 @@
         # Set up the results treeview 
         renderer = gtk.CellRendererText()
         self.treeview.set_model(self.liststore)
-	self.treeview.set_headers_visible(False)
-        self.treeview.insert_column_with_attributes(0, _("Subtitles"), renderer, text=0)
+        self.treeview.set_headers_visible(False)
+        renderer.set_property('ellipsize', pango.ELLIPSIZE_END)
+        column = gtk.TreeViewColumn(_("Subtitles"), renderer, text=0)
+        column.set_resizable(True)
+        column.set_expand(True)
+        self.treeview.append_column(column)
 	# translators comment:
 	# This is the file-type of the subtitle file detected
-        self.treeview.insert_column_with_attributes(1, _("Format"), renderer, text=1)
+        column = gtk.TreeViewColumn(_("Format"), renderer, text=1)
+        column.set_resizable(False)
+        self.treeview.append_column(column)
 	# translators comment:
 	# This is a rating of the quality of the subtitle
-        self.treeview.insert_column_with_attributes(2, _("Rating"), renderer, text=2)
+        column = gtk.TreeViewColumn(_("Rating"), renderer, text=2)
+        column.set_resizable(False)
+        self.treeview.append_column(column)
 
 	self.apply_button.set_sensitive(False)
 

Modified: trunk/src/plugins/opensubtitles/opensubtitles.ui
==============================================================================
--- trunk/src/plugins/opensubtitles/opensubtitles.ui	(original)
+++ trunk/src/plugins/opensubtitles/opensubtitles.ui	Sun Mar 22 01:08:21 2009
@@ -117,7 +117,7 @@
           <object class="GtkScrolledWindow" id="scrolledwindow1">
             <property name="visible">True</property>
             <property name="can_focus">True</property>
-            <property name="hscrollbar_policy">never</property>
+            <property name="hscrollbar_policy">automatic</property>
             <property name="vscrollbar_policy">automatic</property>
             <property name="shadow_type">etched-out</property>
             <child>



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