Commit graph

292 commits

Author SHA1 Message Date
Felipe Borges
7ba1afc647 mouse: Add mouse "acceleration profile" row
Fixes #94
2023-02-14 12:13:30 +01:00
Felipe Borges
bcbfe838e0 mouse: Overlay test button on top of artwork
Fixes #2215
2023-01-03 13:57:53 +00:00
sunflowerskater
93e1a20125 mouse-touchpad: Mark some a11y labels as translatable
The a11y labels from Touchpad Speed and Mouse Speed aren't marked as translatable.

This commit marks these labels as translatable.
2023-01-03 13:45:43 +00:00
sunflowerskater
883794fcde mouse-touchpad: Include marks in the mouse/touchpad speed scales
Currently, the mouse/touchpad speed scales lacks slow, default and fast marks.

This commit adds the necessary marks.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1681
2023-01-03 13:45:43 +00:00
Marco Melorio
de00794e1a mouse: Remove deprecated gtk_widget_show/hide usage 2023-01-02 22:10:39 +00:00
TheEvilSkeleton
20378fc9a4 mouse: Set rows as activatable widgets 2022-12-20 09:20:29 +00:00
Gotam Gorabh
09e76cb1e3 mouse: Rename "Test Your Settings" button to "Test Settings"
This code changes rename the Test Your Settings button to
Test Settings to reduce the button width size.
By reducing button size it also impact the position of panel title to more centric.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2123
2022-11-29 20:52:49 +00:00
Jake Dane
89443fe550 desktop: Remove obsolete Bugzilla entries
The `X-GNOME-Bugzilla-*` entries were for use by bug-buddy, a GNOME 2
technology that's been gone for over a decade. These entries are
obsolete and can be removed from all desktop files.

The `X-GNOME-Settings-Panel` entry is also obsolete as far as I can
tell and only these panels had it in their desktop file: notifications,
sharing, sound and user-accounts. These entries can also be removed.

After removing the `X-GNOME-Bugzilla-*` entries, the desktop files have
no more variables in them. The meson `configure_file` step is therefor
pointless—there are no variables to configure. As such the
`*.desktop.in.in` files are renamed to `*.desktop.in` to reflect this
and `meson.build` files are modified to remove `configure_file` step.
2022-10-20 13:20:09 +00:00
Lukáš Tyrychtr
91b13f4283 Add a few a11y labels to the switches 2022-05-09 13:33:57 +02:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00
Georges Basile Stavracas Neto
4300a4a290 panels: Use new CcPanel helpers for title widgets
This should significantly simplify these panels, by not forcing
them to override GObject.constructed all the time. Most panels
were quite straightfoward.
2022-01-20 02:23:42 +00:00
Georges Basile Stavracas Neto
0ab20af9ba panels: Switch to CcPanel content
Start porting panels to the new panel format. This commit
temporarily makes panels have two titlebar, which will be
fixed soon.
2022-01-20 02:23:42 +00:00
Christopher Davis
7aae515cf6 mouse: Use AdwPreferencesGroup's listboxes
We don't need our own listboxes, because our rows
here aren't dynamic.
2022-01-18 09:51:01 +00:00
Christopher Davis
d99269182d mouse: Remove useless GtkGrid
Also move the margins to the box itself and remove the
horizontal margins.
2022-01-18 09:51:01 +00:00
Christopher Davis
891d745302 mouse: Remove all haligns
We can rely on the alignment of AdwActionRow suffixes.
2022-01-18 09:51:01 +00:00
Christopher Davis
a066efd14c mouse: Remove activatable=False
ActionRows aren't activatable by default.
2022-01-18 09:51:01 +00:00
Christopher Davis
0d79f99ae6 mouse: Remove width request and halign from scales
The width request prevented this panel from getting smaller,
and the halign caused the scales to use the minimum possible
width.
2022-01-18 09:51:01 +00:00
Jan Beich
37b29c32cb meson: drop unused argument for i18n.merge_file()
Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.

panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/background/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments.
[...]
2022-01-07 17:22:43 +00:00
Christopher Davis
981a8cea7b panels: Use .boxed-list instead of .content
The `.content` style class is deprecated in favor
of the `.boxed-list` style class, which is named
after the design pattern it's used for.
2021-12-16 12:52:44 -08:00
Georges Basile Stavracas Neto
25edfb4a4b mouse: Port to GTK4
This one is an interesting case. It was easier to simply switch
to AdwPreferencesPage than actually port all the GtkFrames in
there.

In addition to that, the mouse test page now uses a GtkPicture
instead of a GtkImage, and the GtkDrawingArea API changes are
reflected in the code.
2021-12-14 22:34:21 -03:00
Jakub Steiner
72380627b5 mouse: avoid cropping illustration
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1466
2021-09-17 21:14:19 +00:00
Felipe Borges
1b6c8ca55d mouse: Overlay mouse test button on top of the artwork 2021-06-24 16:16:14 +02:00
Jakub Steiner
3a0fb47373 mouse: test panel graphic
- update graphic to follow illustration style -- https://gitlab.gnome.org/Teams/Design/app-illustrations

