From dcb5f998b24f359d7c3e1980da3c58b6f6e2331a Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Wed, 28 Nov 2012 14:53:59 +0000 Subject: Display security as a lock icon for secured pages - SL #4245 For pages using the https protocol, display a) a lock icon if there were no errors in the certification, or b) a broken lock icon if the certification failed. Use the same logic as Epiphany: http://git.gnome.org/browse/epiphany/tree/embed/ephy-web-view.c#n2321 Signed-off-by: Manuel QuiƱones Acked-by: Manuel Kaufmann --- (limited to 'pdfviewer.py') diff --git a/pdfviewer.py b/pdfviewer.py index 6ce4fcf..6cfbaed 100644 --- a/pdfviewer.py +++ b/pdfviewer.py @@ -177,6 +177,7 @@ class DummyBrowser(GObject.GObject): 'new-tab': (GObject.SignalFlags.RUN_FIRST, None, ([str])), 'tab-close': (GObject.SignalFlags.RUN_FIRST, None, ([object])), 'selection-changed': (GObject.SignalFlags.RUN_FIRST, None, ([])), + 'security-status-changed': (GObject.SignalFlags.RUN_FIRST, None, ([])), } __gproperties__ = { @@ -194,6 +195,7 @@ class DummyBrowser(GObject.GObject): self._uri = "" self._progress = 0.0 self._load_status = WebKit.LoadStatus.PROVISIONAL + self.security_status = None def do_get_property(self, prop): if prop.name == 'title': -- cgit v0.9.1