import gnome
import gnome.ui
from gi.repository import GObject
-import Gtk.glade
import gettext
return True
def on_about_activate(self, event):
- aTree = Gtk.glade.XML(self.glade, "about")
+ aTree = self.builder.get_object("about")
about = aTree.get_widget("about")
about.set_property("name", "Ghextris")
about.set_property("version", VERSION)
def main(self):
gnome.init("Ghextris", VERSION)
gettext.install("ghextris")
- self.glade = os.path.join(SHAREDIR, "ghextris.glade")
-
- wTree = Gtk.glade.XML(self.glade, "GhextrisApp")
+ self.builder = Gtk.Builder()
+ self.builder.add_from_file(os.path.join(SHAREDIR, "ghextris.builder"))
+ wTree =self.builder.get_object("GhextrisApp")
dic = {"on_new_activate": self.on_new_activate,
"on_pause_game_activate": self.on_pause_game_activate,
"on_quit_activate": self.on_quit_activate,