This repository was archived by the owner on Jun 8, 2021. It is now read-only.
File tree 4 files changed +27
-12
lines changed
4 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ generate = [
18
18
" Gtk.AppChooserButton" ,
19
19
" Gtk.AppChooserWidget" ,
20
20
" Gtk.ApplicationInhibitFlags" ,
21
- " Gtk.ApplicationWindow" ,
22
21
" Gtk.Arrow" ,
23
22
" Gtk.ArrowType" ,
24
23
" Gtk.AspectFrame" ,
@@ -421,6 +420,13 @@ trait_name = "GtkApplicationExt"
421
420
name = " new"
422
421
ignore = true
423
422
423
+ [[object ]]
424
+ name = " Gtk.ApplicationWindow"
425
+ status = " generate"
426
+ [[object .function ]]
427
+ name = " new"
428
+ ignore = true
429
+
424
430
[[object ]]
425
431
name = " Gtk.Builder"
426
432
status = " generate"
@@ -1483,7 +1489,7 @@ status = "generate"
1483
1489
[[object .signal ]]
1484
1490
name = " insert-emoji"
1485
1491
# actually Since 3.22.27
1486
- version = " 3.22.26"
1492
+ version = " 3.22.26"
1487
1493
1488
1494
[[object ]]
1489
1495
name = " Gtk.TextViewLayer"
Original file line number Diff line number Diff line change
1
+ use ApplicationWindow ;
2
+ use Application ;
3
+ use Widget ;
4
+
5
+ use ffi;
6
+ use glib:: object:: Downcast ;
7
+ use glib:: object:: IsA ;
8
+ use glib:: translate:: * ;
9
+
10
+
11
+ impl ApplicationWindow {
12
+ pub fn new < P : IsA < Application > > ( application : & P ) -> ApplicationWindow {
13
+ skip_assert_initialized ! ( ) ;
14
+ unsafe {
15
+ Widget :: from_glib_none ( ffi:: gtk_application_window_new ( application. to_glib_none ( ) . 0 ) ) . downcast_unchecked ( )
16
+ }
17
+ }
18
+ }
Original file line number Diff line number Diff line change 2
2
// from gir-files (https://github.com/gtk-rs/gir-files)
3
3
// DO NOT EDIT
4
4
5
- use Application ;
6
5
use Bin ;
7
6
use Buildable ;
8
7
use Container ;
@@ -42,15 +41,6 @@ glib_wrapper! {
42
41
}
43
42
}
44
43
45
- impl ApplicationWindow {
46
- pub fn new ( application : & Application ) -> ApplicationWindow {
47
- skip_assert_initialized ! ( ) ;
48
- unsafe {
49
- Widget :: from_glib_none ( ffi:: gtk_application_window_new ( application. to_glib_none ( ) . 0 ) ) . downcast_unchecked ( )
50
- }
51
- }
52
- }
53
-
54
44
pub trait ApplicationWindowExt {
55
45
#[ cfg( any( feature = "v3_20" , feature = "dox" ) ) ]
56
46
fn get_help_overlay ( & self ) -> Option < ShortcutsWindow > ;
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ mod auto;
209
209
210
210
mod app_chooser;
211
211
mod application;
212
+ mod application_window;
212
213
mod assistant;
213
214
mod buildable;
214
215
mod builder;
You can’t perform that action at this time.
0 commit comments