Skip to content

Commit

Permalink
Use bytestring() in GtkAspectFrame ccall
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Dec 27, 2013
1 parent c09e792 commit 3ae716f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ GtkFrame() = GtkFrame(ccall((:gtk_frame_new, libgtk), Ptr{GObject},

### GtkAspectFrame
@GType GtkAspectFrame <: GtkBin
GtkAspectFrame(label::String, xalign, yalign, ratio) = # % of available space, 0<=a<=1
GtkAspectFrame(label, xalign, yalign, ratio) = # % of available space, 0<=a<=1
GtkAspectFrame(ccall((:gtk_aspect_frame_new, libgtk), Ptr{GObject},
(Ptr{Uint8}, Cfloat, Cfloat, Cfloat, Cint), label, xalign, yalign, ratio, false))
GtkAspectFrame(label::String, xalign, yalign) = # % of available space, 0<=a<=1. Uses the aspect ratio of the child
(Ptr{Uint8}, Cfloat, Cfloat, Cfloat, Cint), bytestring(label), xalign, yalign, ratio, false))
GtkAspectFrame(label, xalign, yalign) = # % of available space, 0<=a<=1. Uses the aspect ratio of the child
GtkAspectFrame(ccall((:gtk_aspect_frame_new, libgtk), Ptr{GObject},
(Ptr{Uint8}, Cfloat, Cfloat, Cfloat, Cint), label, xalign, yalign, 1., true))
(Ptr{Uint8}, Cfloat, Cfloat, Cfloat, Cint), bytestring(label), xalign, yalign, 1., true))

### GtkBox
@GType GtkBox <: GtkBox
Expand Down

0 comments on commit 3ae716f

Please sign in to comment.