Fixes Teams/Design/initiatives#82
2021-06-24 16:11:48 +02:00
Mohammed Sadiq
e09ecc41aa mouse: Use content style for listboxes 2021-05-19 03:25:47 +00:00
Ian Douglas Scott
1e917d0033 mouse: Use HdyActionRow
More consistent styling with other panels, and removes a lot of xml.
2021-05-12 04:05:30 +00:00
Felipe Borges
d980e0ffee mouse: Prevent direction change for primary mouse button box
In Right-to-left locales GNOME Settings presents a button on the
left with the translated label "Right" and a button on the right
with the translated label "Left".

These changes prevent the flip of the direction buttons in RTL
locales.

Fixes #1101
2021-04-13 10:36:10 +02:00
Felipe Borges
b813866a63 mouse: Allow horizontal scroll in mouse test page
This allows the panel to shrink further than the test image's
width.

Fixes #1046
2021-02-23 12:14:39 +00:00
Carlos Garnacho
a868a418f4 mouse: Drop unused g-s-d GSettings in test
This went unnoticed, till g-s-d did actually drop that schema. Stop
referencing this unused schema.
2021-01-27 13:38:24 +01:00
Carlos Garnacho
fe9b66c387 mouse: Drop unused g-s-d GSettings
This went unnoticed, till g-s-d did actually drop that schema. Stop
referencing this unused schema.
2021-01-27 13:17:03 +01:00
vanadiae
d3e6a1d73d mouse-test: Remove useless unreachable closing markup in GEGL message
This markup isn't needed since it's already added later in the function.
Also, it was ignored because of some dark magic with the comma operator
(which shouldn't have been there to begin with). That's why it wasn't
discovered earlier.
See https://en.cppreference.com/w/c/language/operator_other#Comma_operator
for some explanation on how the comma operator works.
2020-12-11 17:27:05 +00:00
Robert Ancell
591cd14b57 mouse: Connect signals with g_signal_connect_object in swapped form 2020-03-30 16:18:49 +13:00
Robert Ancell
17c5c3932a mouse: Replace ifdefs with #pragma once 2019-11-27 21:56:10 +00:00
Robert Ancell
bfa0f80882 mouse: Use GTK+ widget types 2019-09-10 11:44:23 +12:00
Robert Ancell
f17d0aa819 mouse: Remove unused IDs 2019-09-10 11:44:23 +12:00
Robert Ancell
ef6c7c03ca mouse: Merge CcMouseProperties into CcMousePanel 2019-09-10 11:26:15 +12:00
Robert Ancell
20614e98ac mouse: Rename CcMouseTest files to match class name 2019-09-10 11:26:15 +12:00
Robert Ancell
37e7fd6ada mouse: Make a GtkTemplate for the panel 2019-09-10 11:26:15 +12:00
Robert Ancell
354c297c85 mouse: Remove unused enum 2019-09-10 11:25:22 +12:00
Robert Ancell
97985a664e Remove unused GNOMELOCALEDIR defines 2019-09-09 21:45:53 +00:00
Georges Basile Stavracas Neto
75f150d5a2 shell: Add position to cc_shell_embed_widget_in_header()
So we can control where the widget should be added to. The
main window only supports left and right positions.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/528
2019-05-21 12:59:36 -03:00
Felipe Borges
6046d562cf mouse: Reinstate keyboard navigation in the panel
Fixes #246
2019-04-01 13:25:35 +02:00
Benjamin Berg
a368153973 mouse: Sync touchpad scrolling switch states correctly
The old code would not sync the state when the page was loaded. Also,
due to how the code was written, it would not update the switch state if
the underlying setting was changed in some other way.

Fix this by connecting the setting with the "state" of the switches.
When the switches "active" property is changed, update the underlying
setting and ensure the mutually exclusive switch is turned off when
needed.

Fixes #398
2019-03-29 13:36:40 +00:00
Jeremy Bicha
dde97ecb2e mouse: Don't use a separate box for touchpad switch
The Touchpad section looks like a single listbox
so let's handle it that way too.

This eliminates an unnecessary split in the touchpad
section that is noticeable when navigating with a keyboard.
2019-01-29 10:43:23 +00:00
Jeremy Bicha
783918aaf5 mouse: fix misplaced mnemonic labels 2019-01-29 10:43:23 +00:00
Jeremy Bicha
35679c6877 mouse: Remove deprecated gdk_error_trap_push|pop calls
Replace with gdk_x11_display_error_trap_push|pop

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
2018-12-07 15:43:38 +00:00
Robert Ancell
1b24d7ca5f mouse: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2018-10-11 22:21:34 +00:00
Robert Ancell
ea1a4b0afc mouse: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2018-10-10 04:01:11 +00:00
Robert Ancell
3dc77a68e6 mouse: Connect signal handlers swapped 2018-05-31 09:16:00 +12:00
Robert Ancell
41d98fdf3f mouse: Move callbacks into .ui file 2018-05-31 09:13:47 +12:00
Robert Ancell
a7e84dcf2e mouse: Use GtkTemplate 2018-05-29 00:36:30 +00:00