[Pkg-owncloud-commits] [owncloud-client] 290/332: NautilusOverlays: Use the correct icon names, removed unused function.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Aug 14 21:07:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit b2976baf9bfe7b5bad4b04b84d025191c084f46c
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Aug 4 17:21:49 2014 +0200
NautilusOverlays: Use the correct icon names, removed unused function.
---
shell_integration/nautilus/ownCloud.py | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/shell_integration/nautilus/ownCloud.py b/shell_integration/nautilus/ownCloud.py
index 968156f..585a7b2 100755
--- a/shell_integration/nautilus/ownCloud.py
+++ b/shell_integration/nautilus/ownCloud.py
@@ -40,18 +40,18 @@ class ownCloudExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.InfoP
# Handles a single line of server respoonse and sets the emblem
def handle_server_response(self, l):
- Emblems = { 'OK' : 'dialog-ok',
- 'SYNC' : 'view-refresh',
- 'NEW' : 'view-refresh',
- 'IGNORE' : '',
- 'ERROR' : '',
- 'OK+SWM' : '',
- 'SYNC+SWM' : '',
- 'NEW+SWM' : '',
- 'IGNORE+SWM': '',
- 'ERROR+SWM' : '',
- 'NOP' : ''
- }
+ Emblems = { 'OK' : 'oC_ok',
+ 'SYNC' : 'oC_sync',
+ 'NEW' : 'oC_sync',
+ 'IGNORE' : 'oC_warn',
+ 'ERROR' : 'oC_error',
+ 'OK+SWM' : 'oC_ok_shared',
+ 'SYNC+SWM' : 'oC_sync_shared',
+ 'NEW+SWM' : 'oC_sync_shared',
+ 'IGNORE+SWM': 'oC_warn_shared',
+ 'ERROR+SWM' : 'oC_error_shared',
+ 'NOP' : 'oC_error'
+ }
print "Server response: "+l
parts = l.split(':')
@@ -104,11 +104,7 @@ class ownCloudExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.InfoP
def get_local_path(self, path):
return path.replace("file://", "")
- def get_columns(self):
- return Nautilus.Column(name="NautilusPython::share_state_column",
- attribute="share_state",
- label="Share State",
- description="The ownCloud Share State"),
+
def update_file_info(self, item):
if item.get_uri_scheme() != 'file':
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list