File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,9 @@ status = "generate"
131
131
name = " text_property_to_text_list"
132
132
# TODO: requires a manual implementation
133
133
manual = true
134
+ [[object .function ]]
135
+ name = " set_program_class"
136
+ manual = true
134
137
135
138
[[object ]]
136
139
name = " GdkX11.X11Monitor"
Original file line number Diff line number Diff line change 3
3
// DO NOT EDIT
4
4
5
5
use crate :: X11Screen ;
6
- use glib:: object:: IsA ;
7
6
use glib:: translate:: * ;
8
7
use std:: fmt;
9
8
use std:: mem;
@@ -229,17 +228,6 @@ impl X11Display {
229
228
assert_initialized_main_thread ! ( ) ;
230
229
unsafe { from_glib_full ( ffi:: gdk_x11_display_open ( display_name. to_glib_none ( ) . 0 ) ) }
231
230
}
232
-
233
- #[ doc( alias = "gdk_x11_display_set_program_class" ) ]
234
- pub fn set_program_class ( display : & impl IsA < gdk:: Display > , program_class : & str ) {
235
- assert_initialized_main_thread ! ( ) ;
236
- unsafe {
237
- ffi:: gdk_x11_display_set_program_class (
238
- display. as_ref ( ) . to_glib_none ( ) . 0 ,
239
- program_class. to_glib_none ( ) . 0 ,
240
- ) ;
241
- }
242
- }
243
231
}
244
232
245
233
impl fmt:: Display for X11Display {
Original file line number Diff line number Diff line change 1
1
// Take a look at the license at the top of the repository in the LICENSE file.
2
2
3
3
use crate :: X11Display ;
4
+ use glib:: Cast ;
4
5
#[ cfg( any( feature = "xlib" , feature = "dox" ) ) ]
5
6
#[ cfg_attr( feature = "dox" , doc( cfg( feature = "xlib" ) ) ) ]
6
7
use glib:: { signal:: connect_raw, signal:: SignalHandlerId , ObjectType } ;
@@ -95,4 +96,15 @@ impl X11Display {
95
96
Box_ :: into_raw ( f) ,
96
97
)
97
98
}
99
+
100
+ #[ doc( alias = "gdk_x11_display_set_program_class" ) ]
101
+ pub fn set_program_class ( & self , program_class : & str ) {
102
+ assert_initialized_main_thread ! ( ) ;
103
+ unsafe {
104
+ ffi:: gdk_x11_display_set_program_class (
105
+ self . upcast_ref :: < gdk:: Display > ( ) . to_glib_none ( ) . 0 ,
106
+ program_class. to_glib_none ( ) . 0 ,
107
+ ) ;
108
+ }
109
+ }
98
110
}
You can’t perform that action at this time.
0 commit comments