[meld] ui.notebooklabel: Move to non-vendored Template usage



commit fbe30e303c1bf910926f2456409dcf7b771151e6
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Aug 31 11:59:17 2019 +1000

    ui.notebooklabel: Move to non-vendored Template usage

 meld/ui/notebooklabel.py | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/meld/ui/notebooklabel.py b/meld/ui/notebooklabel.py
index 6a64548e..bc6e0673 100644
--- a/meld/ui/notebooklabel.py
+++ b/meld/ui/notebooklabel.py
@@ -18,16 +18,14 @@ from gi.repository import Gdk
 from gi.repository import GObject
 from gi.repository import Gtk
 
-from meld.ui._gtktemplate import Template
 
-
-@Template(resource_path='/org/gnome/meld/ui/notebook-label.ui')
+@Gtk.Template(resource_path='/org/gnome/meld/ui/notebook-label.ui')
 class NotebookLabel(Gtk.EventBox):
 
     __gtype_name__ = 'NotebookLabel'
 
-    icon = Template.Child()
-    label = Template.Child()
+    icon = Gtk.Template.Child()
+    label = Gtk.Template.Child()
 
     icon_name = GObject.Property(
         type=str,
@@ -63,12 +61,12 @@ class NotebookLabel(Gtk.EventBox):
             GObject.BindingFlags.DEFAULT | GObject.BindingFlags.SYNC_CREATE,
         )
 
-    @Template.Callback()
+    @Gtk.Template.Callback()
     def on_label_button_press_event(self, widget, event):
         # Middle-click on the tab closes the tab.
         if event.type == Gdk.EventType.BUTTON_PRESS and event.button == 2:
             self.page.on_delete_event()
 
-    @Template.Callback()
+    @Gtk.Template.Callback()
     def on_close_button_clicked(self, widget):
         self.page.on_delete_event()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]