OSDN Git Service

Change the name of gladeXML reference to widget_tree
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Sun, 20 Aug 2006 09:37:03 +0000 (18:37 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Sun, 20 Aug 2006 09:37:03 +0000 (18:37 +0900)
src/Hage1/board_window.py

index 7bb589f..a9e96aa 100644 (file)
@@ -40,13 +40,13 @@ class WinWrap:
         self.board = board
 
         glade_path = os.path.join(GLADE_DIR, GLADE_FILENAME)
         self.board = board
 
         glade_path = os.path.join(GLADE_DIR, GLADE_FILENAME)
-        self.mainwin = gtk.glade.XML(glade_path)
+        self.widget_tree = gtk.glade.XML(glade_path)
 
 
-        self.treeview = self.mainwin.get_widget("treeview")
+        self.treeview = self.widget_tree.get_widget("treeview")
         self.treeview.set_model(ThreadListModel())
         self.treeview.set_rules_hint(True)
 
         self.treeview.set_model(ThreadListModel())
         self.treeview.set_rules_hint(True)
 
-        self.popupmenu = self.mainwin.get_widget("popup_menu")
+        self.popupmenu = self.widget_tree.get_widget("popup_menu")
 
         renderer = gtk.CellRendererText()
 
 
         renderer = gtk.CellRendererText()
 
@@ -76,7 +76,7 @@ class WinWrap:
                   "on_treeview_button_press_event":
                   self.on_treeview_button_press_event,
                   "on_popup_menu_open_activate": self.on_open_thread}
                   "on_treeview_button_press_event":
                   self.on_treeview_button_press_event,
                   "on_popup_menu_open_activate": self.on_open_thread}
-        self.mainwin.signal_autoconnect(sigdic)
+        self.widget_tree.signal_autoconnect(sigdic)
 
     def updated_thread_highlight(self, column, cell, model, iter):
 
 
     def updated_thread_highlight(self, column, cell, model, iter):