This repository was archived by the owner on Mar 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Take a look at the license at the top of the repository in the LICENSE file.
2
+
3
+ use glib:: subclass:: prelude:: * ;
4
+
5
+ use super :: toggle_button:: ToggleButtonImpl ;
6
+ use crate :: MenuButton ;
7
+
8
+ pub trait MenuButtonImpl : MenuButtonImplExt + ToggleButtonImpl { }
9
+
10
+ pub trait MenuButtonImplExt : ObjectSubclass { }
11
+
12
+ impl < T : MenuButtonImpl > MenuButtonImplExt for T { }
13
+
14
+ unsafe impl < T : MenuButtonImpl > IsSubclassable < T > for MenuButton {
15
+ fn class_init ( class : & mut glib:: Class < Self > ) {
16
+ Self :: parent_class_init :: < T > ( class) ;
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pub mod header_bar;
24
24
pub mod icon_view;
25
25
pub mod list_box;
26
26
pub mod list_box_row;
27
+ pub mod menu_button;
27
28
#[ cfg( any( gdk_backend = "x11" , feature = "dox" ) ) ]
28
29
pub mod plug;
29
30
pub mod scrolled_window;
@@ -65,6 +66,7 @@ pub mod prelude {
65
66
pub use super :: icon_view:: { IconViewImpl , IconViewImplExt } ;
66
67
pub use super :: list_box:: { ListBoxImpl , ListBoxImplExt } ;
67
68
pub use super :: list_box_row:: { ListBoxRowImpl , ListBoxRowImplExt } ;
69
+ pub use super :: menu_button:: MenuButtonImpl ;
68
70
#[ cfg( any( gdk_backend = "x11" , feature = "dox" ) ) ]
69
71
pub use super :: plug:: { PlugImpl , PlugImplExt } ;
70
72
pub use super :: scrolled_window:: { ScrolledWindowImpl , ScrolledWindowImplExt } ;
You can’t perform that action at this time.
0 commit comments