From 268a26521102e6938e6a7419911991ab6de9caf7 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Thu, 8 Sep 2005 22:19:26 +0000 Subject: [PATCH] moved time column before progress column. It still looks disgusting. Suggestions for the layout are welcome! --- src/filetransfers_window.py | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index ad481fcf8..7f5a3dccb 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -44,9 +44,9 @@ GTKGUI_GLADE = 'gtkgui.glade' C_IMAGE = 0 C_LABELS = 1 C_FILE = 2 -C_PROGRESS = 3 -C_PERCENT = 4 -C_TIME = 5 +C_TIME = 3 +C_PROGRESS = 4 +C_PERCENT = 5 C_SID = 6 @@ -68,7 +68,7 @@ class FileTransfersWindow: self.notify_ft_checkbox.set_active(True) else: self.notify_ft_checkbox.set_active(False) - self.model = gtk.ListStore(gtk.gdk.Pixbuf, str, str, str, int, str, str) + self.model = gtk.ListStore(gtk.gdk.Pixbuf, str, str, str, str, int, str) self.tree.set_model(self.model) col = gtk.TreeViewColumn() @@ -96,17 +96,6 @@ class FileTransfersWindow: col.set_expand(True) self.tree.append_column(col) - col = gtk.TreeViewColumn(_('Progress')) - renderer = gtk.CellRendererProgress() - renderer.set_property('yalign', 0.5) - renderer.set_property('xalign', 0.5) - col.pack_start(renderer, expand = False) - col.set_expand(False) - col.add_attribute(renderer, 'text' , C_PROGRESS) - col.add_attribute(renderer, 'value' , C_PERCENT) - col.set_resizable(True) - self.tree.append_column(col) - col = gtk.TreeViewColumn(_('Time')) renderer = gtk.CellRendererText() col.pack_start(renderer, expand=False) @@ -119,6 +108,16 @@ class FileTransfersWindow: col.set_expand(False) self.tree.append_column(col) + col = gtk.TreeViewColumn(_('Progress')) + renderer = gtk.CellRendererProgress() + renderer.set_property('yalign', 0.5) + renderer.set_property('xalign', 0.5) + col.pack_start(renderer, expand = False) + col.set_expand(False) + col.add_attribute(renderer, 'text' , C_PROGRESS) + col.add_attribute(renderer, 'value' , C_PERCENT) + col.set_resizable(True) + self.tree.append_column(col) self.set_images() self.tree.get_selection().set_mode(gtk.SELECTION_SINGLE)