[dots] migrated to gtksourceview2. Thanks Samuel Thibault!
- From: Eitan Isaacson <eitani src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dots] migrated to gtksourceview2. Thanks Samuel Thibault!
- Date: Thu, 20 Aug 2009 20:26:07 +0000 (UTC)
commit 4a9267062cf0f8e129517753818aef98bb485b55
Author: Eitan Isaacson <eitan ascender com>
Date: Thu Aug 20 13:25:08 2009 -0700
migrated to gtksourceview2. Thanks Samuel Thibault!
dots/dots_project.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/dots/dots_project.py b/dots/dots_project.py
index 33fcd44..8766d63 100644
--- a/dots/dots_project.py
+++ b/dots/dots_project.py
@@ -16,13 +16,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, tempfile, host_settings, sys, gtk
import ascii_braille
-import gtksourceview, pango
+import gtksourceview2, pango
class DotsProject(gtk.ScrolledWindow):
def __init__(self, input_file, name):
gtk.ScrolledWindow.__init__(self)
self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
- self.view = gtksourceview.SourceView()
+ self.view = gtksourceview2.View()
self.view.set_right_margin(25)
self.view.set_left_margin(25)
self.view.set_editable(False)
@@ -30,7 +30,7 @@ class DotsProject(gtk.ScrolledWindow):
self.add(self.view)
self.buffer = self.view.get_buffer()
self.buffer.connect("modified-changed", self._onModified)
- self.braille_buffer = gtksourceview.SourceBuffer()
+ self.braille_buffer = gtksourceview2.Buffer()
self.input_file = input_file
self.tab_label = gtk.Label()
self.set_name(name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]