Skip to content

Commit 3359452

Browse files
felinirabilelmoussaoui
authored andcommitted
Add interface bounds to Impls
1 parent 2456561 commit 3359452

File tree

47 files changed

+143
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+143
-75
lines changed

examples/column_view_datagrid/grid_cell/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ pub struct Entry {
77

88
glib::wrapper! {
99
pub struct GridCell(ObjectSubclass<imp::GridCell>)
10-
@extends gtk::Widget;
10+
@extends gtk::Widget,
11+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
1112
}
1213

1314
impl Default for GridCell {

examples/composite_dialog/my_app_window/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
#[allow(deprecated)]
33
mod imp;
44

5-
use gtk::{glib, prelude::*, subclass::prelude::*};
5+
use gtk::{gio, glib, prelude::*, subclass::prelude::*};
66

77
glib::wrapper! {
88
pub struct MyAppWindow(ObjectSubclass<imp::MyAppWindow>)
9-
@extends gtk::Widget, gtk::Window, gtk::ApplicationWindow;
9+
@extends gtk::Widget, gtk::Window, gtk::ApplicationWindow,
10+
@implements gtk::Accessible, gio::ActionGroup, gio::ActionMap,
11+
gtk::Buildable, gtk::ConstraintTarget, gtk::Native, gtk::Root,
12+
gtk::ShortcutManager;
1013
}
1114

1215
#[gtk::template_callbacks]

examples/composite_template/ex_application_window/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ use gtk::{gio, glib, prelude::*, subclass::prelude::*};
55
glib::wrapper! {
66
pub struct ExApplicationWindow(ObjectSubclass<imp::ExApplicationWindow>)
77
@extends gtk::Widget, gtk::Window, gtk::ApplicationWindow,
8-
@implements gio::ActionMap, gio::ActionGroup;
8+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget,
9+
gtk::Native, gtk::Root, gtk::ShortcutManager, gio::ActionMap, gio::ActionGroup;
910
}
1011

1112
impl ExApplicationWindow {

examples/composite_template/ex_menu_button/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ use gtk::glib;
44

55
glib::wrapper! {
66
pub struct ExMenuButton(ObjectSubclass<imp::ExMenuButton>)
7-
@extends gtk::Widget;
7+
@extends gtk::Widget,
8+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
89
}

examples/confetti_snapshot_animation/confetti_widget/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ use gtk::{
99
use crate::{AnimatedExplosion, ExplosionParameters};
1010

1111
glib::wrapper! {
12-
pub struct ConfettiWidget(ObjectSubclass<imp::ConfettiWidget>) @implements gtk::Widget;
12+
pub struct ConfettiWidget(ObjectSubclass<imp::ConfettiWidget>)
13+
@extends gtk::Widget,
14+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
1315
}
1416

1517
impl Default for ConfettiWidget {

examples/custom_buildable/custom_buildable/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use gtk::{glib, prelude::*, subclass::prelude::*};
55
glib::wrapper! {
66
pub struct CustomBuildable(ObjectSubclass<imp::CustomBuildable>)
77
@extends gtk::Widget,
8-
@implements gtk::Buildable;
8+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
99
}
1010

1111
impl CustomBuildable {

examples/custom_editable/custom_editable/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::custom_tag::CustomTag;
77
glib::wrapper! {
88
pub struct CustomEditable(ObjectSubclass<imp::CustomEditable>)
99
@extends gtk::Widget,
10-
@implements gtk::Editable;
10+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Editable;
1111
}
1212

1313
impl Default for CustomEditable {

examples/custom_editable/custom_tag/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ use gtk::glib;
44

55
glib::wrapper! {
66
pub struct CustomTag(ObjectSubclass<imp::CustomTag>)
7-
@extends gtk::Widget;
7+
@extends gtk::Widget,
8+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
89
}
910

1011
impl CustomTag {

examples/custom_layout_manager/custom_layout_child/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ use gtk::{gdk, glib};
44

55
glib::wrapper! {
66
pub struct CustomLayoutChild(ObjectSubclass<imp::CustomLayoutChild>)
7-
@extends gtk::Widget;
7+
@extends gtk::Widget,
8+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
89
}
910

1011
impl CustomLayoutChild {

examples/custom_layout_manager/simple_widget/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use crate::custom_layout::CustomLayout;
1010

1111
glib::wrapper! {
1212
pub struct SimpleWidget(ObjectSubclass<imp::SimpleWidget>)
13-
@extends gtk::Widget;
13+
@extends gtk::Widget,
14+
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
1415
}
1516

1617
impl Default for SimpleWidget {

0 commit comments

Comments
 (0)