Commit graph

18915 commits

Author SHA1 Message Date
Veerasamy Sevagen
9316a77af4 network: Add tooltip text to encrypted connection.
The issue was that sometimes the icon would show an error but we would not know what it is.

Fixes #468
2019-09-11 03:20:55 +00:00
Ting-Wei Lan
d28d317332 user-accounts: Escape the name of the user for markup
On FreeBSD, the default full name of a user is 'User &'. The '&'
character included in the name is expected to be replaced with the login
name when it is displayed on the user interface. However, it seems that
AccountsService doesn't know it. It just returns 'User &' to the caller,
and it causes the markup to be broken in the user panel.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
564aa72b5e user-accounts: Use 'pw usershow' to check username validity on FreeBSD
FreeBSD has no standalone 'usermod' command. Most user and group
management functions are provided as subcommands of 'pw' tool.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
54caab7b07 user-accounts: Initialize GError* to NULL before use
Otherwise, it causes warnings to be shown on the terminal when it is
used and quickly leads to a crash.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
a72a71ab11 user-accounts: Include sys/wait.h for W* macros
Otherwise, the compiler may treat WIFEXITED and WEXITSTATUS as implicit
declarations of functions and cause linking to fail.
2019-09-10 23:32:49 +00:00
Piotr Drąg
7a805a0848 Update POTFILES.in 2019-09-10 17:59:39 +02:00
Florian Müllner
eb3580ee9d media-keys: Handle 'Above_Tab' fake key
Mutter supports the 'Above_Tab' fake keysym that refers to the key
that is physically located above the tab key. It is used in the default
shortcut of the "Switch windows of an application" action.

As gtk_accelerator_parse() doesn't recognize the keysym, we display
the shortcut incorrectly as "disabled", and it is not taken into account
for conflict resolution.

Address this by translating binding that contains the 'Above_Tab' string
to bindings where the string is replaced with each possible keysym that
corresponds to the fixed keycode of KEY_GRAVE + 8.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/581
2019-09-10 13:32:08 +00:00
Georges Basile Stavracas Neto
f43238473a display: Replace CC_DISPLAY_*_GET_PRIVATE
Replace the custom and deprecated CC_DISPLAY_*_GET_PRIVATE by
the automatically generated cc_display_*_get_instance_private
functions.
2019-09-10 11:40:39 +00:00
Kukuh Syafaat
a366c23081 Update Indonesian translation 2019-09-10 07:11:43 +00:00
Robert Ancell
b842a33316 printers: Move callbacks into .ui file 2019-09-10 12:36:39 +12:00
Robert Ancell
015c79411a printers: Use gtk_stack_set_visible_child instead of names 2019-09-10 12:36:39 +12:00
Robert Ancell
0ca1632890 printers: Drop unused GtkBuilder IDs 2019-09-10 12:36:39 +12:00
Robert Ancell
60ea08cc64 printers: Make the options dialog a full widget using GtkTemplate 2019-09-10 12:36:38 +12:00
Robert Ancell
6d23ac0892 printers: Make .ui filename match the .c filename 2019-09-10 12:33:11 +12:00
Robert Ancell
d4b47bd9ff printers: Sort variables 2019-09-10 00:18:53 +00:00
Robert Ancell
1b999f36e2 printers: Use gtk_stack_set_visible_child instead of names 2019-09-10 00:18:53 +00:00
Robert Ancell
2c28987e41 printers: Connect signals in swapped form 2019-09-10 00:18:53 +00:00
Robert Ancell
d4adf67549 printers: use gtk_dialog_run 2019-09-10 00:18:53 +00:00
Robert Ancell
a50ce39689 printers: Drop unused class structure 2019-09-10 00:18:53 +00:00
Robert Ancell
3a027bddd0 printers: Set transient window externally to dialog code 2019-09-10 00:18:53 +00:00
Robert Ancell
7f67f6b24f printers: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2019-09-10 00:18:53 +00:00
Robert Ancell
fcde07c770 printers: Remove pp_details_dialog_free, use gtk_widget_destroy 2019-09-10 00:18:53 +00:00
Robert Ancell
fb92795854 printers: Make .ui filename match the .c filename 2019-09-10 00:18:53 +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
Carlos Garnacho
c9ef4fee0f wacom: Snap tip/eraser pressure feel to the allowed values
And add markers for those. We only allow a total of 7 fixed pressure curve
values, so make the UI clear about it.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/483
2019-09-09 22:52:44 +00:00
Carlos Garnacho
a209fed611 wacom: Allow decoupling screen tablets from their respective output
This is useful for 2 cases:
- Tablet-input-driven setups where it makes sense to be able to quickly
  reach other monitors with the tablet.
