コード例 #1
0
ファイル: about.py プロジェクト: GNOME/pitivi
    def __init__(self, app):
        Gtk.AboutDialog.__init__(self)
        self.set_program_name(APPNAME)
        self.set_website(APPURL)

        if in_devel():
            version_str = _("Development version: %s") % GITVERSION
        elif not app.isLatest():
            version_str = _("Version %(cur_ver)s — %(new_ver)s is available") % \
                {"cur_ver": GITVERSION,
                 "new_ver": app.getLatest()}
        elif GITVERSION:
            version_str = _("Version %s") % GITVERSION
        else:
            version_str = _("Version %s") % VERSION
        self.set_version(version_str)

        comments = ["",
                    "GES %s" % ".".join(map(str, GES.version())),
                    "GTK+ %s" % ".".join(map(str, (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION))),
                    "GStreamer %s" % ".".join(map(str, Gst.version()))]
        self.set_comments("\n".join(comments))

        authors = [_("Current maintainers:"),
                   "Thibault Saunier <*****@*****.**>",
                   "Mathieu Duponchelle <*****@*****.**>",
                   "Alexandru Băluț <*****@*****.**>",
                   "",
                   _("Past maintainers:"),
                   "Edward Hervey <*****@*****.**>",
                   "Alessandro Decina <*****@*****.**>",
                   "Brandon Lewis <*****@*****.**>",
                   "Jean-François Fortin Tam <*****@*****.**>",
                   "",
                   # Translators: this paragraph is to be translated, the list
                   # of contributors is shown dynamically as a clickable link
                   # below it
                   _("Contributors:\n" +
                     "A handwritten list here would...\n" +
                     "• be too long,\n" +
                     "• be frequently outdated,\n" +
                     "• not show their relative merit.\n\n" +
                     "Out of respect for our contributors, we point you instead to:\n"),
                   # Translators: keep the %s at the end of the 1st line
                   _("The list of contributors on Ohloh %s\n" +
                     "Or you can run: git shortlog -s -n")
                   % "http://ohloh.net/p/pitivi/contributors", ]
        self.set_authors(authors)
        # Translators: See
        # https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html#gtk-about-dialog-set-translator-credits
        # for details on how this is used.
        translators = _("translator-credits")
        if translators != "translator-credits":
            self.set_translator_credits(translators)
        documenters = ["Jean-François Fortin Tam <*****@*****.**>", ]
        self.set_documenters(documenters)
        self.set_license_type(Gtk.License.LGPL_2_1)
        self.set_logo_icon_name("org.pitivi.Pitivi")
        self.connect("response", self.__about_response_cb)
        self.set_transient_for(app.gui)
コード例 #2
0
ファイル: runtests.py プロジェクト: RichardPoole42/pitivi
def get_build_dir():
    from pitivi.configure import in_devel
    if in_devel():
        # It's the same.
        build_dir = get_pitivi_dir()
    else:
        # Probably running make distcheck. The path to the test files
        # is different than the build path, so we must use the current
        # dir which is build_path/tests.
        build_dir = os.path.join(os.path.abspath(os.path.curdir), os.path.pardir)
    return os.path.abspath(build_dir)
コード例 #3
0
ファイル: runtests.py プロジェクト: MathieuDuponchelle/Pitivi
def get_build_dir():
    from pitivi.configure import in_devel
    if in_devel():
        # It's the same.
        build_dir = get_pitivi_dir()
    else:
        # Probably running make distcheck. The path to the test files
        # is different than the build path, so we must use the current
        # dir which is build_path/tests.
        build_dir = os.path.join(
            os.path.abspath(os.path.curdir), os.path.pardir)
    return os.path.abspath(build_dir)
コード例 #4
0
ファイル: runtests.py プロジェクト: cfoch/pitivi-cfoch
def get_pitivi_dir():
    from pitivi.configure import in_devel
    if in_devel():
        # We know exactly where the top dir.
        tests_dir = os.path.dirname(os.path.abspath(__file__))
        pitivi_dir = os.path.join(tests_dir, os.path.pardir)
    else:
        # Probably running make distcheck. The path to the test files
        # is different than the build path, so we must use the current
        # dir which is build_path/tests.
        pitivi_dir = os.path.join(os.path.abspath(os.path.curdir), os.path.pardir)
    return os.path.abspath(pitivi_dir)
