[gedit-plugins] Update how the git plugin show changes in the file browser
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Update how the git plugin show changes in the file browser
- Date: Wed, 3 Jul 2013 21:45:29 +0000 (UTC)
commit 397c1e7364a85bc87caf7e97d56bb3b48d06635b
Author: Garrett Regier <garrett yorba org>
Date: Wed Jul 3 14:44:40 2013 -0700
Update how the git plugin show changes in the file browser
Use bold for new and modified files and strikethrough for deleted.
plugins/git/git/windowactivatable.py | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/plugins/git/git/windowactivatable.py b/plugins/git/git/windowactivatable.py
index 6d69f35..7bba94b 100644
--- a/plugins/git/git/windowactivatable.py
+++ b/plugins/git/git/windowactivatable.py
@@ -204,12 +204,14 @@ class GitWindowActivatable(GObject.Object, Gedit.WindowActivatable):
if status is not None:
if status & Ggit.StatusFlags.INDEX_NEW or \
- status & Ggit.StatusFlags.WORKING_TREE_NEW:
- markup = '<span foreground="green">%s</span> [New]' % (markup)
-
- elif status & Ggit.StatusFlags.INDEX_MODIFIED or \
+ status & Ggit.StatusFlags.WORKING_TREE_NEW or \
+ status & Ggit.StatusFlags.INDEX_MODIFIED or \
status & Ggit.StatusFlags.WORKING_TREE_MODIFIED:
- markup = '<span foreground="blue">%s</span> [Modified]' % (markup)
+ markup = '<span weight="bold">%s</span>' % (markup)
+
+ elif status & Ggit.StatusFlags.INDEX_DELETED or \
+ status & Ggit.StatusFlags.WORKING_TREE_DELETED:
+ markup = '<span strikethrough="true">%s</span>' % (markup)
self.bus.send('/plugins/filebrowser', 'set_markup',
id=self.files[location.get_uri()], markup=markup)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]