diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-11-28 14:53:59 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-11-29 11:44:08 (GMT) |
commit | dcb5f998b24f359d7c3e1980da3c58b6f6e2331a (patch) | |
tree | ca0910a3870cf42430b6551067789b307f379c19 /pdfviewer.py | |
parent | ee7b2113802f313549622e2af014c78ba42df356 (diff) |
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 <manuq@laptop.org>
Acked-by: Manuel Kaufmann <humitos@gmail.com>
Diffstat (limited to 'pdfviewer.py')
-rw-r--r-- | pdfviewer.py | 2 |
1 files changed, 2 insertions, 0 deletions
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': |