We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6cd240 commit 572b3c2Copy full SHA for 572b3c2
examples/prompt_gtk.ml
@@ -32,7 +32,8 @@ let make_window title =
32
let vbox = GPack.vbox ~packing:window#add () in
33
34
let button =
35
- GButton.button ~label:"Close" ~packing:(vbox#pack ~from:`END) () in
+ GButton.button ~label:"Close" ~packing:(fun widget ->
36
+ vbox#pack ~from:`END widget) () in
37
38
let _ = button#connect#clicked ~callback:window#destroy in
39
@@ -83,8 +84,9 @@ let main () =
83
84
match conn#get_result with
85
| Some res ->
86
(match res#status with
- | Tuples_ok -> show_tuples res
87
+ | Tuples_ok | Single_tuple -> show_tuples res
88
| Copy_out -> show_copy_out conn
89
+ | Copy_both -> show_copy_out conn
90
| Copy_in ->
91
let name = file_dialog "Choose file to send" in
92
if name = "" then (conn # putline "\\.\n"; conn#endcopy)
0 commit comments