[meld] gutterrendererchunk: Keep track of whether we're rendering an action
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] gutterrendererchunk: Keep track of whether we're rendering an action
- Date: Sat, 15 Oct 2016 22:56:19 +0000 (UTC)
commit c50fc685919f8edaee3be28b778bc869bc51eb05
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Sep 25 08:54:06 2016 +1000
gutterrendererchunk: Keep track of whether we're rendering an action
meld/gutterrendererchunk.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/gutterrendererchunk.py b/meld/gutterrendererchunk.py
index e11330e..dc92b1d 100644
--- a/meld/gutterrendererchunk.py
+++ b/meld/gutterrendererchunk.py
@@ -156,6 +156,7 @@ class GutterRendererChunkAction(
if self.views[0].get_direction() == Gtk.TextDirection.RTL:
direction = 'LTR' if direction == 'RTL' else 'RTL'
+ self.is_action = False
self.action_map = self.ACTION_MAP[direction]
self.filediff = filediff
self.filediff.connect("action-mode-changed",
@@ -234,6 +235,7 @@ class GutterRendererChunkAction(
pixbuf = self.action_map.get(action)
else:
pixbuf = None
+ self.is_action = bool(pixbuf)
self.props.pixbuf = pixbuf
def on_container_mode_changed(self, container, mode):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]