Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Gnome45 #166

Closed
wants to merge 6 commits into from
Closed

Update to Gnome45 #166

wants to merge 6 commits into from

Conversation

gilvbp
Copy link

@gilvbp gilvbp commented Aug 31, 2023

Update to Gnome45.
TO-DO on prefs.js needs to update the widget with the new adw.PreferencesGroup layout attributes

@GrylledCheez
Copy link
Collaborator

@gilvbp, do we need keybindings.js at all?

And eslint is complaining about your use of import and export. But that might just be that we need a newer eslintrc.yml

extension.js Outdated
extdatadir: imports.misc.extensionUtils.getCurrentExtension().path,
shell_version: parseInt(Config.PACKAGE_VERSION.split('.')[1], 10),
extdatadir: Extension.path,
// shell_version: parseInt(Config.PACKAGE_VERSION.split('.')[1], 10),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you remove the version check because it's only for v45, or because the version string isn't there?

Copy link
Author

Choose a reason for hiding this comment

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

It's only for 45.

@gilvbp
Copy link
Author

gilvbp commented Aug 31, 2023

@gilvbp, do we need keybindings.js at all?

And eslint is complaining about your use of import and export. But that might just be that we need a newer eslintrc.yml

Yes, we need. We have to change the eslintrc.yml to accept new ecma import type.

sourceType: module
@GrylledCheez
Copy link
Collaborator

GrylledCheez commented Aug 31, 2023

@gilvbp, use the latest .eslintrc.yml I pushed to your repo, then run eslint with --fix as described in CONTRIBUTING.md

@GrylledCheez
Copy link
Collaborator

GrylledCheez commented Sep 1, 2023

That fixes the style issues!

I don't have anything with Gnome 45 right now. So just do the following checks and I'll sign off on the PR.

Perform these tests in both landscape and portrait

  • keyboard moving
  • mouse moving around edges
  • ctrl+click and drag/drop
  • click drag, then ctrl+super and drag/drop
  • crtl+super arrow to grow in that direction
  • 1-5 rows
  • 1-5 columns

@gilvbp
Copy link
Author

gilvbp commented Sep 1, 2023

That fixes the style issues!

I don't have anything with Gnome 45 right now. So just do the following checks and I'll sign off on the PR.

Perform these tests in both landscape and portrait

  • keyboard moving
  • mouse moving around edges
  • ctrl+click and drag/drop
  • click drag, then ctrl+super and drag/drop
  • crtl+super arrow to grow in that direction
  • 1-5 rows
  • 1-5 columns

I won't be able to test the last 2 tests because pref.js still doesn't work (I described it on PR request). I need help with that.
Could you use boxes with the gnome-os nightly iso version?

@GrylledCheez
Copy link
Collaborator

If you want, I'll accept this partial PR while you try and get this working. But we aren't going to release until the prefs.js works,

But here's the preferences guide for 45.
https://gjs.guide/extensions/development/preferences.html#gsettings

@gilvbp
Copy link
Author

gilvbp commented Sep 1, 2023

Please accept this partial PR.
I need to get pref.js working to release it.
Thanks for the link, but I already read G45 preferences.
In that link:

"The user interface will be created with GTK4 and Adwaita, which has many elements specifically for settings and configuration."#

The problem is that the new gtk4 widget changed a lot of layout attributes, as you can see here (https://docs.gtk.org/gtk4/class.Widget.html) and here: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PreferencesGroup.html)
So, we will have a lot of refactoring.

@GrylledCheez GrylledCheez marked this pull request as draft September 1, 2023 20:47
@GrylledCheez
Copy link
Collaborator

Great work. I'll see what I can learn this weekend. Make sure you update the README to say that this is only for 45, and to give yourself credit.

@atassis
Copy link

atassis commented Dec 4, 2023

Hi there. I am a typescript developer and can help with this PR if needed. Migrated to latest fedora with gnome 45 and without this extension it doesnt feel good to use it. So I can both test or do smth else. Tried to write a new PR by myself but it is not that comfortable to debug what is wrong with extension changes

@GrylledCheez
Copy link
Collaborator

@atassis, take a look at some of the groundwork I started in the develop branch instead of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants