Commit graph

6860 commits

Author SHA1 Message Date
Bastien Nocera
1e1fbd6891 online-accounts: Fix feature switches not doing anything
Make sure to keep a reference to the GoaObject of the account around so
that the GBinding that synchronises each switch widget and the account
properties don't get finalized on startup.

 #0  0x00007ffff73c6a20 in g_binding_finalize () at /lib64/libgobject-2.0.so.0
 #1  0x00007ffff73d3d22 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #2  0x00007ffff73c68e8 in weak_unbind () at /lib64/libgobject-2.0.so.0
 #3  0x00007ffff73cf117 in weak_refs_notify () at /lib64/libgobject-2.0.so.0
 #4  0x00007ffff72acd6c in g_data_set_internal () at /lib64/libglib-2.0.so.0
 #5  0x00007ffff73d0195 in g_object_real_dispose.lto_priv () at /lib64/libgobject-2.0.so.0
 #6  0x00007ffff73d3c44 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #7  0x00007ffff72b6793 in g_hash_table_remove_all_nodes.part () at /lib64/libglib-2.0.so.0
 #8  0x00007ffff72ba723 in g_hash_table_unref () at /lib64/libglib-2.0.so.0
 #9  0x00007ffff753403d in g_dbus_object_proxy_finalize () at /lib64/libgio-2.0.so.0
 #10 0x00007ffff73d3d22 in g_object_unref () at /lib64/libgobject-2.0.so.0
 #11 0x0000000000402d08 in glib_autoptr_clear_GoaObject (_ptr=0x5d59f0) at /usr/include/goa-1.0/goa/goa-generated.h:3265
 #12 glib_autoptr_cleanup_GoaObject (_ptr=<synthetic pointer>) at /usr/include/goa-1.0/goa/goa-generated.h:3265
 #13 on_application_activate_show_account_cb (application=0x49f2f0, argv=<optimized out>) at ../../../../Projects/jhbuild/gnome-control-center/panels/online-accounts/gnome-control-center-goa-helper.c:360

Closes: #1721
2022-04-19 23:19:54 +02:00
oscfdezdz
c5d0437c0f wacom: mark some strings as translatable
Some UI strings were not marked as translatable when the panel was ported to GTK4.
2022-04-19 16:46:59 +00:00
koko ng
322bddd971 user-accounts: Close password change dialog
Fixes #1746
2022-04-19 15:08:49 +00:00
Georges Basile Stavracas Neto
e5a49dcf7b display: Return to main page after applying changes
After applying a change, it is useful to see the new state of the
monitors, so move back to the 'displays' page after applying.
2022-04-16 11:47:11 +00:00
Georges Basile Stavracas Neto
214dc277b5 display: Don't render background on selected monitors
In the previous design of this panel, it made sense to show the
currently selected monitor because all editing widgets were in
the same page. With the new design, however, the monitor options
were moved to a separate page, and that page already shows which
monitor is being edited.

Remove the colored background of selected monitors.
2022-04-16 11:47:11 +00:00
Georges Basile Stavracas Neto
ced1386fcd display: Update header title when setting output
Instead of updating the titlebar of the monitor preferences page in
the row clicked callback, update it in set_current_output(). This
ensures that the title of the page is always in sync with the monitor
it's displaying.
2022-04-16 11:47:11 +00:00
Sebastian Keller
b213fdc28a lock: Fix wrong time shown in screen lock delay dropdown
The time shown for the 5 minutes setting was 3 minutes.
2022-04-07 11:36:40 +00:00
Brandon Nielsen
7c5beecc97 printers: Use a GtkDropDown in PpOptionsDialog
PpPpdOptionWidget and PpIppOptionWidget both use combo boxes for
certain types of selections. With GTK4, combo boxes no longer
support scrolling[0], which in turn causes problems setting some
things in the PpOptionsDialog[1].

This replaces instances of GtkComboBox with GtkDropDown which do
support scrolling. This change was applied to both PpIppOptionWidget
and PpPpdOptionWidget as both are used in PpOptions dialog.

Since the configuration values passed to CUPS can no longer be stored
in a GtkTreeModel alongside the displayed values, some logic changes
to update_widget_real in PpPpdOptionWidget to maintain the reference
to the ppd_option_t so the selected index can be mapped to the
configuration value.

[0] - https://gitlab.gnome.org/GNOME/gtk/-/issues/3674
[1] - https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1704
2022-04-05 11:52:00 -03:00
Jakub Steiner
d57446699c Universal Access: don't depend on gnome-icon-theme-extra
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1713
2022-03-29 15:10:56 +00:00
Jan Tojnar
7fe322b9ce online-accounts: Fix goa-helper on X11
The handle_str contains the “x11:” prefix so strtol would return 0.
We need to pass it the numeric substring.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1651
2022-03-29 12:33:14 +00:00
Norbert Pfeiler
88e19f50c9 info-overview: Replace llvmpipe with “Software Rendering” 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
a57d31f0cf info-overview: Add some commonly used trademarks
Those are not always present in the device string.
Guidance was taken from the usage on vendor websites.

