aboutsummaryrefslogtreecommitdiff
path: root/src/shutdown-dialog.vala
Commit message (Collapse)AuthorAgeFilesLines
* src/shutdown-dialog.vala: keep dialog size fixed.Mihai Moldovan2023-09-111-5/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the dialog resized whenever the timer was shown or hidden. We want to avoid this, but unfortunately, GTK doesn't provide a way to hide a widget and retain its size in the parent (for instance, a container). To work around this, create a new private class FakeHideLabel, subclassing Gtk.Label, that exposes a fake_hide () property. If the property is set to true, the widget is "fake hidden" by changing the draw () method to first draw normally, and then paint everything fully transparent. The usual hide () and show () methods are not used any longer (other than at widget creation). Additionally, a dummy text is inserted at widget creation, including setting the widget to "fake hidden", so that text line actually has a size. While this should work fine visually, this WILL definitely create accessibility issues, which we must fix at a later time. Fixes: https://github.com/ArcticaProject/arctica-greeter/issues/58
* src/shutdown-dialog.vala: Rephrase shutdown dialog's new timeout message(s) ↵Mike Gabriel2023-09-071-2/+2
| | | | slightly.
* src/shutdown-dialog.vala: implement timer function triggering focused button.Mihai Moldovan2023-08-311-1/+107
| | | | | | | | | | | | | | | | | | | | | | | Once the shutdown dialog is created/realized/shown, a new message will show up at the bottom of the dialog signifying that the default action will be triggered automatically in a configurable amount of seconds. This message will be updated once per second, counting down. Once the countdown reaches zero, the currently focused button (if any) is automatically clicked. The message will keep showing for another 10 seconds, just in case the user removed the focus and no button is actually focused. Multiple actions will cancel the timer: - Pressing escape. - Selecting a different button via (Shift +) Tab or the left or right arrow keys. - Clicking within the dialog (but not on any button). - Closing the dialog. Fixes: https://github.com/ArcticaProject/arctica-greeter/issues/39
* src/shutdown-dialog.vala: remove focus_{next,prev}.Mihai Moldovan2023-08-311-12/+0
| | | | | They are not GTK overrides and the only consumers have been removed, so get rid of them. They only confused me.
* Fix casting issuesRobert Tari2023-05-071-5/+13
|
* Add missing error handlersRobert Tari2023-05-071-1/+13
|
* src/shutdown-dialog.vala: Make shutdown/reboot dialog's font configurable ↵Mike Gabriel2023-03-011-6/+19
| | | | via gsettings (use same font as rest of the greeter).
* shutdown-dialog: margin left/right -> margin_start_end.Joshua Peisach2023-02-061-2/+2
| | | | | | | | | Ref: https://valadoc.org/gtk+-3.0/Gtk.Widget.margin_left.html Ref: https://valadoc.org/gtk+-3.0/Gtk.Widget.margin_right.html Ported from Slick Greeter by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/dcbb38af4d3f4276889f958b883c962bb8957fa6
* copyright holdership: Add myself as copyright holder and author to file ↵Mike Gabriel2017-10-261-0/+2
| | | | headers of files I have worked on.
* override_font() deprecation warning: replace by GtkCssProvider blocks. ↵Mike Gabriel2017-06-121-7/+19
| | | | Additionally, don't hard-code Cabin font anymore, use font_name gsettings property instead.
* src/shutdown-dialog.vala: Grab Reboot button focus when user requests a reboot.Mike Gabriel2017-05-301-1/+3
|
* Work around Vala trying to use a new GTK 3.20 function.Robert Ancell2016-09-151-1/+1
|
* font work: Use Cabin and Cantatell fonts instead of Ubuntu and Ubuntu Light.Mike Gabriel2015-10-261-3/+3
|
* fork unity-greeter as arctica-greeterMike Gabriel2015-09-191-1/+1
|
* Imported Upstream version 14.04.10Mike Gabriel2014-11-021-0/+622