Commit graph

113 commits

Author SHA1 Message Date
Christopher Davis
997fadf8fb cc-ua-panel: Handle row activation on individual rows
The custom listboxes serve another purpose: to handle
row activation. Instead of using a custom listbox, we
can simply listen to the `activated` signal on the
rows that don't have a switch.
2022-01-05 22:06:37 +00:00
Christopher Davis
02b9f29c44 cc-ua-panel: Use AdwActionRow for all rows
AdwActionRow simplifies activation handling for
switches, provides consistent styling and sizing,
and mnemonic handling.
2022-01-05 22:06:37 +00:00
Christopher Davis
a58fa42e1d cc-ua-panel: Use AdwPreferencesPage/AdwPreferencesGroup
The individual groups still use their own listboxes,
as the custom rows they use won't be added to
AdwPreferencesGroup's list.

See https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PreferencesGroup.html#adwpreferencesgroup-as-gtkbuildable
2022-01-05 22:06:37 +00:00
Christopher Davis
6a525c861e cc-ua-panel: Remove custom keynav handling
We were using this to move between groups and scroll
the page, but that's not necessary. All we need
to do is set `scroll-to-focus` on our GtkViewport.

This commit removes the keynav-failed callback
and all associated plumbing.
2022-01-05 22:06:37 +00:00
Alexander Mikhaylenko
f89976ff54 ua: Stop setting high contrast WM theme
That key is deprecated.
2021-12-20 19:51:46 +00:00
Alexander Mikhaylenko
c1f8e93636 ua: Use the new high contrast key
Keep setting gtk theme, but use the new boolean as the source of truth.
2021-12-20 19:51:46 +00:00
Georges Basile Stavracas Neto
9995a3bb79 universal-access: Port to GTK4
This was quite a huge port, but fortunately it mostly involved
removing tons of deprecated widgets (without replacement; just
drop them) and adjusting packing properties.
2021-12-14 22:34:21 -03:00
Felipe Borges
a825ded085 universal-access: Add "Enable Animations" option
Fixes #1388
2021-07-28 19:12:12 +02:00
Carlos Garnacho
d7db0faa4e universal-access: Look up double-click setting in the right schema
This was changed in commit 006d0e6a63, and wrongly made to look on the
wrong schema. Fix it up so double-click setting lookup happens on
org.gnome.desktop.peripherals.mouse.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1256
2021-02-18 16:08:53 +01:00
Carlos Garnacho
006d0e6a63 universal-access: Update to g-s-d mouse schema changes
The settings used here moved to the org.gnome.desktop.peripherals.mouse
schema, out of g-s-d. Stop referencing this unused schema.
2021-01-27 13:38:34 +01:00
Robert Ancell
99d7097548 universal-access: Rename widgets to standard names and use standard types 2020-11-11 20:01:55 +00:00
Robert Ancell
4ac698eabd universal-access: Split pointing dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
0bd133489d universal-access: Split typing dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
2f4058d7e9 universal-access: Split cursor blinking dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
31102bd256 universal-access: Split repeat keys dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
9aaee503c9 universal-access: Split visual alerts dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
828a2bee45 universal-access: Split sound keys dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
9a6631a31d universal-access: Split screen reader dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
12a19878a6 universal-access: Split cursor size dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
accf1b82a0 universal-access: Launch zoom options dialog modally 2020-11-11 20:01:55 +00:00
Robert Ancell
a27be44a1d universal-access: Set dialog parent externally 2020-11-11 20:01:55 +00:00
Robert Ancell
88b9b2a149 universal-access: Rename ZoomOptions to standard CcZoomOptionsDialog 2020-11-11 20:01:54 +00:00
Robert Ancell
3e489cc650 universal-access: Simplify row activation code.
The existing code used three methods for working out how each row worked.
2020-11-11 20:01:54 +00:00
Robert Ancell
6ae9710a50 universal-access: Connect signals with g_signal_connect_object in swapped form 2020-03-30 16:18:49 +13:00
Felipe Borges
ca291402bc universal-access: Add "Locate Pointer" option
Since [0] and [1], "locate pointer" is now in Mutter and works
well under Wayland and X11.

Once activated, the mouse pointer can be located on the screen
by pressing the Ctrl key. Pressing Ctrl will cause an animation
to appear briefly at the location of your pointer.

[0] https://gitlab.gnome.org/GNOME/mutter/merge_requests/453
[1] https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/413