NVIDIA actually has the rights to GTX™ but doesn’t seem to use it,
in contrast to RTX™.
2022-03-23 09:36:24 +00:00
Norbert Pfeiler
16fc5a95f8 info-overview: Remove some rare @ x.yz GHz specification 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
4b17d9be8e info-overview: Remove redundant/elaborate info
Remove redundant/elaborate in strings like CPU, Core and Processor.
2022-03-23 09:36:24 +00:00
Norbert Pfeiler
50ab1b0742 info-overview: Remove some junk info, like PCIe and SSE 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
02bbab7b8a info-overview: Replace the trademark symbols in a more generic way 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
54b215e1e9 info-overview: Use a more generic regex to match the Mesa infos 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
827369fe94 info-overview: Always omit Gallium, not just for AMD 2022-03-23 09:36:24 +00:00
Norbert Pfeiler
4b6786bd44 info-overview: If names are all caps, leave them be
This made everything AMD lower case after the second word
and is likely unintentional for something like EPYC™.

e.g. was
AMD Ryzen threadripper 1950x 16-core processor
AMD Radeon rx 580 series
2022-03-23 09:36:24 +00:00
Norbert Pfeiler
68d67adf12 info-overview: There is no “AMD®”
AMD doesn’t have a registered trademark for the string only.
2022-03-23 09:36:24 +00:00
Felipe Borges
52a8c998fb sharing: Remove leftover remote_desktop_password_insert_text_cb
This method is unused and was left behind after the rework in
commit 0ae59467fb

Fixes #1703
2022-03-22 13:54:46 +00:00
Alberts Muktupāvels
a581395221 display: fix monitor labels
has-toplevel-focus property has been removed from GTK 4:
0ce9f26dc5

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1697
2022-03-18 22:08:49 +00:00
Jonathan Kang
ce93dbb3a0 network/connection-editor: always load all available VPN plugins
Previously, when a list of VPN plugins was loaded once, it will not load
again the next time you try to add a VPN connnection. This causes an
issue that if you keep gnome-control-center open and install a new VPN
plugin, the new VPN plugin won't show up in the VPN plugin list.

Fix that by always load all avilable VPN plugins when showing the
"Add VPN" dialog.
2022-03-18 21:37:48 +00:00
Jonathan Kang
6f1567f236 network/connection-editor: destroy the editor when closing
If an user opens an connection editor and then closes it, repeat this
multiple times causes lots of unused hidden editor windows.

Fix that by destroying the connection editor instead of hiding them
when closing.
2022-03-18 21:37:48 +00:00
Felipe Borges
b094a0b392 info-overview: Allow changing "Device Name" by pressing "Enter"
The hostname/device name dialog has only a GtkEntry. So a user
navigating with only a keyboard should be able to apply their
changes by pressing "Enter".
2022-03-07 17:02:20 +00:00
Felipe Borges
854c888214 user-accounts: Add cutout to avatar edit button
Shamelessly copied from
https://gitlab.gnome.org/GNOME/fractal/-/blob/fractal-next/data/resources/ui/content-room-details.ui#L29
and
https://gitlab.gnome.org/GNOME/fractal/-/blob/fractal-next/data/resources/style.css#L506

Fixes #1662
2022-03-07 15:59:46 +00:00
Felipe Borges
fb4f430f79 user-accounts: Drop unused CSS style 2022-03-07 15:59:46 +00:00
Alberts Muktupāvels
ea47caa533
keyboard: restore _GNOME_WM_KEYBINDINGS support
Before d7e794e7ab Keyboard Shortcuts dialog showed keybindings
for current WM. This commit restores this functionality.
2022-03-07 17:46:37 +02:00
Carlos Garnacho
0d82613258 wacom: Bring back empty state view
This went mistakenly missing in the recent UI updates. Since this
panel is still accessible through search despite tablet availability,
we should have a proper empty state view when moving to the panel
with no tablets available.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1684
2022-03-04 15:19:21 +00:00
Jonas Ådahl
9d76bb3a80 sharing/remote-desktop: Copy entries via editable API
GtkPasswordEntry is not a GtkEntry so can't use that API. Both are
GtkEditable however, so use that instead.
2022-03-03 21:11:23 +00:00
Jonas Ådahl
93754f87b3 sharing/remote-desktop: Make device name and address labels selectable 2022-03-03 21:11:23 +00:00
Jonas Ådahl
58a3229cfc sharing/systemd-service: Treat 'static' state as enabled
Quoting the documentation:

