Commit graph

5093 commits

Author SHA1 Message Date
Robert Ancell
8af63dc40a common: Disable language chooser confirm button until a language is selected
Make the button insenstive until a language is chosen as per:
https://wiki.gnome.org/Design/SystemSettings/RegionAndLanguage
2018-08-27 18:33:52 +00:00
Georges Basile Stavracas Neto
7d58972623 Revert "color: Cache D-Bus proxies"
This reverts commit 8e56ea35f3.
2018-08-27 12:56:20 +00:00
Georges Basile Stavracas Neto
998dec3bfd Revert "info: Cache D-Bus proxies"
This reverts commit e46d505182.
2018-08-27 12:56:20 +00:00
Georges Basile Stavracas Neto
a2e166d0d6 Revert "notification: Cache D-Bus proxy"
This reverts commit 77ac09aa04.
2018-08-27 12:56:20 +00:00
Georges Basile Stavracas Neto
a44d395804 Revert "privacy: Cache D-Bus proxies"
This reverts commit 754434fa0d.
2018-08-27 12:56:20 +00:00
Georges Basile Stavracas Neto
fc29c0c5a8 Revert "region: Cache D-Bus proxy"
This reverts commit 10dfbb526e.
2018-08-27 12:56:20 +00:00
Robert Ancell
ead164b6da wacom: Remove unused tabs in UI
There were some tabs that were not visible and not used. They also
had translatable text that was not used.
2018-08-27 02:55:21 +00:00
Robert Ancell
49e8256a7e user-accounts: Don't mark empty strings as translatable 2018-08-24 11:33:32 +12:00
Robert Ancell
aaee85e5c6 region: Simplify size code for input chooser dialog
The previous code was complex and caused the dialog to abruptly change size when
interacting with it. Instead choose a reasonable default height.
2018-08-17 08:27:21 +00:00
Ondrej Holy
70d8427b04 user-accounts: Add casts to suppress gcc warnings
"warning: passing argument 1 of ‘gtk_widget_destroy’ from incompatible
pointer type" is printed from g_clear_pointer, because it is more
type-safe now. See https://gitlab.gnome.org/GNOME/glib/issues/1425 for
more info. Add the necessary casts to suppress the warnings.
2018-08-15 22:12:12 +00:00
Yifan J
a1066a27e0 user-accounts: Remove implicit language setting
The commit targets to remove the behavior of implicit set of the language
when the user panel is clicked in g-c-c.

The behavior looks like introduced to partly resolve the bug [0] when the
gnome-initial-setup somehow did not set the language correctly. However the
gnome-initial-setup is able to handle the language nicely now.

Furthermore, the current user could not see its own language chooser in the
g-c-c User panel, instead the Region&Language panel is supposed to do the
task. And the Region&Language panel has already got a default locale set [1]
[2]. So even if the language is not set in the key file, it is less an issue
nowadays than when the issue was originally described in [0].

[0] https://bugzilla.gnome.org/show_bug.cgi?id=737216
[1] https://bugzilla.gnome.org/show_bug.cgi?id=767065
[2] https://gitlab.gnome.org/GNOME/gnome-control-center/commit/5e2ed8e

https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/161
2018-08-15 09:32:35 +00:00
Robert Ancell
3642cb2d82 wifi: Use g_signal_connect_object
The previous code used the g_signal_connect which could leave the signals
connected even after the NetDeviceWifi object was destroyed.

Automatic crash reports in Ubuntu indicate that this might be happening:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1718727
2018-08-13 23:46:23 +00:00
Benjamin Berg
57578e1331 display: Reset the window title after removing custom headerbar
As the main headerbar used by the shell is split, the title is not
propagated to the window. However, the "apply" header bar is not split
and the title is propagated to the toplevel GtkWindow.

Fix this issue by resetting the window title again.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/issues/81
2018-08-03 14:43:47 +02:00
Robert Ancell
b51af0fc58 wacom: Replace ifdefs with #pragma once 2018-08-02 21:48:03 +00:00
Robert Ancell
aeca65c729 wacom: Replace GObject boilerplate with G_DECLARE_TYPE 2018-08-02 21:48:02 +00:00
Robert Ancell
09465579b7 printers: Use const for manufacturer string 2018-08-02 10:02:15 +00:00
Robert Ancell
b4e081d7f9 printers: Fix branch depending on uninitialized variable 2018-07-30 04:07:19 +00:00
Robert Ancell
ed78a6a120 printers: Fix double free / leak due to copy-paste error 2018-07-30 15:31:45 +12:00
Georges Basile Stavracas Neto
6c28263e6b night-light: Uncomment signal handler
This was mistakenly introduced ed36688c and was causing
a crash when opening the Night Light dialog multiple times.
2018-07-23 11:36:39 -03:00
Georges Basile Stavracas Neto
c2eaafebc0 power: Minor adjustment in the mobile broadband string
Now it properly follows Nick's suggestion.

