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.
The MWE code below works perfectly fine on MacOS Ventura 13.6.6 but on Sonoma 14.4.1 it produces numerous warnings like this:
(<unknown>:18639): Gtk-WARNING **: 21:31:19.255: drawing failure for widget 'GtkButton': the surface type is not appropriate for the operation
I am using Julia 1.10.2 and Gtk v1.3.0 in both cases. (There could be other environment differences and I cannot pin down exactly when it stopped working.)
Furthermore, the GUI shows just a blank white screen at first, and only after moving the mouse into the GUI and clicking and moving the mouse out again does the "Click Me" text finally appear. This is a disastrous state for trying to use Gtk with Sonoma. I am teaching a class where >60 students are trying to use GUIs like this so I am pleading for help!
This code was working earlier this semester, so it is possible that Sonoma 14.4 (Mar. 7) or 14.4.1 (Mar. 25) caused it to stop working. If anyone could test with Sonoma 14.3 that would be helpful!
using Gtk
win =GtkWindow("My First Gtk.jl Program", 400, 200)
b =GtkButton("Click Me")
push!(win,b)
functionon_button_clicked(w)
println("The button has been clicked")
endsignal_connect(on_button_clicked, b, "clicked")
signal_connect(win, "key-press-event") do widget, event
println("You pressed key ", event.keyval)
endshowall(win)
Edit: actually I am now getting the same error with MacOS Ventura 13.6.6. Unclear what changed. Earlier in the semester it worked on some version of MacOS...
The text was updated successfully, but these errors were encountered:
Update: I've since learned that Gtk3 is no longer supported and #699 updates the README to spare others from my headaches. I close the issue since it is unlikely to ever be addressed and it seems that migrating to Gtk4 is easy enough.
The MWE code below works perfectly fine on MacOS Ventura 13.6.6 but on Sonoma 14.4.1 it produces numerous warnings like this:
(<unknown>:18639): Gtk-WARNING **: 21:31:19.255: drawing failure for widget 'GtkButton': the surface type is not appropriate for the operation
I am using Julia 1.10.2 and Gtk v1.3.0 in both cases. (There could be other environment differences and I cannot pin down exactly when it stopped working.)
Furthermore, the GUI shows just a blank white screen at first, and only after moving the mouse into the GUI and clicking and moving the mouse out again does the "Click Me" text finally appear. This is a disastrous state for trying to use Gtk with Sonoma. I am teaching a class where >60 students are trying to use GUIs like this so I am pleading for help!
This code was working earlier this semester, so it is possible that Sonoma 14.4 (Mar. 7) or 14.4.1 (Mar. 25) caused it to stop working. If anyone could test with Sonoma 14.3 that would be helpful!
The code is based on https://juliagraphics.github.io/Gtk.jl/latest/manual/gettingStarted
Edit: actually I am now getting the same error with MacOS Ventura 13.6.6. Unclear what changed. Earlier in the semester it worked on some version of MacOS...
The text was updated successfully, but these errors were encountered: