Commits

Ronny Pfannschmidt committed 6267e46

adapt sourceview2

Comments (0)

Files changed (1)

 
 
 import gtk
-import gtksourceview
+import gtksourceview2
 
 ESCAPE = gtk.gdk.keyval_from_name("Escape")
 
     def __init__(self):
         gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
         self.command_mode = True
-        self.buffer = gtksourceview.SourceBuffer()
-        self.view = gtksourceview.SourceView(self.buffer)
+        self.buffer = gtksourceview2.Buffer()
+        self.view = gtksourceview2.View(self.buffer)
         self.status = gtk.Statusbar()
         self.mode_label = gtk.Label("command")
         self.status.add(self.mode_label)