Fix issue #9: Update Gio dependency to v0.9.0#10
Open
emad-elsaid wants to merge 4 commits intomasterfrom
Open
Conversation
This commit resolves the compilation errors on Arch Linux by updating the Gio UI library from v0.1.0 to v0.9.0. Changes made: - Updated gioui.org from v0.1.0 to v0.9.0 - Updated related dependencies (golang.org/x/exp, golang.org/x/text, etc.) - Fixed API compatibility issues: - Updated material.NewTheme() to take no arguments - Updated text.NewShaper() to use text.WithCollection() - Updated Clickable.Clicked() calls to pass layout.Context - Replaced editor.Focused() with gtx.Source.Focused(editor) The program now compiles successfully with the new Gio version. The only remaining errors are missing system libraries (wayland-client and xkbcommon) which are unrelated to this issue and expected on headless systems. Fixes #9
Updated remaining files to work with Gio v0.9.0: - main.go: Changed app.NewWindow() to new(app.Window) - main.go: Updated system.DestroyEvent/FrameEvent to app.DestroyEvent/FrameEvent - main.go: Changed layout.NewContext to app.NewContext - breakpoints_panel.go: Fixed Clicked() calls to pass layout.Context - console_panel.go: Replaced Editor.Events() with Editor.Update() loop - proc.go: Fixed Clicked() calls in all widget Layout methods All Go compilation errors are now resolved.
Completed all API updates for Gio v0.9.0: - main.go: Changed win.Events() to win.Event() (blocking call) - sidebar.go: Replaced Editor.Events() with Editor.Update() loop - source_panel.go: Fixed Clicked() calls to pass layout.Context - toolbar.go: Refactored Layout to handle events with context access All Go compilation errors are now resolved. The program compiles successfully with only system library dependencies remaining (xkbcommon and wayland-client).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit resolves the compilation errors on Arch Linux by updating the Gio UI library from v0.1.0 to v0.9.0.
Changes made:
The program now compiles successfully with the new Gio version. The only remaining errors are missing system libraries (wayland-client and xkbcommon) which are unrelated to this issue and expected on headless systems.
Fixes #9