diff --git a/REQUIRE b/REQUIRE index 0589721..8e7c510 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,5 +1,4 @@ julia 0.6 -Gtk Cairo BinDeps Compat diff --git a/src/Rsvg.jl b/src/Rsvg.jl index f67e3b2..f06be1d 100644 --- a/src/Rsvg.jl +++ b/src/Rsvg.jl @@ -6,8 +6,8 @@ isfile(depsjl) ? include(depsjl) : error("Rsvg not properly ", "installed. Please run\nPkg.build(\"Rsvg\")") using Cairo -using Gtk +include("gerror.jl") include("types.jl") include("calls.jl") diff --git a/src/gerror.jl b/src/gerror.jl new file mode 100644 index 0000000..a361c10 --- /dev/null +++ b/src/gerror.jl @@ -0,0 +1,5 @@ +struct GError + domain::UInt32 + code::Cint + message::Ptr{UInt8} +end diff --git a/src/types.jl b/src/types.jl index b6da248..525d63e 100644 --- a/src/types.jl +++ b/src/types.jl @@ -12,16 +12,14 @@ type RsvgHandle end end -function destroy(handle::RsvgHandle) - if handle.ptr == C_NULL - return - end - Gtk.GLib.gc_unref(handle) - handle.ptr = C_NULL - nothing -end - -GError = Gtk.GLib.GError +# function destroy(handle::RsvgHandle) +# if handle.ptr == C_NULL +# return +# end +# Gtk.GLib.gc_unref(handle) +# handle.ptr = C_NULL +# nothing +# end """ RsvgDimensionData is a simple struct of diff --git a/test/runtests.jl b/test/runtests.jl index dbc3066..8ceaaa6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,5 @@ using Rsvg using Cairo -using Gtk using Base.Test