Commits

oliver_g  committed 499b4bf

display file name in window title

  • Participants
  • Parent commits dce0d4a
  • Branches hachoir-gtk

Comments (0)

Files changed (1)

File hachoir-gtk/hachoir-gtk

 UI_FILENAME = os.path.dirname( __file__ ) + "/hachoir.glade"
 
 class Interface:
-    def __init__(self, fieldset):
+    def __init__(self, fieldset, filename):
         self.xml = gtk.glade.XML(UI_FILENAME, "main_window")
         self.xml.signal_autoconnect(self)
         self.fieldset = fieldset
         self.table = self.xml.get_widget("table")
 
+        self.xml.get_widget("main_window").set_title("Hachoir - %s" % filename)
+
     def quit(self):
         gtk.main_quit()
 
         return
 
     # Create window and gtk event loop
-    interface = Interface(fieldset)
+    interface = Interface(fieldset, filename)
     interface.display_tree(fieldset)
     gtk.main()