File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ let make_window title =
32
32
let vbox = GPack. vbox ~packing: window#add () in
33
33
34
34
let button =
35
- GButton. button ~label: " Close" ~packing: (vbox#pack ~from: `END ) () in
35
+ GButton. button ~label: " Close" ~packing: (fun widget ->
36
+ vbox#pack ~from: `END widget) () in
36
37
37
38
let _ = button#connect#clicked ~callback: window#destroy in
38
39
@@ -83,8 +84,9 @@ let main () =
83
84
match conn#get_result with
84
85
| Some res ->
85
86
(match res#status with
86
- | Tuples_ok -> show_tuples res
87
+ | Tuples_ok | Single_tuple -> show_tuples res
87
88
| Copy_out -> show_copy_out conn
89
+ | Copy_both -> show_copy_out conn
88
90
| Copy_in ->
89
91
let name = file_dialog " Choose file to send" in
90
92
if name = " " then (conn # putline " \\ .\n " ; conn#endcopy)
You can’t perform that action at this time.
0 commit comments