- (Hopefully a minority) Cases where our display mapping heuristics go
  wrong and tablet gets assigned to a wrong monitor.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/239
2019-09-10 10:47:17 +12:00
Jonathan Kang
6f3c3f6f6d network: disable the "Apply" button until a change has been made
Previously, when you open the connection editor dialog for each
connection, no matter whether you've made any changes or not, the
"Apply" button became sensetive, which is not what we expected.

Fix that by removing the unnecessary call to password_storage_changed()
while constructing the security tab.
2019-09-09 22:38:44 +00:00
Andrea Azzarone
c6776a7be6 online-accounts: Don't segfault if get_all_providers_cb is called during init
Due to an API bug in GNOME Online Accounts, the asynchronous
goa_provider_get_all method doesn't accept a GCancellable argument. This makes
it difficult to cancel an ongoing call when the CcGoaPanel gets destroyed.

This was hacked around by taking a reference on the panel for the duration of
the call. Instead of cancelling a pending call on destruction, it would keep the
panel alive until the call was over.

The hack does not consider the case get_all_providers_cb is called while the
panel is still being initialized. E.g. this happen when create the panel passing
the paramenters "add <provider>" because the constuct properties are set just
after cc_goa_panel_init returns and because goa_provider_add_account will result
in a call to g_main_context_iterate (caused by gtk_dialog_run).

In order to work around this we can call goa_provider_get_all in _constructed()
after all construct properties have been set.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/401
2019-09-10 10:29:43 +12:00
Adrien Plazas
e4de2f5a09 network: Make the rows adaptive
This factorizes the row creation a bit and normalizes the margins and
spacing, reducing the required width. This also makes labels like row
titles and descriptions ellipsizable so the rows can reach narrower
widths.
2019-09-09 22:25:23 +00:00
Adrien Plazas
555ef00b18 network: Use a HdyColumn
This allows the window to reach narrower sizes.
2019-09-09 22:25:23 +00:00
Mohammed Sadiq
23a7401467 language-chooser: Port to HdyDialog
so that it works well on small screens
2019-09-09 22:14:18 +00:00
Robert Ancell
dab5f5301f wacom: Use g_auto for variables 2019-09-09 22:08:26 +00:00
Robert Ancell
af1ffd76e1 bluetooth: Move all UI into the GtkTemplate 2019-09-09 22:03:36 +00:00
Robert Ancell
6fc8e57bdd keyboard: Make .ui filename match the .c filename 2019-09-09 21:58:01 +00:00
Robert Ancell
8855254486 search: Make .ui filename match the .c filename 2019-09-09 21:58:00 +00:00
Robert Ancell
871f10bcf4 color: Make .ui filename match the .c filename 2019-09-09 21:58:00 +00:00
Robert Ancell
90c7311664 sharing: Make .ui filename match the .c filename 2019-09-09 21:58:00 +00:00
Robert Ancell
b02a49cfc6 info: Rename info panel to info-overview for consistency 2019-09-09 21:52:08 +00:00
Robert Ancell
1f34dd67dd info: Split removable-media into its own panel 2019-09-09 21:52:07 +00:00
Robert Ancell
e743b8efd7 info: Split default-apps into its own panel 2019-09-09 21:52:07 +00:00
Robert Ancell
b307e0a7d9 info: Replace ifdefs with #pragma once 2019-09-09 21:52:07 +00:00
Robert Ancell
8eefa5eaa0 info: Remove unused includes 2019-09-09 21:52:07 +00:00
Robert Ancell
97985a664e Remove unused GNOMELOCALEDIR defines 2019-09-09 21:45:53 +00:00
Robert Ancell
1752cf3bb5 Make /etc/os-release support common
The existing code is used in multiple places with slightly different
implementations.
2019-09-09 21:42:10 +00:00
Mohammed Sadiq
ab8aa577e1 wifi: Use HdyDialog for known networks dialog 2019-09-09 21:36:19 +00:00