kaii-lb / overskride

A simple yet powerful bluetooth client.
GNU General Public License v3.0
519 stars 10 forks source link

GTK4: Clicking on toggles does not function as expected #25

Open TheRealGramdalf opened 4 months ago

TheRealGramdalf commented 4 months ago

With my current NixOS configuration, Overskride seems unable to change any bluetooth properties - powering on/off the adapter has no effect. Other programs (blueberry, bluetuith) are able to power on the adapter, but opening overskride and toggling "connect" with any device does nothing.

Relevant nixos config:

  hardware = {
    bluetooth = {
      enable = true;
      powerOnBoot = false;
    };
  };

Starting overskride via the command line does not seem to give any errors (apart from some GTK ones)

Any suggestions as to what I could do from here?

kaii-lb commented 4 months ago

you need to click on the row not the switch. gtk has a weird thing where clicking on the switch of the row wont do anything, but clicking the row itself will.

TheRealGramdalf commented 3 months ago

I'll leave this open as this needs to be addressed, but the workaround does work for now.

Out of curiosity, where are the relevant GTK docs/overskride source code that doesn't work? I find it very surprising that this wouldn't work, as I'm fairly certain it did on GNOME (which uses GTK4 for at least some circle apps)

kaii-lb commented 3 months ago

maybe gnome does something to the switch itself, if you can find anything about that i'd be extremely grateful.

here's all the relevant source code for overskride https://github.com/kaii-lb/overskride/blob/main/src/gtk/window.blp