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 <adamcrume@gmail.com>
Adolfo Ochagavía <aochagavia92@gmail.com>
Andre Bogus <bogusandre@gmail.com>
Anton Konjahin <koniahin.ant@yandex.ru>
Arne Dussin <arne.dussin@live.de>
Boden Garman <bpgarman@fastmail.fm>
Brian Kropf <brian.kropf@gmail.com>
Bryant Mairs <bryant@mai.rs>
Chris Greenaway <cjgreenaway@gmail.com>
Chris Palmer <pennstate5013@gmail.com>
Corey Farwell <coreyf@rwell.org>
Daniel Zalevskiy <dndanik@gmail.com>
David Li <li.davidm96@gmail.com>
Edward Shaw <edwardshaw9+git@gmail.com>
Edward Yang <edward.yang6771@gmail.com>
Esption <esption@gmail.com>
Evgenii Pashkin <eapashkin@gmail.com>
Geoffrey French <frondit1985@gmail.com>
Gleb Kozyrev <gleb@gkoz.com>
Glenn Watson <gw@intuitionlibrary.com>
Google Inc.
Guillaume Gomez <guillaume1.gomez@gmail.com>
Gulshan Singh <gulshan@umich.edu>
Jakob Gillich <jakob@gillich.me>
James Shepherdson <james.shepherdson@gmail.com>
Jeremy Letang <letang.jeremy@gmail.com>
John Vrbanac <john.vrbanac@linux.com>
kennytm <kennytm@gmail.com>
Laurence Tratt <laurie@tratt.net>
Lionel Flandrin <lionel.flandrin@gmail.com>
Lucas Werkmeister <mail@lucaswerkmeister.de>
Lukas Diekmann <lukas.diekmann@gmail.com>
Mathijs Henquet <mathijs.henquet@gmail.com>
Maxwell Koo <mjkoo90@gmail.com>
mitaa <mitaa.ceb@gmail.com>
Nick Herman <gerkola@gmail.com>
Nicolas Koch <nioko1337@gmail.com>
Oliver Schneider <github333195615777966@oli-obk.de>
Ömer Sinan Ağacan <omeragacan@gmail.com>
Ralph Giles <giles@thaumas.net>
Paul Dennis <paul_a_dennis@yahoo.com>
Paul Hendry <paul@pshendry.com>
Philipp Brüschweiler <blei42@gmail.com>
Raphael Nestler <raphael.nestler@gmail.com>
Robertas <robertasjasmontas@gmail.com>
Romain Gauthier <romain.gauthier@monkeypatch.me>
S.J.R. van Schaik <stephan@synkhronix.com>
Sebastian Schulze <me@bstr.eu>
Silvio Fricke <silvio.fricke@gmail.com>
Simon Sapin <simon.sapin@exyr.org>
Steve Klabnik <steve@steveklabnik.com>
Tobias Bales <tobias.raeder@gmail.com>
trolleyman <cgtrolley@gmail.com>
Umur Gedik <umurgdk@gmail.com>
UrKr <Urban.kristan@gmail.com>
Vojtech Kral <vojtech@kral.hk>
Zach Oakes <zsoakes@gmail.com>
Zach Ploskey <zach@ploskey.com>
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