Commits

Ronny Pfannschmidt committed 1f10929

finish the statusbar patch

Comments (0)

Files changed (2)

-statusbar-remove-encoding
 nosetest-imports
 kill-pidagladeview
 pdbus-remove-export-name

statusbar-remove-encoding

-# HG changeset patch
-# Parent a1525b07592d201ee8e97e7d8ed04086a2b68458
-remove the document encoding from the statusbar
-
-diff --git a/pida/services/statusbar/statusbar.py b/pida/services/statusbar/statusbar.py
---- a/pida/services/statusbar/statusbar.py
-+++ b/pida/services/statusbar/statusbar.py
-@@ -34,12 +34,10 @@ class StatusbarEvents(EventsConfig):
-     def on_document_changed(self, document):
-         if document.is_new:
-             self.svc.set_label('document', (_('New Document'),''))
--            self.svc.set_label('document_encoding', 'Unknown')
-             self.svc.set_label('document_mtime', '')
-             self.svc.set_label('document_size', '%d' %0)
-         else:
-             self.svc.set_label('document', (document.basename, document))
--            self.svc.set_label('document_encoding', document.encoding)
- 
-             dt = datetime.datetime.fromtimestamp(document.modified_time)
-             #FIXME local seems broken on win32 
-@@ -170,9 +168,6 @@ class Statusbar(Service):
-         self.add_status('document_mtime', widget=w)
-         w = gtk.Label()
-         w.set_padding(5, 0)
--        self.add_status('document_encoding', widget=w)
--        w = gtk.Label()
--        w.set_padding(5, 0)
-         self.add_status('document_size', widget=w)
- 
-     def set_default_values(self):