Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

More checks and add missing license headers #217

Merged
merged 4 commits into from
Dec 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 17 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,19 @@ jobs:
strategy:
matrix:
crate:
- atk
- gdk
- gdk-pixbuf
- gdkx11
- gio
- glib
- graphene
- gtk
- pango
- pangocairo
- { name: 'atk', extra: '' }
- { name: 'cairo', extra: '--no-manual-traits' }
- { name: 'gdk', extra: '' }
- { name: 'gdk-pixbuf', extra: '' }
- { name: 'gdkx11', extra: '' }
- { name: 'gio', extra: '' }
- { name: 'glib', extra: '' }
- { name: 'glib-macros', extra: '--no-manual-traits' }
- { name: 'graphene', extra: '' }
- { name: 'gtk', extra: '' }
- { name: 'gtk3-macros', extra: '--no-manual-traits' }
- { name: 'pango', extra: '' }
- { name: 'pangocairo', extra: '' }
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
Expand All @@ -334,10 +337,11 @@ jobs:
path: checker
- run: cargo build --release
working-directory: checker
- run: cargo run -- ../${{matrix.crate}}
- run: cargo run -- ${{matrix.crate.extra}} ../${{matrix.crate.name}}
working-directory: checker
- run: cargo run -- ../${{matrix.crate}}/sys
- run: cargo run -- --no-license ../${{matrix.crate.name}}/sys
working-directory: checker
- run: ./check_init_asserts ../${{matrix.crate}}
if: matrix.crate.extra == ''
- run: ./check_init_asserts ../${{matrix.crate.name}}
working-directory: checker
if: matrix.crate == 'atk' || matrix.crate == 'gdk' || matrix.crate == 'gdkx11' || matrix.crate == 'gtk'
76 changes: 11 additions & 65 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,68 +1,14 @@
The Gtk-rs Project is copyright 2013-2016, The Gtk-rs Project Developers:
The Gtk-rs Project is licensed under the MIT license, see the LICENSE file or
<http://opensource.org/licenses/MIT>.

Adam Crume <[email protected]>
Adolfo Ochagavía <[email protected]>
Andre Bogus <[email protected]>
Anton Konjahin <[email protected]>
Arne Dussin <[email protected]>
Boden Garman <[email protected]>
Brian Kropf <[email protected]>
Bryant Mairs <[email protected]>
Chris Greenaway <[email protected]>
Chris Palmer <[email protected]>
Corey Farwell <[email protected]>
Daniel Zalevskiy <[email protected]>
David Li <[email protected]>
Edward Shaw <[email protected]>
Edward Yang <[email protected]>
Esption <[email protected]>
Evgenii Pashkin <[email protected]>
Geoffrey French <[email protected]>
Gleb Kozyrev <[email protected]>
Glenn Watson <[email protected]>
Google Inc.
Guillaume Gomez <[email protected]>
Gulshan Singh <[email protected]>
Jakob Gillich <[email protected]>
James Shepherdson <[email protected]>
Jeremy Letang <[email protected]>
John Vrbanac <[email protected]>
kennytm <[email protected]>
Laurence Tratt <[email protected]>
Lionel Flandrin <[email protected]>
Lucas Werkmeister <[email protected]>
Lukas Diekmann <[email protected]>
Mathijs Henquet <[email protected]>
Maxwell Koo <[email protected]>
mitaa <[email protected]>
Nick Herman <[email protected]>
Nicolas Koch <[email protected]>
Oliver Schneider <[email protected]>
Ömer Sinan Ağacan <[email protected]>
Ralph Giles <[email protected]>
Paul Dennis <[email protected]>
Paul Hendry <[email protected]>
Philipp Brüschweiler <[email protected]>
Raphael Nestler <[email protected]>
Robertas <[email protected]>
Romain Gauthier <[email protected]>
S.J.R. van Schaik <[email protected]>
Sebastian Schulze <[email protected]>
Silvio Fricke <[email protected]>
Simon Sapin <[email protected]>
Steve Klabnik <[email protected]>
Tobias Bales <[email protected]>
trolleyman <[email protected]>
Umur Gedik <[email protected]>
UrKr <[email protected]>
Vojtech Kral <[email protected]>
Zach Oakes <[email protected]>
Zach Ploskey <[email protected]>
Copyrights in the Gtk-rs Project project are retained by their contributors.
No copyright assignment is required to contribute to the Gtk-rs Project
project.

The Gtk-rs Project is licensed under the MIT license, see the LICENSE file
or <http://opensource.org/licenses/MIT>.
For full authorship information, see the version control history.

This project provides interoperability with various GNOME libraries but doesn't
distribute any parts of them. Distributing compiled libraries and executables
that link to those libraries may be subject to terms of the GNU LGPL, see the
LGPL file.
This project provides interoperability with various GNOME libraries but
doesn't distribute any parts of them. Distributing compiled libraries and
executables that link to those libraries may be subject to terms of the GNU
LGPL or other licenses. For more information check the license of each GNOME
library.
4 changes: 0 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
The MIT License (MIT)

