OSDN Git Service

Delete no need code (TextBuffer) of ThreadWindow
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Tue, 25 Dec 2007 22:44:09 +0000 (07:44 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Tue, 25 Dec 2007 22:44:09 +0000 (07:44 +0900)
src/FukuiNoNamari/thread_window.py

index a6421e7..b0339e1 100644 (file)
@@ -202,13 +202,6 @@ class WinWrap(winwrapbase.WinWrapBase):
         self.created()
 
     def initialize_buffer(self):
-        self.textbuffer = gtk.TextBuffer()
-
-        self.enditer = self.textbuffer.get_end_iter()
-        self.boldtag = self.textbuffer.create_tag(weight=pango.WEIGHT_BOLD)
-        self.leftmargintag = self.textbuffer.create_tag()
-        self.leftmargintag.set_property("left-margin", 20)
-
         self.threadview.initialize_buffer()
 
     def destroy(self):
@@ -388,11 +381,6 @@ class WinWrap(winwrapbase.WinWrapBase):
         self.jump_request_num = 0
 
         def load():
-            if self.num == 0:
-                def create_mark():
-                    self.textbuffer.create_mark("1", self.enditer, True)
-                gobject.idle_add(create_mark)
-
             line_count = datfile.get_dat_line_count(self.bbs_type)
             if line_count < self.num:
                 self.num = 0
@@ -549,11 +537,6 @@ class WinWrap(winwrapbase.WinWrapBase):
 
         pipe.to_thread_view()
 
-    def href_tag(self, href):
-        tag = self.textbuffer.create_tag(underline=pango.UNDERLINE_SINGLE)
-        tag.set_data("href", href)
-        return tag
-
     def jump(self, value):
         gobject.idle_add(self.threadview.jump, value)