~umang/indicator-stickynotes/trunk

« back to all changes in this revision

Viewing changes to stickynotes/gui.py

  • Committer: Umang Varma
  • Date: 2015-07-01 17:06:23 UTC
  • Revision ID: git-v1:f4828a33e605a89401424df7e659ac2e00bfc039
Force utf-8 encoding while opening css file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        self.populate_menu()
47
47
 
48
48
        # Load CSS template and initialize Gtk.CssProvider
49
 
        with open(os.path.join(self.path, "style.css")) as css_file:
 
49
        with open(os.path.join(self.path, "style.css"), encoding="utf-8") \
 
50
                as css_file:
50
51
            self.css_template = Template(css_file.read())
51
52
        self.css = Gtk.CssProvider()
52
53