planify icon indicating copy to clipboard operation
planify copied to clipboard

Failed building due to missing static cast

Open lucassiauve opened this issue 1 year ago • 0 comments

Describe the Bug
The build fails on the master branch due to a static cast error when converting Gtk.EventControllerKey to Gtk.ShortcutController.

To Reproduce
Steps to reproduce the issue:

  1. Configure the build environment:
    meson build --prefix=/usr
    
  2. Navigate to the build directory:
    cd build
    
  3. Run the build process:
    ninja
    

Expected Behavior
The ninja build should complete successfully without errors.

Actual Behavior
The build fails with the following error messages:

../src/Dialogs/ProjectPicker/ProjectPicker.vala:172.25-172.42: error: Argument 1: Cannot convert from `unowned Gtk.EventControllerKey' to `unowned Gtk.ShortcutController'
  172 |         add_controller (destroy_controller);
      |                         ^~~~~~~~~~~~~~~~~~  
../src/Layouts/ItemSidebarView.vala:593.4-593.17: warning: implicit .begin is deprecated
  593 | 			_complete_item (old_checked, old_completed_at);
      | 			^~~~~~~~~~~~~~                                 
../src/Dialogs/Preferences/PreferencesWindow.vala:39.25-39.42: error: Argument 1: Cannot convert from `unowned Gtk.EventControllerKey' to `unowned Gtk.ShortcutController'
   39 |         add_controller (destroy_controller);
      |                         ^~~~~~~~~~~~~~~~~~  
../src/Dialogs/LabelPicker.vala:78.19-78.36: error: Argument 1: Cannot convert from `unowned Gtk.EventControllerKey' to `unowned Gtk.ShortcutController'
   78 | 		add_controller (destroy_controller);
      | 		               ^~~~~~~~~~~~~~~~~~  

System Information

  • OS: Arch Linux (Kernel 6.13.8-arch1-1)
  • gtk2 2.24.33-5
  • gtk3 1:3.24.49-1
  • gtk4 1:4.18.2-1

Additional Notes
The issue may be due to a missing static cast.

lucassiauve avatar Mar 24 '25 18:03 lucassiauve