Fixes #586
2019-12-17 23:03:31 +00:00
Robert Ancell
a760707291 universal-access: Fix compile warning
Introduced in 38897a751b
2019-08-13 10:40:59 +12:00
Mohammed Sadiq
38897a751b universal-access: Free zoom options dialog right
Use gtk_widget_destroy() instead of g_clear_object().
Otherwise, it results in segfault on dispose()
2019-07-15 04:40:42 +00:00
Robert Ancell
59cc518c3e universal-access: Make .ui filename match the .c filename 2018-11-12 16:41:01 +00:00
Robert Ancell
24d495d0f5 universal-access: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2018-10-11 22:21:34 +00:00
Robert Ancell
014e572e9b universal-access: Use GtkTemplate 2018-06-11 14:11:47 +00:00
Robert Ancell
3f9337da4e universal-access: Use g_auto for variables 2018-06-03 01:31:26 +00:00
Robert Ancell
85eeebb5c5 universal-access: Replace GObject boilerplace with G_DECLARE_TYPE 2018-05-30 23:33:25 +00:00
Benjamin Berg
c2f601a9d4 Move common panel code from shell/ to panel/common
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Georges Basile Stavracas Neto
6cd9461807 universal-access: Turn ZoomOptions into a template class
This commit turns the ZoomOptions into a template class that
subclasses GtkDialog.

This is also a follow-up from commit c82deede1 where we started
using the non-deprecated GdkMonitor API.
2018-03-16 02:01:38 -03:00
Bastien Nocera
6c3daeaac4 universal-access: Fix possible crash when exiting panel
The gnome-settings-daemon mouse settings (double-click delay) and repeat
keys settings were both missing destroying their GSettings, meaning that
we could crash if the setting changed outside the panel, or when coming
and going to the panel.

https://bugzilla.gnome.org/show_bug.cgi?id=793322
2018-02-09 17:01:36 +01:00
Bastien Nocera
5cccd1d544 universal-access: Handle "pixels" plural correctly
Using g_dngettext() as required.

https://bugzilla.gnome.org/show_bug.cgi?id=779798
2017-03-09 12:45:42 +01:00
Bastien Nocera
922c6588d3 universal-access: Add Cursor Size selection dialogue
The dialogue offers the 5 separate cursor sizes that adwaita's cursor
theme supports, aligned in a row.

The cursor sizes are described in a way that doesn't judge their
respective sizes, but simply describes them.

https://bugzilla.gnome.org/show_bug.cgi?id=608231
2017-03-08 14:47:52 +01:00
Bastien Nocera
e99d67442c universal-access: Don't use C++ style comments 2017-03-07 12:04:00 +01:00
Florian Müllner
87bf4cc06e universal-access: Specify a window when testing visual bell
When testing the window title flash, we should make sure that there
is a window to flash instead of relying on the compositor to pick
one for us.

https://bugzilla.gnome.org/show_bug.cgi?id=754810
2016-04-08 11:31:24 +02:00
Bastien Nocera
82fce2e0ff universal-access: Fix empty panel with newer GTK+
There's very few chances that the universal-access will fit in the
minimum height of the shell for panels, so just nuke that.

This also fixes the panel taking 1px in height until we switch away from
it and back to it.

https://bugzilla.gnome.org/show_bug.cgi?id=761939
2016-03-01 16:17:08 +01:00
Felipe Borges
417ffaa014 universal-access: add Cursor Blinking settings to the Typing section
https://bugzilla.gnome.org/show_bug.cgi?id=757486
2015-11-04 10:03:55 +01:00
Felipe Borges
0b53a560db universal-access: add Repeat Keys to the Typing section
According to the new Keyboard panel design, this setting belongs
to the Universal Access panel.

https://bugzilla.gnome.org/show_bug.cgi?id=757464
2015-11-02 15:03:18 +01:00
Felipe Borges
87f3dfab02 universal-access: add Double-click delay to Pointing & Clicking section
According to the new Mouse & Touchpad panel designs at
https://wiki.gnome.org/Design/SystemSettings/Mouse, Double-click
delay belongs to the Universal Access panel.

https://bugzilla.gnome.org/show_bug.cgi?id=756872
2015-10-21 12:48:55 +02:00
Bastien Nocera
636e9e2ed3 universal-access: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:31 +02:00
Yosef Or Boczko
56e520cb00 universal-access: Use header bar in all the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Matthias Clasen
b289fab6c8 a11y: Silence a compiler warning
build.gnome.org now records warnings, and this came up.
2013-12-01 10:38:56 -05:00
Rui Matos
e7de1af27b universal-access: Don't leak the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:04 +02:00
Rui Matos
926615b3f5 universal-access: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:04 +02:00
Rui Matos
7a271439c9 universal-access: Remove the mnemonic-activate handler
It's wrong because the label's parent isn't a GtkListBoxRow which
causes a warning.

In any case, we don't need it since GtkLabel already does the work of
finding a suitable parent widget to activate on mnemonic-activate
which ends up causing GtkListBox to fire its row-activated signal that
we already handle.

https://bugzilla.gnome.org/show_bug.cgi?id=708283
2013-10-01 10:04:20 +02:00