If the application changes the active or inactive tooltip text, then we
want to apply that to the button depending on what state it currently
has.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
It is much easier to pass a single boolean value instead of a Gtk
constant for specifying the icon size.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This is used to set the tooltip text to fixed strings based on the
active status of the button. I also update the tooltip text on the
Favorite button in the Now Playing widget at the same time.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This is a keybinding function that calls into the primary button
activate() function. At the same time, I add an "activate-primary"
signal that is emitted when the primary button is activated.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This button is inspired by the Gtk.ToggleButton button, except it
changes the displayed icon when active.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This is inspired by the Adw.SplitButton, except it allows for
configuring the secondary button so we can show the current autopause
count.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This Button is like a Gtk.Button, except it provides ways to set the
icon-size. I also default to large buttons, since that'll be a good
portion of the users.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This is a MenuButton that already has a popover attached and a property
for setting the popover child directly.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>