Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate with updated gir/gir-files #1479

Merged
merged 19 commits into from
Aug 27, 2023
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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/windows-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
id: cache
with:
path: c:/gnome
key: ${{ runner.os }}-gtk4-14.1
key: ${{ runner.os }}-gtk4-14.2
restore-keys: |
${{ runner.os }}-gtk4-14.1
${{ runner.os }}-gtk4-14.2

- name: Set up the PATH environment
run: |
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"

default-members = [
"examples",
Expand Down
4 changes: 2 additions & 2 deletions gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ dcaa0e340516)
from gir-files (https://github.com/gtk-rs/gir-files @ 58cd940295f0)
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
7 changes: 0 additions & 7 deletions gdk4-wayland/src/auto/wayland_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// DO NOT EDIT

use glib::translate::*;
use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandDevice")]
Expand All @@ -21,9 +20,3 @@ impl WaylandDevice {
unsafe { from_glib_none(ffi::gdk_wayland_device_get_node_path(self.to_glib_none().0)) }
}
}

impl fmt::Display for WaylandDevice {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandDevice")
}
}
7 changes: 0 additions & 7 deletions gdk4-wayland/src/auto/wayland_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#![allow(deprecated)]

use glib::translate::*;
use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandDisplay")]
Expand Down Expand Up @@ -61,9 +60,3 @@
}
}
}

impl fmt::Display for WaylandDisplay {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandDisplay")
}
}
8 changes: 0 additions & 8 deletions gdk4-wayland/src/auto/wayland_gl_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandGLContext")]
pub struct WaylandGLContext(Object<ffi::GdkWaylandGLContext, ffi::GdkWaylandGLContextClass>) @extends gdk::GLContext, gdk::DrawContext;
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl WaylandGLContext {}

impl fmt::Display for WaylandGLContext {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandGLContext")
}
}
8 changes: 0 additions & 8 deletions gdk4-wayland/src/auto/wayland_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandMonitor")]
pub struct WaylandMonitor(Object<ffi::GdkWaylandMonitor, ffi::GdkWaylandMonitorClass>) @extends gdk::Monitor;
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl WaylandMonitor {}

impl fmt::Display for WaylandMonitor {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandMonitor")
}
}
7 changes: 0 additions & 7 deletions gdk4-wayland/src/auto/wayland_popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// DO NOT EDIT

use crate::WaylandSurface;
use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandPopup")]
Expand All @@ -15,9 +14,3 @@ glib::wrapper! {
}

impl WaylandPopup {}

impl fmt::Display for WaylandPopup {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandPopup")
}
}
8 changes: 0 additions & 8 deletions gdk4-wayland/src/auto/wayland_seat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandSeat")]
pub struct WaylandSeat(Object<ffi::GdkWaylandSeat, ffi::GdkWaylandSeatClass>) @extends gdk::Seat;
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl WaylandSeat {}

impl fmt::Display for WaylandSeat {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandSeat")
}
}
8 changes: 0 additions & 8 deletions gdk4-wayland/src/auto/wayland_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWaylandSurface")]
pub struct WaylandSurface(Object<ffi::GdkWaylandSurface>) @extends gdk::Surface;
Expand All @@ -16,9 +14,3 @@ glib::wrapper! {
impl WaylandSurface {
pub const NONE: Option<&'static WaylandSurface> = None;
}

impl fmt::Display for WaylandSurface {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandSurface")
}
}
8 changes: 1 addition & 7 deletions gdk4-wayland/src/auto/wayland_toplevel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use crate::WaylandSurface;
use glib::translate::*;
use std::{boxed::Box as Box_, fmt};
use std::boxed::Box as Box_;

glib::wrapper! {
#[doc(alias = "GdkWaylandToplevel")]
Expand Down Expand Up @@ -89,9 +89,3 @@ impl WaylandToplevel {
}
}
}

impl fmt::Display for WaylandToplevel {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("WaylandToplevel")
}
}
4 changes: 2 additions & 2 deletions gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ dcaa0e340516)
from gir-files (https://github.com/gtk-rs/gir-files @ 58cd940295f0)
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
15 changes: 0 additions & 15 deletions gdk4-win32/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// DO NOT EDIT

use glib::translate::*;
use std::fmt;

#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
Expand All @@ -17,20 +16,6 @@ pub enum Win32MessageFilterReturn {
__Unknown(i32),
}

impl fmt::Display for Win32MessageFilterReturn {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"Win32MessageFilterReturn::{}",
match *self {
Self::Continue => "Continue",
Self::Remove => "Remove",
_ => "Unknown",
}
)
}
}