[skip ci]
2018-07-23 11:24:12 -03:00
Georges Basile Stavracas Neto
37a0b8e04f power: Reword some strings
Some of the current string related to saving power by
turning something off are ambiguous, and can mean both
"yes, turn off" or "yes, keep it on" at the same time.

This commit slightly rewords those sentences in order
to disambiguate them.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/53

[skip ci]
2018-07-23 11:07:43 -03:00
Georges Basile Stavracas Neto
88c30e8fbd wifi: Keep Airplane Mode always synchronized
Currently, we acquire the Rfkill D-Bus proxy and synchronize
the state right after that. However, we don't monitor for
subsequent changes by connecting to the 'g-properties-changed'
GDBusProxy signal, which causes the Airplane Mode not to stay
synchronized when modified from others places, such as GNOME
Shell's aggregate menu.

This commit adds the necessary signal monitoring code to react
to external applications changing the Rfkill properties.
2018-07-23 10:13:13 -03:00
Georges Basile Stavracas Neto
b9da351a3d wi-fi: Add empty state for Airplane Mode
According to the most recent mockups [1], when Airplane
Mode is switched on, the Wi-Fi connection will be turned
off and the Wi-Fi panel should show an empty state for
Airplane Mode. This is currently not implemented in the
codebase.

This commit adds an Airplane Mode empty state for the Wi-Fi
panel, and a small logic adjustment to show it under these
circumstances.
2018-07-23 12:56:00 +00:00
Georges Basile Stavracas Neto
4ad1c5dea1 wifi: Expose Airplane Mode row outside access point list
The current Wi-Fi panel ties the Airplane Mode row to the access
point list of a given Wi-Fi adapter. That has unintended but
bad side effects: when enabling Airplane Mode, the row disappears
and we have to switch to another panel (e.g. Bluetooth) in order
to disable it. This is functionally wrong: we should be able to
enable or disable Airplane Mode from where we initially changed
it.

This commit reorganizes the widget hierarchy in order to put the
Airplane Mode row outside of the main GtkStack page. This is
necessary in order to fully implement the proposed mockups[1]
and, in general, because it's the right thing to do.

Notice that the logic of the empty states in [1] is not fully
implemented yet; this commit only reorganizes the widgets that
already exist to get closer to the mockups. Subsequent commits
will implement more of the empty states.

[1] https://github.com/gnome-design-team/gnome-mockups/raw/master/system-settings/network/aday3/wi-fi-wires.png

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/issues/121
2018-07-23 12:55:59 +00:00
Georges Basile Stavracas Neto
f9b9f105dd network: Rename UI files to match C files
This commit renames {network|wifi}.ui to cc-{network|wifi}-pane.ui,
in order to match the corresponding C files. This introduces no
functional changes.
2018-07-23 12:55:59 +00:00
Robert Ancell
828024e225 common: Make language chooser dialog match design
Update the chooser to:

* Use a search bar at the top of the dialog, not the bottom
* Have a larger window
* Remove space from around listbox

https://wiki.gnome.org/Design/SystemSettings/RegionAndLanguage

Merges !129
2018-07-22 09:54:21 -03:00
Robert Ancell
148e4c8fd0 common: Use GtkTemplate for the language chooser dialog 2018-07-18 22:39:32 +00:00
Lubomir Rintel
3c61cee1bb network: use nm_device_get_description()
It's better for human-readable display than nm_device_get_product().
Unlike nm_device_get_product(), it never returns an empty string and
sanitizes the string.

With NM 1.12 it goes to great lengths to clean up the messy udev
strings.
2018-07-17 08:44:16 +02:00
Robert Ancell
17dbce362e notifications: Refactor app notifications dialog
The current widget has a very generic name "EditDialog" - rename it to something
that reflects better what it is for.

Implement it is as a full GtkWidget using GtkTemplate.

Move some of the logic from inside the dialog to the code that creates the dialog
so less data is passed around.

