Skip to content

Commit 572b3c2

Browse files
committed
Fixed warnings in GTK-example
1 parent c6cd240 commit 572b3c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/prompt_gtk.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ let make_window title =
3232
let vbox = GPack.vbox ~packing:window#add () in
3333

3434
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
3637

3738
let _ = button#connect#clicked ~callback:window#destroy in
3839

@@ -83,8 +84,9 @@ let main () =
8384
match conn#get_result with
8485
| Some res ->
8586
(match res#status with
86-
| Tuples_ok -> show_tuples res
87+
| Tuples_ok | Single_tuple -> show_tuples res
8788
| Copy_out -> show_copy_out conn
89+
| Copy_both -> show_copy_out conn
8890
| Copy_in ->
8991
let name = file_dialog "Choose file to send" in
9092
if name = "" then (conn # putline "\\.\n"; conn#endcopy)

0 commit comments

Comments
 (0)