def on_help_info(self, *args):
     
     builder = gtk.Builder()
     builder.set_translation_domain(self.TRANSL_DOMAIN)
     builder.add_from_file(get_resource_path("gocedit_info.ui"))
     
     dialog = builder.get_object("info_dialog")
     
     path = get_resource_path("hand_mit_stift_296x300.png")
     logo = gtk.gdk.pixbuf_new_from_file(path)
     dialog.set_logo(logo)
     
     dialog.set_version(gobject_creator.VERSION)
             
     dialog.run()
     dialog.destroy()
    def __init__(self, start_files=[]):

        locale_dir = os.path.dirname(__file__)
        locale_dir = os.path.abspath(locale_dir)
        locale_dir += os.sep + "locale"

        locale.setlocale(locale.LC_ALL, "")
        locale.bindtextdomain(self.TRANSL_DOMAIN, locale_dir)

        gettext.bindtextdomain(self.TRANSL_DOMAIN, locale_dir)
        gettext.textdomain(self.TRANSL_DOMAIN)
        
        self._builder = gtk.Builder()
        self._builder.set_translation_domain(self.TRANSL_DOMAIN)
                
        path = get_resource_path("goceditor.ui")
        self._builder.add_from_file(path)
        
        self._create_widgets()
        
        self._builder.connect_signals(self)
        
        for start_file in start_files:
            if not os.path.exists(start_file):
                fd = open(start_file, "w")
                fd.close()
            self._docs_model.load_document(start_file)
 def _get_resource_path(self, resource_file):
            
     return get_resource_path(resource_file)