Waybar/src/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
..
cpu button: Add AButton class 2022-10-12 10:25:29 +02:00
hyprland button: Add AButton class 2022-10-12 10:25:29 +02:00
memory 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 #1591 river escape window and mode 2022-08-29 16:22:08 +10:00
sni style(lint): fix some files lint 2022-08-31 15:51:50 +08:00
sway button: Add AButton class 2022-10-12 10:25:29 +02:00
upower refactor: lint 2022-04-06 08:37:19 +02:00
wlr style(lint): fix some files lint 2022-08-31 15:51:50 +08:00
backlight.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
battery.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
bluetooth.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
clock.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
custom.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
disk.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
gamemode.cpp Added tooltip-format 2022-05-21 12:02:45 +02:00
idle_inhibitor.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
inhibitor.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
jack.cpp man page and adjust default format 2022-08-18 17:05:04 -04:00
keyboard_state.cpp Add classes to individual keyboard state labels 2022-05-11 08:08:28 -06:00
network.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
pulseaudio.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
simpleclock.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
sndio.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00
temperature.cpp button: Add AButton class 2022-10-12 10:25:29 +02:00