This repository was archived by the owner on Jun 8, 2021. It is now read-only.
File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -42,39 +42,36 @@ impl FileChooserDialog {
42
42
)
43
43
} ,
44
44
1 => {
45
- let first_button_text: Stash < * const c_char , str > = buttons[ 0 ] . 0 . to_glib_none ( ) ;
46
45
ffi:: gtk_file_chooser_dialog_new (
47
46
title. to_glib_none ( ) . 0 ,
48
47
parent. to_glib_none ( ) . 0 ,
49
48
action. to_glib ( ) ,
50
- first_button_text . 0 ,
49
+ buttons [ 0 ] . 0 . to_glib_none ( ) . 0 ,
51
50
buttons[ 0 ] . 1 . to_glib ( ) ,
52
51
ptr:: null :: < c_char > ( ) ,
53
52
)
54
53
} ,
55
54
2 => {
56
- let first_button_text: Stash < * const c_char , str > = buttons[ 0 ] . 0 . to_glib_none ( ) ;
57
55
let second_button_text: Stash < * const c_char , str > = buttons[ 1 ] . 0 . to_glib_none ( ) ;
58
56
ffi:: gtk_file_chooser_dialog_new (
59
57
title. to_glib_none ( ) . 0 ,
60
58
parent. to_glib_none ( ) . 0 ,
61
59
action. to_glib ( ) ,
62
- first_button_text . 0 ,
60
+ buttons [ 0 ] . 0 . to_glib_none ( ) . 0 ,
63
61
buttons[ 0 ] . 1 . to_glib ( ) ,
64
62
second_button_text. 0 ,
65
63
buttons[ 1 ] . 1 . to_glib ( ) ,
66
64
ptr:: null :: < c_char > ( ) ,
67
65
)
68
66
} ,
69
67
3 => {
70
- let first_button_text: Stash < * const c_char , str > = buttons[ 0 ] . 0 . to_glib_none ( ) ;
71
68
let second_button_text: Stash < * const c_char , str > = buttons[ 1 ] . 0 . to_glib_none ( ) ;
72
69
let third_button_text: Stash < * const c_char , str > = buttons[ 2 ] . 0 . to_glib_none ( ) ;
73
70
ffi:: gtk_file_chooser_dialog_new (
74
71
title. to_glib_none ( ) . 0 ,
75
72
parent. to_glib_none ( ) . 0 ,
76
73
action. to_glib ( ) ,
77
- first_button_text . 0 ,
74
+ buttons [ 0 ] . 0 . to_glib_none ( ) . 0 ,
78
75
buttons[ 0 ] . 1 . to_glib ( ) ,
79
76
second_button_text. 0 ,
80
77
buttons[ 1 ] . 1 . to_glib ( ) ,
You can’t perform that action at this time.
0 commit comments