You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Hi
I am new on Julia and
I am trying to use the GTK Calendar:
using GTK3_jll
const libgtk = libgtk3
using Gtk, Gtk.ShortNames
function fnz(x)
println("$x")
end
win = GtkWindow( "Try Calendar")
c = ccall((:gtk_calendar_new,libgtk), Ptr{GObject}, (Ptr{UInt8},),"")
push!(win,c)
z = showall(win)
return ""
The problem arises when I try to link the day-selected signal to a Julia function:
I obtain could not load symbol "g_signal_connect" and I not found where the function is declared.
Second attempt
via gtk.jl signal_connect function
id = signal_connect(fnz, c, "day-selected")
In this case the error is: no method matching signal_connect that I suppose for c is a ::Ptr{GObject} and the function needs ::GObject, but I not know how transform a ::Ptr{GObject} into a ::GObject.
Thanks for any sggestions
Giovanni Rossati
The text was updated successfully, but these errors were encountered:
I tried, it works very well with file created by Glade, but the GtkBulder by the same string of file doesn't works.
My be is an old problem because i seen an unanswered request on StackOwerflow.
Hi
I am new on Julia and
I am trying to use the GTK Calendar:
The problem arises when I try to link the day-selected signal to a Julia function:
First attempt
via g_signal_connect function
I obtain could not load symbol "g_signal_connect" and I not found where the function is declared.
Second attempt
via gtk.jl signal_connect function
In this case the error is: no method matching signal_connect that I suppose for c is a ::Ptr{GObject} and the function needs ::GObject, but I not know how transform a ::Ptr{GObject} into a ::GObject.
Thanks for any sggestions
Giovanni Rossati
The text was updated successfully, but these errors were encountered: