Waybar/include/modules
Simon Plakolb b8322c4b4b button: Add AButton class
The AButton class is designed as full a substitute to ALabel. The
GtkButton attribute 'button_' is initialized with a label. This
label can the be referenced by the subsequent inheritors of AButton
instead of the GtkLabel attribute 'label_' of ALabel.
For convenience a GtkLabel* 'label_' attribute is added to AButton.

If the button cannot be clicked it is disabled, effectively acting
like its label predecessor.

GtkButton seems to catch one-click mouse events regardless of the
flags set on it. Therefore, 'signal_pressed' is connected to a
function creating a fake GdkEventButton* and calling 'handleToggle'
(for details on this possible bug in GTK see:
https://stackoverflow.com/questions/45334911 )

In accordance with other GtkButtons (i.e. the sway/workspace ones)
set_relief(Gtk::RELIEF_NONE) is called on the 'button_' instance.
2022-10-12 10:25:29 +02:00
..
hyprland button: Add AButton class 2022-10-12 10:25:29 +02:00
mpd button: Add AButton class 2022-10-12 10:25:29 +02:00
river river/mode: new module 2022-06-01 15:35:08 +00:00
sni refactor: lint 2022-04-06 08:37:19 +02:00
sway button: Add AButton class 2022-10-12 10:25:29 +02:00
upower fix(upower): add missing include for libc++ 2022-05-23 16:27:32 +00:00
wlr refactor: lint 2022-04-06 08:37:19 +02:00
backlight.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
battery.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
bluetooth.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
clock.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
cpu.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
custom.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
disk.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
gamemode.hpp Added tooltip-format 2022-05-21 12:02:45 +02:00
idle_inhibitor.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
inhibitor.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
jack.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
keyboard_state.hpp fix: drop conditionals for ancient fmt versions 2022-07-13 22:36:33 -07:00
memory.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
network.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
pulseaudio.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
simpleclock.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
sndio.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00
temperature.hpp button: Add AButton class 2022-10-12 10:25:29 +02:00