Skip to content

Port to GTK4 - #295

Merged
ryonakano merged 33 commits into
masterfrom
danirabbit/gtk4
Aug 20, 2026
Merged

ryonakano merged 33 commits into
masterfrom
danirabbit/gtk4

Conversation

@danirabbit

@danirabbit danirabbit commented May 22, 2025 •

Copy link
Copy Markdown
Member

No description provided.

@danirabbit danirabbit moved this to In Progress in GTK4 Porting May 22, 2025
* Fix build failing when defining signals with Gdk.ScrollEvent

I suspect this is a bug of Vala. It tries to call gdk_value_get_event() which
does not exist and fails to build with the following error message:

    ../src/Widgets/DisplayWidget.vala: In function ‘g_cclosure_user_marshal_VOID__GDK_EVENT’:
    ../src/Widgets/DisplayWidget.vala:18:19: error: implicit declaration of function ‘gdk_value_get_event’; did you mean ‘g_value_get_uint’? [-Wimplicit-function-declaration]
       18 | public class Sound.DisplayWidget : Gtk.Box {
          |                   ^~~~~~~~~~~~~~~~~~~
          |                   g_value_get_uint
    ../src/Widgets/DisplayWidget.vala:18:19: error: passing argument 2 of ‘callback’ makes pointer from integer without a cast [-Wint-conversion]
       18 | public class Sound.DisplayWidget : Gtk.Box {
          |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
          |                   |
          |                   int

This commit resolves the above build error by wrapping Gdk.ScrollEvent with
GLib.Value.

* Make sure scroll works

* Review variable name

* Improve comment

@ryonakano ryonakano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick look but leaving some comments.

Comment thread meson.build Outdated
Comment thread src/CanberraGtk4.vala
Comment thread src/Widgets/DisplayWidget.vala
@ryonakano ryonakano added this to OS 9 Aug 10, 2026
@ryonakano ryonakano moved this to In progress in OS 9 Aug 10, 2026
@danirabbit
danirabbit marked this pull request as ready for review August 19, 2026 16:57
Co-authored-by: Ryo Nakano <ryonakaknock3@gmail.com>
@danirabbit
danirabbit requested a review from ryonakano August 19, 2026 17:27
@danirabbit

Copy link
Copy Markdown
Member Author

@ryonakano did we want to try to migrate to new controllers in this branch or is that okay to leave until after merging?

@ryonakano

Copy link
Copy Markdown
Member

@danirabbit I think we can merge this with the legacy one for now to introduce the sound indicator to OS 9 Daily.

@ryonakano
ryonakano merged commit 73168ad into master Aug 20, 2026
2 of 4 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in OS 9 Aug 20, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in GTK4 Porting Aug 20, 2026
@ryonakano
ryonakano deleted the danirabbit/gtk4 branch August 20, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants