mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-09-26 13:40:02 +00:00
f925c21b1d
Keep only the SPDX and mention the project
37 lines
1.1 KiB
Rust
37 lines
1.1 KiB
Rust
// about.rs
|
|
//
|
|
// Copyright 2021 Stéphane Cerveau <scerveau@collabora.com>
|
|
//
|
|
// This file is part of GstPipelineStudio
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
use crate::app::GPSApp;
|
|
use crate::config;
|
|
use gettextrs::gettext;
|
|
use gtk::builders::AboutDialogBuilder;
|
|
use gtk::prelude::*;
|
|
|
|
use gtk::ApplicationWindow;
|
|
|
|
pub fn display_about_dialog(app: &GPSApp) {
|
|
let window: ApplicationWindow = app
|
|
.builder
|
|
.object("mainwindow")
|
|
.expect("Couldn't get window");
|
|
let about_dialog = AboutDialogBuilder::new()
|
|
.modal(true)
|
|
.program_name("GstPipelineStudio")
|
|
.version(config::VERSION)
|
|
.comments(&gettext("Draw your own GStreamer pipeline"))
|
|
.website("https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio")
|
|
.authors(vec!["Stéphane Cerveau".to_string()])
|
|
.artists(vec!["Stéphane Cerveau".to_string()])
|
|
.translator_credits(&gettext("translator-credits"))
|
|
.logo_icon_name(config::APP_ID)
|
|
.license_type(gtk::License::Gpl30)
|
|
.transient_for(&window)
|
|
.build();
|
|
|
|
about_dialog.show();
|
|
}
|