Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Comment out non-functional precompiles (#580)
Browse files Browse the repository at this point in the history
These give warnings on Julia 1.7 when the package is built.
  • Loading branch information
timholy authored Jul 24, 2021
1 parent ee6ff66 commit a1e06d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/GLib/GLib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end

if Base.VERSION >= v"1.4.2"
precompile(Tuple{typeof(addref),Any}) # time: 0.003988418
precompile(Tuple{typeof(gc_ref),Any}) # time: 0.002649791
# precompile(Tuple{typeof(gc_ref),Any}) # time: 0.002649791
end

end
24 changes: 12 additions & 12 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function _precompile_()
precompile(Tuple{Type{GtkToolButton},String})
precompile(Tuple{Type{GtkToolbar}})
precompile(Tuple{Type{GtkCanvas},Int,Int})
precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventScroll})
precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventMotion})
precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventButton})
precompile(Tuple{typeof(signal_emit),GtkEntryLeaf,Symbol,Type})
# precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventScroll})
# precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventMotion})
# precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventButton})
# precompile(Tuple{typeof(signal_emit),GtkEntryLeaf,Symbol,Type})
precompile(Tuple{typeof(signal_connect),Function,GtkComboBoxTextLeaf,Symbol})
precompile(Tuple{typeof(setindex!),Dict{Union{WeakRef, GObject},Bool},Bool,GtkTextBufferLeaf})
precompile(Tuple{typeof(notify_realize),Ptr{GObject},GtkCanvas})
Expand All @@ -25,10 +25,10 @@ function _precompile_()
precompile(Tuple{typeof(canvas_on_draw_event),Ptr{GObject},Ptr{Nothing},GtkCanvas}) # time: 0.001126875
precompile(Tuple{typeof(mousedown_cb),Ptr{GObject},Ptr{GdkEventButton},MouseHandler}) # time: 0.001090291
precompile(Tuple{typeof(signal_connect),typeof(notify_realize), GtkCanvas, String, Type{Nothing}, Tuple{}})
precompile(Tuple{typeof(open_dialog),String,GtkWidget,Tuple{String}})
precompile(Tuple{typeof(open_dialog),String,GtkWidget,Tuple{String,String}})
precompile(Tuple{typeof(save_dialog),String,GtkWidget,Tuple{String}})
precompile(Tuple{Type{GtkFileChooserDialogLeaf},String,GtkContainer,Int32,Tuple{Tuple{String, Int32}, Tuple{String, Int32}}})
precompile(Tuple{typeof(open_dialog),String,GtkWindowLeaf,Tuple{String}})
precompile(Tuple{typeof(open_dialog),String,GtkWindowLeaf,Tuple{String,String}})
precompile(Tuple{typeof(save_dialog),String,GtkWindowLeaf,Tuple{String}})
precompile(Tuple{Type{GtkFileChooserDialogLeaf},String,GtkWindowLeaf,Int32,Tuple{Tuple{String, Int32}, Tuple{String, Int32}}})
precompile(Tuple{Type{GtkFileFilterLeaf},String})
precompile(Tuple{typeof(makefilters!),GtkFileChooser,Tuple{String, String}})
precompile(Tuple{typeof(draw),GtkCanvas,Bool})
Expand All @@ -41,7 +41,7 @@ function _precompile_()
GtkButtonLeaf,
GtkToolButtonLeaf,
GtkCanvas,
GtkWidget,
# GtkWidget,
GtkProgressBarLeaf,
GtkLabelLeaf,
GtkScaleLeaf,
Expand All @@ -52,12 +52,12 @@ function _precompile_()
GtkCheckButtonLeaf,
GtkComboBoxTextLeaf,
GtkAspectFrameLeaf,
GtkLabel,
# GtkLabel,
GtkAdjustmentLeaf,
GObject,
# GObject,
GtkTextBufferLeaf,
GtkTextViewLeaf,
GtkTextBuffer,
# GtkTextBuffer,
GtkGridLeaf,
]
precompile(Tuple{typeof(GLib.gobject_ref), T})
Expand Down

0 comments on commit a1e06d4

Please sign in to comment.