#[doc(hidden)]
impl IntoGlib for Win32MessageFilterReturn {
type GlibType = ffi::GdkWin32MessageFilterReturn;
Expand Down
4 changes: 2 additions & 2 deletions gdk4-win32/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ dcaa0e340516)
from gir-files (https://github.com/gtk-rs/gir-files @ 58cd940295f0)
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
11 changes: 2 additions & 9 deletions gdk4-win32/src/auto/win32_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Win32HCursor;
use glib::{prelude::*, translate::*};
use std::{fmt, mem};

glib::wrapper! {
#[doc(alias = "GdkWin32Display")]
Expand Down Expand Up @@ -54,8 +53,8 @@ impl Win32Display {
pub fn wgl_version(display: &impl IsA<gdk::Display>) -> Option<(i32, i32)> {
assert_initialized_main_thread!();
unsafe {
let mut major = mem::MaybeUninit::uninit();
let mut minor = mem::MaybeUninit::uninit();
let mut major = std::mem::MaybeUninit::uninit();
let mut minor = std::mem::MaybeUninit::uninit();
let ret = from_glib(ffi::gdk_win32_display_get_wgl_version(
display.as_ref().to_glib_none().0,
major.as_mut_ptr(),
Expand All @@ -69,9 +68,3 @@ impl Win32Display {
}
}
}

impl fmt::Display for Win32Display {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32Display")
}
}
8 changes: 0 additions & 8 deletions gdk4-win32/src/auto/win32_display_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32DisplayManager")]
pub struct Win32DisplayManager(Object<ffi::GdkWin32DisplayManager, ffi::GdkWin32DisplayManagerClass>) @extends gdk::DisplayManager;
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl Win32DisplayManager {}

impl fmt::Display for Win32DisplayManager {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32DisplayManager")
}
}
8 changes: 0 additions & 8 deletions gdk4-win32/src/auto/win32_drag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32Drag")]
pub struct Win32Drag(Object<ffi::GdkWin32Drag, ffi::GdkWin32DragClass>) @extends gdk::Drag;
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl Win32Drag {}

impl fmt::Display for Win32Drag {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32Drag")
}
}
8 changes: 0 additions & 8 deletions gdk4-win32/src/auto/win32_gl_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32GLContext")]
pub struct Win32GLContext(Object<ffi::GdkWin32GLContext, ffi::GdkWin32GLContextClass>) @extends gdk::GLContext, gdk::DrawContext;
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl Win32GLContext {}

impl fmt::Display for Win32GLContext {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32GLContext")
}
}
7 changes: 0 additions & 7 deletions gdk4-win32/src/auto/win32_hcursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// DO NOT EDIT

use glib::{prelude::*, translate::*};
use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32HCursor")]
Expand All @@ -23,9 +22,3 @@ impl Win32HCursor {
ObjectExt::property(self, "display")
}
}

impl fmt::Display for Win32HCursor {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32HCursor")
}
}
7 changes: 0 additions & 7 deletions gdk4-win32/src/auto/win32_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// DO NOT EDIT

use glib::{prelude::*, translate::*};
use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32Monitor")]
Expand All @@ -29,9 +28,3 @@ impl Win32Monitor {
}
}
}

impl fmt::Display for Win32Monitor {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32Monitor")
}
}
8 changes: 0 additions & 8 deletions gdk4-win32/src/auto/win32_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32Screen")]
pub struct Win32Screen(Object<ffi::GdkWin32Screen, ffi::GdkWin32ScreenClass>);
Expand All @@ -14,9 +12,3 @@ glib::wrapper! {
}

impl Win32Screen {}

impl fmt::Display for Win32Screen {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32Screen")
}
}
7 changes: 0 additions & 7 deletions gdk4-win32/src/auto/win32_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#![allow(deprecated)]

use glib::{prelude::*, translate::*};
use std::fmt;

glib::wrapper! {
#[doc(alias = "GdkWin32Surface")]
Expand Down Expand Up @@ -35,9 +34,3 @@ impl Win32Surface {
}
}
}

impl fmt::Display for Win32Surface {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("Win32Surface")
}
}
4 changes: 2 additions & 2 deletions gdk4-win32/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ dcaa0e340516)
from gir-files (https://github.com/gtk-rs/gir-files @ 58cd940295f0)
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
Loading
Loading