Skip to content

Commit

Permalink
Remove dependency on Gtk.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jun 9, 2018
1 parent 734501d commit 4474c99
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
1 change: 0 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
julia 0.6
Gtk
Cairo
BinDeps
Compat
Expand Down
2 changes: 1 addition & 1 deletion src/Rsvg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
5 changes: 5 additions & 0 deletions src/gerror.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
struct GError
domain::UInt32
code::Cint
message::Ptr{UInt8}
end
18 changes: 8 additions & 10 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Rsvg
using Cairo
using Gtk


using Base.Test
Expand Down

0 comments on commit 4474c99

Please sign in to comment.