[meld/Python3: 54/54] ui.notebook: Update for Python 3
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/Python3: 54/54] ui.notebook: Update for Python 3
- Date: Sun, 1 May 2016 22:25:02 +0000 (UTC)
commit 2f55f300b7cd654c9a548a1daaed35a70e4df92f
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon May 2 08:18:33 2016 +1000
ui.notebook: Update for Python 3
meld/ui/notebook.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meld/ui/notebook.py b/meld/ui/notebook.py
index ebd800c..1624c7f 100644
--- a/meld/ui/notebook.py
+++ b/meld/ui/notebook.py
@@ -34,7 +34,7 @@ class MeldNotebook(Gtk.Notebook):
'page-label-changed': (0, None, (GObject.TYPE_STRING,)),
}
- css = """
+ css = b"""
@binding-set TabSwitchBindings {}
MeldNotebook { gtk-key-bindings: TabSwitchBindings; }
"""
@@ -151,6 +151,4 @@ class MeldNotebook(Gtk.Notebook):
# Only update the window title if the current page is active
if self.get_current_page() == self.page_num(page):
self.emit('page-label-changed', text)
- if isinstance(text, unicode):
- text = text.encode('utf8')
self.child_set_property(page, "menu-label", text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]