Store properties using functions instead of g_object_set_data - that passes
everything as a gpointer which is easy to make a mistake with.
2018-07-16 19:36:19 +00:00
Robert Ancell
0f60dd1b71 region: Use GtkTemplate for format chooser dialog 2018-07-14 16:14:57 +00:00
Ondrej Holy
1e769bb49d user-accounts: Use term "Confirm" instead of "Verify"
The Password dialog uses "Verify New Password" and Add User dialog
"Confirm". Let's use "Confirm New Password" as it is on mockups to
be consistent in terminology.
2018-07-12 10:11:25 +02:00
Ondrej Holy
833c18bce4 user-accounts: Use the same phrase when passwords do not match
Use "The passwords do not match." phrase in the Add User dialog and
Password dialog consistently.
2018-07-12 10:11:25 +02:00
Robert Ancell
5e91cc7140 user-accounts: Correctly hide password mismatch warnings
The logic for the password mismatch warnings didn't handle the case where
you deleted both the passwords - it would still show them as not
matching.

Fix this by handling the three cases:
- Passwords are different
- Passwords are the same
- No passwords entered
2018-07-11 16:19:54 +02:00
Ondrej Holy
525adcf10b user-accounts: Fix entry sensitivity after password generation
If a password is generated and prefilled in the corresponding entries,
the verify entry remains insensitive. Let's fix the sensitivity...

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/38
2018-07-11 10:38:57 +02:00
Ondrej Holy
d07a67fcb3 user-accounts: Validate password before moving focus
If <tab> is pressed and password is not yet validated (ie. the verify
entry is not sensitive), focus skips the verify entry, even if the
password is strong enough. Let's validate the password when <tab> is
pressed (ie. before focus change) to prevent this <tab> breakage...

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/38
2018-07-11 10:38:57 +02:00
Ondrej Holy
ae16a8e7a0 Revert "user-accounts: Don't disable the verify password entry"
This reverts commit 7b3746af23.

This is needed to make obvious that password is not yet strong
enough.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/38
2018-07-11 10:38:57 +02:00
Sam Hewitt
e91208eeb5 printers: update pixel_size of icons to avoid aliasing 2018-07-10 18:04:32 -04:00
Sam Hewitt
e66ee02953 wacom: use dim-label class on icons instead of opacity for consistency 2018-07-10 17:53:56 -04:00
Sam Hewitt
24174173be common: update pixel_size values to base 16 for icon clarity 2018-07-10 17:52:08 -04:00
Jonas Ådahl
49ef965dc7 sharing: Enable settings widget for gnome-remote-desktop
Enable support for manipulating GNOME Remote Desktop settings. Settings
are done via the org.gnome.desktop.remote-desktop.vnc schema.
Configuring the VNC password is done via libsecret, thus libsecret is
added as a dependency.
2018-07-10 19:59:51 +00:00
Robert Ancell
b3ea72735a notifications: Use g_signal_connect_object to ensure handlers are not run after object destroyed
Fixes specific crash:
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/75
2018-07-03 11:42:00 +12:00
Robert Ancell
556388f373 region: Fix small memory leak
Was introduced in 79e00c3
2018-07-02 21:52:03 +00:00
Robert Ancell
65c43b4fac common: Fix missing reference
Was introduced in 86d1d30
2018-07-02 21:11:42 +00:00
Philip Withnall
7b3cd630c0 info: Update gsd_should_ignore_unix_mount() from g-s-d master
• Use g_unix_is_system_fs_type() if a new enough GLib is available,
   rather than maintaining our own list of system file system types.
 • List network file systems separately, since GLib doesn’t ignore them.
 • Ignore some file systems by label too.

See
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/merge_requests/24.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2018-06-29 06:49:45 +00:00
Robert Ancell
3f5bc8369b printers: Fix warning about wrong data type 2018-06-26 15:57:20 +12:00
Robert Ancell
55d47bc83e printers: Plug memory leaks 2018-06-25 22:53:10 +00:00
Bastien Nocera
a30e5dbe72 wifi: Use g_debug() for a debug message
Rather than CC_TRACE_MSG() which is supposed to be used for debugging
timing related problems.
2018-06-20 12:53:11 +00:00
Bastien Nocera
0e2a4aa2d6 wacom: Hide Wacom panel when there are no tablets
Use GsdDeviceManager to monitor libwacom-supported tablets coming and
going. Hide the Wacom panel from the list when there's no supported
tablets plugged in.
2018-06-20 12:53:11 +00:00
Robert Ancell
67d39e497a region: Fix language search crash due to g_auto changes in 79e00c3 2018-06-20 17:07:08 +12:00
Robert Ancell
9ae5f9a667 Fix crash due to g_auto changes in 79e00c3 2018-06-20 16:44:36 +12:00