Skip to content

Commit c3d2f3c

Browse files
jf2048bilelmoussaoui
authored andcommitted
gtk4: allow subclassing WindowGroup
1 parent 1649a89 commit c3d2f3c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

gtk4/src/subclass/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pub mod tree_model_filter;
8484
pub mod tree_view;
8585
pub mod widget;
8686
pub mod window;
87+
pub mod window_group;
8788

8889
// rustdoc-stripper-ignore-next
8990
/// Traits intended for blanket imports.
@@ -174,4 +175,5 @@ pub mod prelude {
174175
CompositeTemplateDisposeExt, CompositeTemplateInitializingExt, WidgetImpl, WidgetImplExt,
175176
};
176177
pub use super::window::{WindowImpl, WindowImplExt};
178+
pub use super::window_group::WindowGroupImpl;
177179
}

gtk4/src/subclass/window_group.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Take a look at the license at the top of the repository in the LICENSE file.
2+
3+
// rustdoc-stripper-ignore-next
4+
//! Traits intended for subclassing [`WindowGroup`](crate::WindowGroup).
5+
6+
use crate::{subclass::prelude::*, WindowGroup};
7+
8+
pub trait WindowGroupImpl: ObjectImpl {}
9+
10+
unsafe impl<T: WindowGroupImpl> IsSubclassable<T> for WindowGroup {}

0 commit comments

Comments
 (0)