Skip to content

Commit

Permalink
regenerate with dropped manual StaticType impl
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Dec 30, 2021
1 parent ce907e5 commit 54270a4
Show file tree
Hide file tree
Showing 56 changed files with 56 additions and 281 deletions.
2 changes: 1 addition & 1 deletion 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 @ 090cd5db90ac)
Generated by gir (https://github.com/gtk-rs/gir @ 12b1f3471236)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 898f6c1fb177)
2 changes: 1 addition & 1 deletion 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 @ 090cd5db90ac)
Generated by gir (https://github.com/gtk-rs/gir @ 12b1f3471236)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 898f6c1fb177)
2 changes: 1 addition & 1 deletion gdk4-x11/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 @ 090cd5db90ac)
Generated by gir (https://github.com/gtk-rs/gir @ 12b1f3471236)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 898f6c1fb177)
2 changes: 1 addition & 1 deletion gdk4-x11/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 @ 090cd5db90ac)
Generated by gir (https://github.com/gtk-rs/gir @ 12b1f3471236)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 898f6c1fb177)
7 changes: 1 addition & 6 deletions gdk4/src/auto/button_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkButtonEvent")]
Expand All @@ -13,11 +12,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for ButtonEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_button_event_get_type()) }
type_ => || ffi::gdk_button_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/crossing_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::CrossingMode;
use crate::Event;
use crate::NotifyType;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkCrossingEvent")]
Expand All @@ -15,11 +14,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for CrossingEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_crossing_event_get_type()) }
type_ => || ffi::gdk_crossing_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/delete_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;
use std::fmt;

glib::wrapper! {
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for DeleteEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_delete_event_get_type()) }
type_ => || ffi::gdk_delete_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/dnd_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::Drop;
use crate::Event;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkDNDEvent")]
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for DNDEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_dnd_event_get_type()) }
type_ => || ffi::gdk_dnd_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use crate::Seat;
use crate::Surface;
use crate::TimeCoord;
use glib::translate::*;
use glib::StaticType;
use std::mem;
use std::ptr;

Expand All @@ -24,11 +23,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr),
unref => |ptr| ffi::gdk_event_unref(ptr),
}
}
impl glib::StaticType for Event {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_event_get_type()) }
type_ => || ffi::gdk_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/focus_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkFocusEvent")]
Expand All @@ -13,11 +12,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for FocusEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_focus_event_get_type()) }
type_ => || ffi::gdk_focus_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/grab_broken_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::Event;
use crate::Surface;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkGrabBrokenEvent")]
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for GrabBrokenEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_grab_broken_event_get_type()) }
type_ => || ffi::gdk_grab_broken_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/key_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::Event;
use crate::ModifierType;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkKeyEvent")]
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for KeyEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_key_event_get_type()) }
type_ => || ffi::gdk_key_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/motion_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;
use std::fmt;

glib::wrapper! {
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for MotionEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_motion_event_get_type()) }
type_ => || ffi::gdk_motion_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/pad_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;
use std::mem;

glib::wrapper! {
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for PadEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_pad_event_get_type()) }
type_ => || ffi::gdk_pad_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/proximity_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;
use std::fmt;

glib::wrapper! {
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for ProximityEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_proximity_event_get_type()) }
type_ => || ffi::gdk_proximity_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/scroll_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::Event;
use crate::ScrollDirection;
use glib::translate::*;
use glib::StaticType;
use std::mem;

glib::wrapper! {
Expand All @@ -15,11 +14,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for ScrollEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_scroll_event_get_type()) }
type_ => || ffi::gdk_scroll_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/touch_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::Event;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
#[doc(alias = "GdkTouchEvent")]
Expand All @@ -13,11 +12,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for TouchEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_touch_event_get_type()) }
type_ => || ffi::gdk_touch_event_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/touchpad_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::Event;
use crate::TouchpadGesturePhase;
use glib::translate::*;
use glib::StaticType;
use std::mem;

glib::wrapper! {
Expand All @@ -15,11 +14,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
}
}
impl glib::StaticType for TouchpadEvent {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gdk_touchpad_event_get_type()) }
type_ => || ffi::gdk_touchpad_event_get_type(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion gdk4/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 @ 090cd5db90ac)
Generated by gir (https://github.com/gtk-rs/gir @ 12b1f3471236)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 898f6c1fb177)
2 changes: 1 addition & 1 deletion gdk4/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 @ 090cd5db90ac)
Generated by gir (https://github.com/gtk-rs/gir @ 12b1f3471236)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 898f6c1fb177)
7 changes: 1 addition & 6 deletions gsk4/src/auto/blend_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::BlendMode;
use crate::RenderNode;
use glib::translate::*;
use glib::StaticType;
use std::fmt;

glib::wrapper! {
Expand All @@ -15,11 +14,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gsk_render_node_ref(ptr as *mut ffi::GskRenderNode),
unref => |ptr| ffi::gsk_render_node_unref(ptr as *mut ffi::GskRenderNode),
}
}
impl glib::StaticType for BlendNode {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gsk_blend_node_get_type()) }
type_ => || ffi::gsk_blend_node_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gsk4/src/auto/blur_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::RenderNode;
use glib::translate::*;
use glib::StaticType;
use std::fmt;

glib::wrapper! {
Expand All @@ -14,11 +13,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gsk_render_node_ref(ptr as *mut ffi::GskRenderNode),
unref => |ptr| ffi::gsk_render_node_unref(ptr as *mut ffi::GskRenderNode),
}
}
impl glib::StaticType for BlurNode {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gsk_blur_node_get_type()) }
type_ => || ffi::gsk_blur_node_get_type(),
}
}

Expand Down
7 changes: 1 addition & 6 deletions gsk4/src/auto/border_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::RenderNode;
use crate::RoundedRect;
use glib::translate::*;
use glib::StaticType;
use std::fmt;

glib::wrapper! {
Expand All @@ -15,11 +14,7 @@ glib::wrapper! {
match fn {
ref => |ptr| ffi::gsk_render_node_ref(ptr as *mut ffi::GskRenderNode),
unref => |ptr| ffi::gsk_render_node_unref(ptr as *mut ffi::GskRenderNode),
}
}
impl glib::StaticType for BorderNode {
fn static_type() -> glib::Type {
unsafe { from_glib(ffi::gsk_border_node_get_type()) }
type_ => || ffi::gsk_border_node_get_type(),
}
}

Expand Down
Loading

0 comments on commit 54270a4

Please sign in to comment.