[meld: 2/12] issue: #dirdiff.fast_insert - make append faster; commit: using appropriate type for cols COL_SIZE,
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 2/12] issue: #dirdiff.fast_insert - make append faster; commit: using appropriate type for cols COL_SIZE,
- Date: Sun, 2 Sep 2018 00:27:33 +0000 (UTC)
commit 02ac488820166336447af49a62c86d66595af3d6
Author: hugosenari <hugosenari gmail com>
Date: Thu Aug 2 04:39:31 2018 -0300
issue: #dirdiff.fast_insert - make append faster; commit: using appropriate type for cols COL_SIZE,
COL_TIME and COL_PERMS
meld/dirdiff.py | 2 +-
meld/ui/cellrenderers.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 3d14b426..941ef221 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -208,7 +208,7 @@ COL_EMBLEM, COL_EMBLEM_SECONDARY, COL_SIZE, COL_TIME, COL_PERMS, COL_END = \
class DirDiffTreeStore(tree.DiffTreeStore):
def __init__(self, ntree):
- super().__init__(ntree, [str, str, object, object, object])
+ super().__init__(ntree, [str, str, int, float, int])
class CanonicalListing:
diff --git a/meld/ui/cellrenderers.py b/meld/ui/cellrenderers.py
index af8b28ec..76e90b14 100644
--- a/meld/ui/cellrenderers.py
+++ b/meld/ui/cellrenderers.py
@@ -40,7 +40,7 @@ class CellRendererDate(Gtk.CellRendererText):
self._datetime = value
timestamp = GObject.Property(
- type=object,
+ type=float,
nick="Unix timestamp to display",
getter=get_timestamp,
setter=set_timestamp,
@@ -74,7 +74,7 @@ class CellRendererByteSize(Gtk.CellRendererText):
self._bytesize = value
bytesize = GObject.Property(
- type=object,
+ type=int,
nick="Byte size to display",
getter=get_bytesize,
setter=set_bytesize,
@@ -104,7 +104,7 @@ class CellRendererFileMode(Gtk.CellRendererText):
self._file_mode = value
file_mode = GObject.Property(
- type=object,
+ type=int,
nick="Byte size to display",
getter=get_file_mode,
setter=set_file_mode,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]