From 52d5b5e4868520b0b6cd2f7b00fcefa8bd328c17 Mon Sep 17 00:00:00 2001 From: Nefomemes Date: Sun, 24 Oct 2021 16:42:15 +0700 Subject: [PATCH] style: add missing license headers The MPL is a file-based license, rather than a codebase-based license. Each files need to be marked as MPL. If we don't do mark them, they may cause confusion. --- src/components/window/file.rs | 3 +++ src/components/window/imp.rs | 5 ++++- src/components/window/menubar.rs | 4 ++++ src/components/window/mod.rs | 4 ++++ src/components/window/sidebar.rs | 4 ++++ src/components/window/window.ui | 3 +++ 6 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/components/window/file.rs b/src/components/window/file.rs index b043344..0f25a3e 100644 --- a/src/components/window/file.rs +++ b/src/components/window/file.rs @@ -1,3 +1,6 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use glib::{ clone diff --git a/src/components/window/imp.rs b/src/components/window/imp.rs index 38344b2..891f66b 100644 --- a/src/components/window/imp.rs +++ b/src/components/window/imp.rs @@ -1,4 +1,7 @@ - +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + use gtk::prelude::*; use gtk::subclass::prelude::*; use gtk::CompositeTemplate; diff --git a/src/components/window/menubar.rs b/src/components/window/menubar.rs index 7cb1924..0e37b41 100644 --- a/src/components/window/menubar.rs +++ b/src/components/window/menubar.rs @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + use super::file::FileImplementedEditor; use super::EchidnaWindow; use gio::{MenuModel, SimpleAction}; diff --git a/src/components/window/mod.rs b/src/components/window/mod.rs index bff0d6f..3b8470a 100644 --- a/src/components/window/mod.rs +++ b/src/components/window/mod.rs @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + mod file; mod imp; diff --git a/src/components/window/sidebar.rs b/src/components/window/sidebar.rs index 4014aed..9932783 100644 --- a/src/components/window/sidebar.rs +++ b/src/components/window/sidebar.rs @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + trait SidebarImplementedEditor { fn setup_sidebar(); } diff --git a/src/components/window/window.ui b/src/components/window/window.ui index f8ec6b6..4f0cf8c 100644 --- a/src/components/window/window.ui +++ b/src/components/window/window.ui @@ -1,4 +1,7 @@ +