Copyright (c) 2013-2020, The Gtk-rs Project Developers.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
1 change: 1 addition & 0 deletions atk/COPYRIGHT
1 change: 1 addition & 0 deletions atk/LICENSE
4 changes: 1 addition & 3 deletions atk/src/attribute.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.
sdroege marked this conversation as resolved.
Show resolved Hide resolved

use glib::translate::*;
use glib::GString;
Expand Down
4 changes: 1 addition & 3 deletions atk/src/attribute_set.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.
sdroege marked this conversation as resolved.
Show resolved Hide resolved

pub type AttributeSet = glib::translate::SList;
4 changes: 1 addition & 3 deletions atk/src/editable_text.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::EditableText;
use glib::object::IsA;
Expand Down
4 changes: 1 addition & 3 deletions atk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

//! # ATK bindings
//!
Expand Down
4 changes: 1 addition & 3 deletions atk/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

//! Traits intended for blanket imports.

Expand Down
4 changes: 1 addition & 3 deletions atk/src/rt.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

/// No-op.
macro_rules! assert_initialized_main_thread {
Expand Down
4 changes: 1 addition & 3 deletions atk/src/table.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::Table;
use glib::object::IsA;
Expand Down
4 changes: 1 addition & 3 deletions atk/src/text_rectangle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use glib::translate::*;
use std::fmt;
Expand Down
1 change: 1 addition & 0 deletions cairo/COPYRIGHT
1 change: 1 addition & 0 deletions cairo/LICENSE
4 changes: 1 addition & 3 deletions cairo/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2019, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

pub const MIME_TYPE_JPEG: &str = "image/jpeg";
pub const MIME_TYPE_PNG: &str = "image/png";
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::font::{
FontExtents, FontFace, FontOptions, Glyph, ScaledFont, TextCluster, TextExtents,
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/device.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2015-2016, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::enums::DeviceType;
use crate::error::Error;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/enums.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2019, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use std::fmt::{self, Debug};
use std::i32;
Expand Down
6 changes: 2 additions & 4 deletions cairo/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright 2016, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
use std::fmt::Debug;
// Take a look at the license at the top of the repository in the LICENSE file.

use std::fmt::Debug;
use std::io;
use thiserror::Error;

Expand Down
2 changes: 2 additions & 0 deletions cairo/src/font/font_face.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.

#[cfg(feature = "use_glib")]
use glib::translate::*;
use libc::{c_char, c_int};
Expand Down
2 changes: 2 additions & 0 deletions cairo/src/font/font_options.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.

#[cfg(feature = "use_glib")]
use glib::translate::*;
use std::cmp::PartialEq;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/font/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

mod font_face;
mod font_options;
Expand Down
2 changes: 2 additions & 0 deletions cairo/src/font/scaled_font.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.

#[cfg(feature = "use_glib")]
use glib::translate::*;
use std::ffi::CString;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/image_surface.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use std::convert::TryFrom;
use std::ops::{Deref, DerefMut};
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/image_surface_png.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2016, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::utils::status_to_result;
use std::any::Any;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2016, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

//! # Cairo bindings
//!
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/matrices.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::error::Error;
use crate::utils::status_to_result;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/paths.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::enums::PathDataType;
use crate::ffi::cairo_path_t;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/patterns.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2015, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::enums::MeshCorner;
use crate::enums::{Extend, Filter, PatternType};
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/pdf.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2018-2019, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use std::convert::TryFrom;
use std::ffi::{CStr, CString};
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/ps.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2018-2019, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use std::convert::TryFrom;
use std::ffi::{CStr, CString};
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/quartz_surface.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2017, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use std::convert::TryFrom;
use std::fmt;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/recording_surface.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2019, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use std::convert::TryFrom;
use std::fmt;
Expand Down
2 changes: 2 additions & 0 deletions cairo/src/rectangle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.

#[cfg(feature = "use_glib")]
use glib::translate::*;
use std::fmt;
Expand Down
2 changes: 2 additions & 0 deletions cairo/src/rectangle_int.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.

#[cfg(feature = "use_glib")]
use glib::translate::*;
use std::fmt;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/region.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2013-2017, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::enums::RegionOverlap;
use crate::error::Error;
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/stream.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2019, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::error::Error;
use crate::{Surface, UserDataKey};
Expand Down
4 changes: 1 addition & 3 deletions cairo/src/surface.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright 2015-2016, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
// Take a look at the license at the top of the repository in the LICENSE file.

use libc::{c_ulong, c_void};
use std::ffi::CString;
Expand Down
2 changes: 2 additions & 0 deletions cairo/src/surface_macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// e.g. declare_surface(ImageSurface, SurfaceType::Image)
macro_rules! declare_surface {
($surf_name:ident, $surf_type:expr) => {
Expand Down
Loading