> static indicates that the unit is statically enabled, i.e. always
> enabled and doesn't need to be enabled explicitly
2022-03-03 21:11:23 +00:00
Jonas Ådahl
dde343d8de sharing/remote-desktop: Only try to enable the RDP backend
Turning off the service doesn't mean we need to disable the RDP backend,
the setting can stay enabled in case one wants to manage it directly via
systemd.
2022-03-03 21:11:23 +00:00
Jonas Ådahl
3a9ce7b32b sharing/remote-desktop: Make the finger print view not scroll
Do this by setting the adw status page to expand vertically.
2022-03-03 21:11:23 +00:00
Felipe Borges
dfb2fa31af users: Make FileChooser inside AvatarChooser transient to main window
Depends on
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1253

Fixes #1677
2022-03-03 17:22:38 +01:00
Felipe Borges
dc032c338d user-accounts: Explicitly initialize CcAvatarChooser
Setting the Gtk.MenuButton.popover property to a CcAvatarChooser
object doesn't initialize the CcAvatarChooser object.

Fixes #1689
2022-03-03 16:13:46 +00:00
Felipe Borges
4b21c5b056 user-accounts: Load avatar image files in "Other users" list
We were checking for the existance of an image file as avatar when
setting up the main avatar widget in the page, but the same wasn't
done for the avatars displayed in the "Other users" list. These
were AdwAvatars simply initialized to use the user initials.

Now we load the user image (if it exists) and it will fallback to
initials when an image isn't set.

Fixes #1658
2022-03-02 16:04:26 +00:00
Marek Kasik
9f0733182a printers: Destroy ppd selection dialog explicitly
Destroy PpPPDSelectionDialog in dispose method of PpNewPrinterDialog
as its transient-for property was unset by previous commit
and the dialog is not destroyed automatically now.
2022-03-02 11:03:59 +00:00
Marek Kasik
e81651873c printers: Unset transient-for
Unset transient-for for PpPPDSelectionDialog in its responce callback
since due some reason its parent PpNewPrinterDialog is destroyed first
and once the PpPPDSelectionDialog is being destroyed it tries to
unset the transient-for but unsuccesfully resulting in warnings like:

"instance with invalid (NULL) class pointer"
"g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed"
2022-03-02 11:03:59 +00:00
Jakub Steiner
105b8a518d multitasking: clean up illustration
- fills removed to make dark mode possible exposed the rings
  going through the cursors and arrows, which isn't a nice
  aesthetic. convert to shapes and cut them with booleans
  to get the previous look without using solid color fills
2022-03-02 10:00:39 +01:00
Jakub Steiner
c7ace33d2d screen lock: install icons
- the build files never included the icon

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1621
2022-03-01 14:36:33 +00:00
Jakub Steiner
8b4a5ba2e8 usage: minor icon tweak
- everything but the filesystem device icons has lost the chin
2022-03-01 12:14:52 +01:00
Felipe Borges
0019b0869a user-accounts: Reinstate fingerprint dialog
The port of the Fingerprint dialog to gtk4 wasn't completed.
Now the dialog is expected to function again.
2022-02-28 15:47:42 +00:00
Felipe Borges
ccf8961740 multitasking: Display Right-to-Left ilustrations for RTL locales
Fixes #1559
2022-02-28 10:44:07 +00:00
Jakub Steiner
7efd63e2ee multitasking: no more rounded top bar
- update the look of the top bar not to have the rounding of <GNOME 41

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1656
2022-02-28 10:44:07 +00:00
Jakub Steiner
6d9d6bd8b7 multitasking: provide rtl asset
- provide a RTL variant of the hot corner graphic
- revert one of the arrow to be outine only (unrelated to rtl)
- provide RTL variant of the active screen edges (close button
  on the opposite side)

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1559
2022-02-28 10:44:07 +00:00
Yosef Or Boczko
5a7aa11b1e display: Force LTR to the spinbuttons's box 2022-02-28 09:47:53 +00:00
Jonas Ådahl
5dc4081e2c sharing/remote-desktop: Initialize username/password if not set
If no password or username was set (not even an empty one), initialize
them to something, specifically the username of the user of the session,
and a auto generated password.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
06efa4906e sharing/remote-desktop: Hook up to explicit enable setting
Enabling the service isn't enough, one also needs to enable the relevant
backend.
2022-02-26 18:19:14 +00:00
Jonas Ådahl
e8d574883a sharing/remote-desktop: Add copy buttons 2022-02-26 18:19:14 +00:00