コード例 #5
0
    def __init__(self, app):
        Gtk.AboutDialog.__init__(self)
        self.set_program_name(APPNAME)
        self.set_website(APPURL)

        if in_devel():
            version_str = _("Development version: %s") % GITVERSION
        elif not app.is_latest():
            version_str = _("Version %(cur_ver)s — %(new_ver)s is available") % \
                {"cur_ver": GITVERSION,
                 "new_ver": app.get_latest()}
        elif GITVERSION:
            version_str = _("Version %s") % GITVERSION
        else:
            version_str = _("Version %s") % VERSION
        self.set_version(version_str)

        comments = [
            "",
            "GES %s" % ".".join(map(str, GES.version())),
            "GTK+ %s" %
            ".".join(map(str, (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION))),
            "GStreamer %s" % ".".join(map(str, Gst.version()))
        ]
        self.set_comments("\n".join(comments))

        authors = [
            _("Current maintainers:"), "Thibault Saunier <*****@*****.**>",
            "Mathieu Duponchelle <*****@*****.**>",
            "Alexandru Băluț <*****@*****.**>", "",
            _("Past maintainers:"), "Edward Hervey <*****@*****.**>",
            "Alessandro Decina <*****@*****.**>",
            "Brandon Lewis <*****@*****.**>",
            "Jean-François Fortin Tam <*****@*****.**>", "",
            _("Contributors:"),
            "https://gitlab.gnome.org/GNOME/pitivi/-/graphs/master", ""
        ]
        self.set_authors(authors)
        # Translators: See
        # https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html#gtk-about-dialog-set-translator-credits
        # for details on how this is used.
        translators = _("translator-credits")
        if translators != "translator-credits":
            self.set_translator_credits(translators)
        documenters = [
            "Jean-François Fortin Tam <*****@*****.**>",
        ]
        self.set_documenters(documenters)
        self.set_license_type(Gtk.License.LGPL_2_1)
        self.set_logo_icon_name("org.pitivi.Pitivi")
        self.connect("response", self.__about_response_cb)
        self.set_transient_for(app.gui)
コード例 #6
0
ファイル: application.py プロジェクト: linganesan/pitivi
    def _syncDoUndo(self, action_log):
        can_undo = bool(action_log.undo_stacks)
        # TODO: Remove this once we revisit undo/redo T3360
        can_undo = in_devel()
        self.undo_action.set_enabled(can_undo)

        can_redo = bool(action_log.redo_stacks)
        self.redo_action.set_enabled(can_redo)

        dirty = action_log.dirty()
        self.project_manager.current_project.setModificationState(dirty)
        # In the tests we do not want to create any gui
        if self.gui is not None:
            self.gui.showProjectStatus()
コード例 #7
0
ファイル: about.py プロジェクト: thiblahute/pitivi
    def __init__(self, app):
        Gtk.AboutDialog.__init__(self)
        self.set_program_name(APPNAME)
        self.set_website(APPURL)

        if in_devel():
            version_str = _("Development version: %s") % GITVERSION
        elif not app.isLatest():
            version_str = _("Version %(cur_ver)s — %(new_ver)s is available") % \
                {"cur_ver": GITVERSION,
                 "new_ver": app.getLatest()}
        elif GITVERSION:
            version_str = _("Version %s") % GITVERSION
        else:
            version_str = _("Version %s") % VERSION
        self.set_version(version_str)

        comments = [
            "",
            "GES %s" % ".".join(map(str, GES.version())),
            "GTK+ %s" %
            ".".join(map(str, (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION))),
            "GStreamer %s" % ".".join(map(str, Gst.version()))
        ]
        self.set_comments("\n".join(comments))

        authors = [
            _("Current maintainers:"),
            "Thibault Saunier <*****@*****.**>",
            "Mathieu Duponchelle <*****@*****.**>",
            "Alexandru Băluț <*****@*****.**>",
            "",
            _("Past maintainers:"),
            "Edward Hervey <*****@*****.**>",
            "Alessandro Decina <*****@*****.**>",
            "Brandon Lewis <*****@*****.**>",
            "Jean-François Fortin Tam <*****@*****.**>",
            "",
            # Translators: this paragraph is to be translated, the list
            # of contributors is shown dynamically as a clickable link
            # below it
            _("Contributors:\n" + "A handwritten list here would...\n" +
              "• be too long,\n" + "• be frequently outdated,\n" +
              "• not show their relative merit.\n\n" +
              "Out of respect for our contributors, we point you instead to:\n"
              ),
            # Translators: keep the %s at the end of the 1st line
            _("The list of contributors on Ohloh %s\n" +
              "Or you can run: git shortlog -s -n") %
            "http://ohloh.net/p/pitivi/contributors",
        ]
        self.set_authors(authors)
        # Translators: See
        # https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html#gtk-about-dialog-set-translator-credits
        # for details on how this is used.
        translators = _("translator-credits")
        if translators != "translator-credits":
            self.set_translator_credits(translators)
        documenters = [
            "Jean-François Fortin Tam <*****@*****.**>",
        ]
        self.set_documenters(documenters)
        self.set_license_type(Gtk.License.LGPL_2_1)
        self.set_logo_icon_name("org.pitivi.Pitivi")
        self.connect("response", self.__about_response_cb)
        self.set_transient_for(app.gui)