Skip to content

Commit be2eae7

Browse files
committed
couple of small fixes
1 parent b11930c commit be2eae7

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,6 @@ Gtk.jl also supports GtkMessageDialog and provides several convenience functions
476476
```
477477
info_dialog("Julia rocks!")
478478
ask_dialog('Do you like chocolate ice cream?) && println("That's my favorite too.")
479-
warn_dialog("Oops!... I did it again", win)
479+
warn_dialog("Oops!... I did it again", parent=win)
480480
481481
```

src/windows.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ end
4646
GtkAboutDialogLeaf() = GtkAboutDialogLeaf(
4747
ccall((:gtk_about_dialog_new,libgtk),Ptr{GObject},()))
4848

49-
function GtkMessageDialogLeaf(parent::GtkContainer, flag::Integer, typ::Integer,
50-
button::Integer, message::StringLike)
51-
GtkMessageDialogLeaf(ccall((:gtk_message_dialog_new,libgtk), Ptr{GObject},
52-
(Ptr{GObject},Cint,Cint,Cint,Ptr{Uint8}),
53-
parent, flag, typ, button, bytestring(message) ))
54-
end
55-
5649
function GtkMessageDialogLeaf(parent::GtkContainer, flags::Integer, typ::Integer,
5750
message::StringLike, buttons)
5851
w = GtkMessageDialogLeaf(ccall((:gtk_message_dialog_new,libgtk), Ptr{GObject},

0 commit comments

Comments
 (0)