Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

bug: GradiencePluginRow (Plugins will not work) #865

Open
2 tasks done
keilmillerjr opened this issue Feb 27, 2024 · 2 comments
Open
2 tasks done

bug: GradiencePluginRow (Plugins will not work) #865

keilmillerjr opened this issue Feb 27, 2024 · 2 comments
Labels
type/bug Something isn't working

Comments

@keilmillerjr
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

A bug happened!Errors when launching gradience.

❯ gradience

(process:36477): Adwaita-WARNING **: 14:37:06.066: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.

(gradience:36477): Gtk-CRITICAL **: 14:37:06.164: Unable to retrieve child object 'settings-button' from class template for type 'GradiencePluginRow' while building a 'GradiencePluginRow'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gi/_gtktemplate.py", line 170, in <lambda>
    lambda s: init_template(s, cls, base_init_template)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/_gtktemplate.py", line 193, in init_template
    raise RuntimeError(
RuntimeError: Handler 'on_settings_plugin_clicked' was declared with @Gtk.Template.Callback but was not present in template

(gradience:36477): Gtk-CRITICAL **: 14:37:06.164: Unable to retrieve child object 'settings-button' from class template for type 'GradiencePluginRow' while building a 'GradiencePluginRow'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gi/_gtktemplate.py", line 170, in <lambda>
    lambda s: init_template(s, cls, base_init_template)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/_gtktemplate.py", line 193, in init_template
    raise RuntimeError(
RuntimeError: Handler 'on_settings_plugin_clicked' was declared with @Gtk.Template.Callback but was not present in template

(gradience:36477): Gtk-CRITICAL **: 14:37:06.165: Unable to retrieve child object 'settings-button' from class template for type 'GradiencePluginRow' while building a 'GradiencePluginRow'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gi/_gtktemplate.py", line 170, in <lambda>
    lambda s: init_template(s, cls, base_init_template)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/_gtktemplate.py", line 193, in init_template
    raise RuntimeError(
RuntimeError: Handler 'on_settings_plugin_clicked' was declared with @Gtk.Template.Callback but was not present in template

Error when toggling any item under Advanced/Plugins.

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gradience/frontend/widgets/plugin_row.py", line 95, in on_switch_toggled
    if self.switch.get_active():
       ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_active'

To Reproduce

  1. Install the following arch/aur packages:
  • gradience-git
  • adw-gtk-theme
  • libadwaita-without-adwaita-git
  • firefox
  • firefox-gnome-theme-git
  1. $ gradience
  2. Click on the Advanced tab.
  3. Clock on any one of three toggle switches within the Plugin section.

Expected behavior

Not an error. I want to be able to apply gradience theme to Firefox.

Screenshots

No response

OS

Arch

DE/WM version

Hyprland

Version

0.8.0-beta2

Installation method

AUR

Enabled system extensions (GNOME specific)

I do not use the gnome shell.

Additional context

See related issue: #858

Code of Conduct

  • I agree to follow this project's Code of Conduct
@keilmillerjr keilmillerjr added the type/bug Something isn't working label Feb 27, 2024
Copy link
Contributor

Welcome on Gradience. 🥳 We really appreciate your contribution. The core team will review your issue as soon as possible. You can also join the Matrix room: https://matrix.to/#/#Gradience-space:envs.net or the Discord server: https://discord.com/invite/4njFDtfGEZ

@nikelborm
Copy link

@keilmillerjr What version of gnome do you use?
I have similar error to yours which appeared only recently and may be caused by newest release of Gnome 46
#871 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants