darekdeo / gedit-encoding-in-statusbar

Encoding in statusbar plugin for gedit 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not worked in gedit 3.36.2

webmastak opened this issue Β· comments

You could fix for gedit 3.36.2 ?

I fixed it myself. πŸ˜€

Before:

    def _update_via_doc(self, doc):
        if doc and doc.get_encoding() is not None:
            self._label.set_text(doc.get_encoding().to_string())

After:

    def _update_via_doc(self, doc):
        if doc and doc.get_file().get_encoding() is not None:
            self._label.set_text(doc.get_file().get_encoding().to_string())