diff --git a/ChangeLog b/ChangeLog index 713482eee..ee8a1824e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ Deluge 0.9.04 - "1.0.0_RC4" (In Development) * Fix selecting torrents when right-clicking on them in torrentview and filestab * Fix new release check * Display 'total_wanted' instead of 'total_size' in Size column + * Fix displaying of torrents when language is not English Deluge 0.9.03 - "1.0.0_RC3" (21 July 2008) Core: diff --git a/deluge/ui/gtkui/sidebar.py b/deluge/ui/gtkui/sidebar.py index 2cb2b7f06..0db5857ca 100644 --- a/deluge/ui/gtkui/sidebar.py +++ b/deluge/ui/gtkui/sidebar.py @@ -49,24 +49,25 @@ class SideBar(component.Component): self.is_visible = True # Create the liststore - self.liststore = gtk.ListStore(str, gtk.gdk.Pixbuf) - self.liststore.append([_("All"), None]) - self.liststore.append([_("Downloading"), + # state str, str that's visible, icon + self.liststore = gtk.ListStore(str, str, gtk.gdk.Pixbuf) + self.liststore.append(["All", _("All"), None]) + self.liststore.append(["Downloading", _("Downloading"), gtk.gdk.pixbuf_new_from_file( deluge.common.get_pixmap("downloading16.png"))]) - self.liststore.append([_("Seeding"), + self.liststore.append(["Seeding", _("Seeding"), gtk.gdk.pixbuf_new_from_file( deluge.common.get_pixmap("seeding16.png"))]) - self.liststore.append([_("Queued"), + self.liststore.append(["Queued", _("Queued"), gtk.gdk.pixbuf_new_from_file( deluge.common.get_pixmap("queued16.png"))]) - self.liststore.append([_("Paused"), + self.liststore.append(["Paused", _("Paused"), gtk.gdk.pixbuf_new_from_file( deluge.common.get_pixmap("inactive16.png"))]) - self.liststore.append([_("Error"), + self.liststore.append(["Error", _("Error"), gtk.gdk.pixbuf_new_from_file( deluge.common.get_pixmap("alert16.png"))]) - self.liststore.append([_("Checking"), + self.liststore.append(["Checking", _("Checking"), gtk.gdk.pixbuf_new_from_file( deluge.common.get_pixmap("checking16.png"))]) # Create the column @@ -74,10 +75,10 @@ class SideBar(component.Component): column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED) render = gtk.CellRendererPixbuf() column.pack_start(render, expand=False) - column.add_attribute(render, 'pixbuf', 1) + column.add_attribute(render, 'pixbuf', 2) render = gtk.CellRendererText() column.pack_start(render, expand=True) - column.add_attribute(render, 'text', 0) + column.add_attribute(render, 'text', 1) self.label_view.append_column(column) self.label_view.set_model(self.liststore)