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

Support for GNOME 45, drop support for previous GNOME versions #364

Merged
merged 11 commits into from
Apr 3, 2024

Conversation

mwilck
Copy link
Contributor

@mwilck mwilck commented Dec 4, 2023

This PR fixes #362. When it is merged, we will have to rework our sticky issue #327.

Signed-off-by: Martin Wilck <mwilck@suse.com>
I used check buttons for the settings. Adw.ComboRow might have been
more suitable, but I couldn't find an example how to set it up.

The code here was copied from GNOME's window-list extension and
adapted to hamster.

Signed-off-by: Martin Wilck <mwilck@suse.com>
This implies that support for all previous GNOME versions  is dropped.
(https://gjs.guide/extensions/upgrading/gnome-shell-45.html#shell-version)

Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
"global" isn't generally available any more.

Signed-off-by: Martin Wilck <mwilck@suse.com>
@mwilck mwilck linked an issue Dec 4, 2023 that may be closed by this pull request
@mwilck mwilck mentioned this pull request Dec 4, 2023
Copy link
Member

@hedayat hedayat left a comment

Choose a reason for hiding this comment

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

LGTM. I just noted some indentation problems. Other than that, looks fine. (Although, I'm not a JS coder anyway :P )

Comment on lines +53 to +58
console.log("HotkeyRow: good hotkey value ", hotkeys);
this.current = mappings;
settings.set_strv(bind, this.current);
} else {
console.log("invalid hotkey value ", hotkeys);
this.set_text(this.current.join(","));
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't seem to be properly indented.

Comment on lines +100 to +105
action_name: 'hamster.panel-placement',
action_target: new GLib.Variant('i', p),
});
const row = new Adw.ActionRow({
activatable_widget: btn,
title,
Copy link
Member

Choose a reason for hiding this comment

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

Indentation problem here too. and some other locations below, which I won't comment :P

@3-w-c
Copy link

3-w-c commented Jan 14, 2024

Tested here, working great for me!

@piio
Copy link

piio commented Feb 22, 2024

Hi, after updating to
362-support-for-gnome-45, I have following error:
Hamster: connection to DBUS window service failed
Connection to DBUS window service failed
TypeError: _actor.add_actor is not a function

@mwilck
Copy link
Contributor Author

mwilck commented Feb 22, 2024

@piio

Hamster: connection to DBUS window service failed

That sounds more like an issue with hamster itself. Did you perhaps update not only the GNOME extension, but also hamster?

Can you run "hamster" from the command line? Does the extension work after you do?

@piio
Copy link

piio commented Feb 22, 2024

The hamster processess are running - after running hamster from command line there is no difference.
I tried to use both master from github version and latest stable 3.0.3.

I will try to test on fresh user profile.

@c0m1c5an5
Copy link

Can confirm, everything works properly. Fedora39, Gnome 45.5, Hamster master branch (81be67e08a6c2a69f2f042df5459dba886cbd7de).

@mwilck mwilck merged commit 5f9c134 into develop Apr 3, 2024
@mwilck
Copy link
Contributor Author

mwilck commented Apr 3, 2024

As GNOME 45 is out for 6 months now, I've merged this into the develop branch.

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.

Support for GNOME 45
5 participants