[accerciser/macaroon-pygi] Changing GtkSource.View use due to pygobject migration



commit 4f8be96434a0493edc73fca01f85dd6b266b0138
Author: Javier HernÃndez <jhernandez emergya es>
Date:   Thu Oct 6 15:33:32 2011 +0200

    Changing GtkSource.View use due to pygobject migration

 macaroon/macaroon/record/main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/macaroon/macaroon/record/main.py b/macaroon/macaroon/record/main.py
index f50b9c3..e8750a3 100644
--- a/macaroon/macaroon/record/main.py
+++ b/macaroon/macaroon/record/main.py
@@ -123,7 +123,7 @@ class MacroPreview(Gtk.Window):
     self.set_border_width(6)
     self.connect('delete-event', self._onDelete)
     self.script_buffer = script_buffer
-    text_view = GtkSource.View(self.script_buffer)
+    text_view = GtkSource.View.new_with_buffer(self.script_buffer)
     text_view.set_editable(True)
     text_view.set_cursor_visible(True)
     text_view.modify_font(Pango.FontDescription('Mono'))



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