Commit graph

18566 commits

Author SHA1 Message Date
Benjamin Berg
98d20659b7 display: Make rebuilding variable a counter
We need to also set rebuilding while updating some other UI elements.
Make it into a counter to allow for recursive setting.
Note that additional checks for rebuilding will be added in later
commits.
2019-03-20 17:58:29 +01:00
Benjamin Berg
21bb6416be display: Reset resolution when switching configuration types
It generally makes more sense to reset the resolution of a monitor after
we switch configuration types. The main case where this is relevant is
switching from a mirror configuration (CLONE) to either join or single.
In this case, higher resolutions for monitors may become available.

Note that this might be annoying to some users, because there may be
monitors reporting a lower "preferred" resolution than the highest
supported resolution. There is little we can do though, as always
selecting the highest resolution doesn't seem like a much better
approach.
2019-03-20 17:26:56 +01:00
Benjamin Berg
ae22f72cac display: Prevent error when serializing invalid configuration
If no monitors are enabled, then the variant would end up with an
invalid variant type, causing a crash later on. This case only happened
due to other bugs (i.e. in principle we should never send a
configuration without any monitors to the server).

Prevent the serialization error by specifying the correct type for the
builder, therefore potentially preventing a crash in such a corner case.
2019-03-20 17:26:56 +01:00
Benjamin Berg
0c4e84e417 display: Ensure we have a primary monitor after all were disabled
When enabling the first monitor, we need to select it as primary as we
otherwise end up without a primary monitor (rendering the configuration
invalid). "Unsetting" the NULL primary monitor effectively causes the
first and only available monitor to become the primary, while not doing
anything if we have a primary monitor.
2019-03-20 17:26:08 +01:00
Benjamin Berg
20d24992ee display: Enable all monitors when switching to join config
The new code had a bug in that it only ever enabled the first monitor
rather than all usable ones. Fix this by removing the erroronuous break.
Also clarify the comment a bit that the current solution is not really
ideal as it may result in invalid configurations (i.e. we enable more
outputs than are possible with the number of available CRTCs).

Fixes #418
2019-03-18 17:08:35 +00:00
Alan Mortensen
c8ffb34038 Updated Danish translation 2019-03-18 18:06:10 +01:00
Robert Ancell
29eebceddd applications: Fix flatpak ID memory leak 2019-03-18 14:53:43 +00:00
Marco Trevisan (Treviño)
49957ef818 display: Don't always set the primary monitor to the first in list
As per the binding that we have between the list store and the combo-box, when
the first element is added to the list-store, the combo box set this value as
the selected-index, and this leads to a call to cc_display_monitor_set_primary
which set the first-listed monitor as primary and unset the real primary monitor.

To avoid this, just ignore the binding when rebuilding the UI, since in this
phase control-center should just reflect the actual state without changing
anything.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/issues/419
2019-03-18 11:53:18 +00:00
Khaled Hosny
cc6e6de802 Update Arabic translation 2019-03-17 17:07:31 +02:00
Bruce Cowan
2b805db886 Update British English translation 2019-03-16 11:10:53 +00:00
Georges Neto
93983c9b88 Update Brazilian Portuguese translation 2019-03-15 17:34:50 +00:00
Robert Ancell
82ca937ecd sound: Fix crash when sound device set to NULL
This can occur during transitions.

Introduced in f081264.
2019-03-14 11:28:08 +13:00
Robert Ancell
f0812644ae sound: Apply device changes
Was missing the code to actually apply the changes.
2019-03-14 10:58:59 +13:00
Ondrej Holy
743677c560 info: Remove unused gsd-disk-space-helper.[h|c]
GNOME/gnome-control-center!387 ported info panel to use UDisks2 instead
of GUnixMounts and thus the helpers from gsd-disk-space-helper.[h|c] are
no more needed.
2019-03-13 16:04:58 +01:00
Ryuta Fujii
cb7c297ff4 Update Japanese translation 2019-03-13 14:49:25 +00:00
Felipe Borges
ef73a423d7 online-accounts: Add shadow to providers icon
The new icons are flat and are more legible with a shadow, just
like the new GNOME application icons.

See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
2019-03-13 13:47:34 +01:00
Felipe Borges
de769bbe9b sound: Add shadow to application icons
The new GNOME application icons need a shadow when placed on top
of a light background.

See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
2019-03-13 13:46:53 +01:00
Felipe Borges
7e17e308af notifications: Add shadow to application icons
The new GNOME application icons need a shadow when placed on top
of a light background.

See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
2019-03-13 13:46:23 +01:00
Felipe Borges
46ad696890 search: Add shadow to application icons
The new GNOME application icons need a shadow when placed on top
of a light background.

See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
2019-03-13 13:45:59 +01:00
Felipe Borges
4e34738cbb applications: Add shadow to application icons
The new GNOME application icons need a shadow when placed on top
of a light background.

See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
2019-03-13 13:45:26 +01:00
Georges Basile Stavracas Neto
dc50111829
ci: Fix tests with tags
We need to run the tests, and when on tags, run 'ninja dist'.
Just that.
2019-03-11 16:16:50 -03:00
Georges Basile Stavracas Neto
7762c15277
ci: Run tests with meson
So that we can run a more complete version of the
tests.
2019-03-11 16:16:11 -03:00
Georges Basile Stavracas Neto
4659780be6
3.32.0.1 2019-03-11 16:02:25 -03:00
Benjamin Berg
37c768ab0f display: Fix Apply button showing for changes to disabled monitor
Disabled monitors may or may not have a mode selected. This means, we
need to skip the mode comparison if the two compared monitors are
disabled (i.e. have no logical monitor).
Move the mode check to the end and skip it if both monitors are disabled.

This fixes cases where identical configurations are misdetected, because
we applied a mode to a monitor and disabled the monitor again. This
happens for example when switching the active monitor in "single" mode.
2019-03-11 18:32:21 +00:00
Benjamin Berg
1f29dad46f display: Keep current monitor enabled when forcing an update
In the case where the user plugged/unplugged a screen, we could run into
the case where we would first enable and then disable the same output.
This could potentially result in an invalid configuration.

Prevent this by not disabling the output if no switch happened.
2019-03-11 18:32:21 +00:00
Benjamin Berg
75bf1b8cd1 display: Update apply button when switching output in "single" mode
While the configuration was updated, the apply button was not synced.
This meant users could not switch the active monitor properly.

Fixes #405
2019-03-11 18:32:21 +00:00
Benjamin Berg
5aa17c6984 display: Correctly select "single" mode when opening display panel
The dialog tried to retain the current configuration mode. However,
doing so means that we end up in the wrong mode in some situation (e.g.
opening the dialog with two displays but only one enabled).

Fix this by always selecting a configuration mode. This potentially
switches the user from "join" to "single" if only one monitor is left.
However, the user has no way to do this manually, so no unexpected UI
change will happen.
2019-03-11 18:32:21 +00:00
Robert Ancell
0f257d2451 applications: Add missing creation of cancellable 2019-03-11 18:24:59 +00:00
Adrien Plazas
f827d3c948 meson: Bump libhandy to 0.0.9 2019-03-11 18:13:21 +00:00
Georges Basile Stavracas Neto
977a7d7d06
ci: Don't install libudisks2
[skip ci]
2019-03-11 15:12:46 -03:00
Georges Basile Stavracas Neto
3da2c39577
ci: Use fedora:latest for Ppc64le
[skip ci]
2019-03-11 14:40:45 -03:00
Georges Basile Stavracas Neto
cc4348a575
ci: Use the new Fedora 30 Dockerfiles
[skip ci]
2019-03-11 13:51:02 -03:00
Georges Basile Stavracas Neto
402fef8637
ci: Use Fedora 30
[skip ci]
2019-03-11 13:46:46 -03:00
Georges Basile Stavracas Neto
3e9d5c57f4
3.32.0 2019-03-11 11:43:55 -03:00
Efstathios Iosifidis
ac2ca1ff98 Update Greek translation 2019-03-09 17:46:23 +00:00
Baurzhan Muftakhidinov
140f5db8b0 Update Kazakh translation 2019-03-09 12:13:31 +00:00
Asier Sarasua Garmendia
2b86540984 Update Basque translation 2019-03-09 09:13:27 +00:00
Ryuta Fujii
db2cc12c70 Update Japanese translation 2019-03-07 11:16:55 +00:00
Ryuta Fujii
d649b5269b Update Japanese translation 2019-03-07 10:32:04 +00:00
Georges Basile Stavracas Neto
ac054d3cec
3.31.92 2019-03-04 18:19:44 -03:00
Balázs Meskó
1c0612d46b Update Hungarian translation 2019-03-04 20:12:27 +00:00
Benjamin Berg
42006249af Remove internal copy of HdyValueObject
The relevant code is included in libhandy 0.8 and can be removed now
that we depend on a new enough version.
2019-03-04 16:59:25 +00:00
Iain Lane
e83fd09949 ci: Rebuild docker images any time a commit touches the dockerfile
Currently they are built from cron, but we can use Gitlab's

  only:
    changes:
      - path

support to also trigger on path changes. This is restricted to only work
for pushes for master, so that branches / merge requests don't attempt
to rebuild the image.
2019-03-04 15:56:07 +00:00
Iain Lane
75c47ee7c9 ci: Install udisks2 for the coverage tests
This is needed to build g-c-c for the test, until the image is updated.
2019-03-04 15:56:07 +00:00
Iain Lane
feebbe7ac3 Add libudisks2-devel into all the docker images
In 2520aea647 we added udisks2 as a
build-dep but missed adding it to two of the image creation scripts.
2019-03-04 15:56:07 +00:00
Andrea Azzarone
f42f39970d user-accounts: Fix memory corruption in the avatar popup
Use g_object_set_data_full and g_steal_pointer to ensure the validity of the
"filename" association.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/399
2019-03-04 11:06:54 +00:00
Fran Dieguez
8fde5401e8 Update Galician translation 2019-03-03 20:53:35 +00:00
Rūdolfs Mazurs
2dfbc859b0 Update Latvian translation 2019-03-03 17:03:33 +00:00
Aurimas Černius
e23e8376b0 Updated Lithuanian translation 2019-03-03 18:51:09 +02:00
Alan Mortensen
6388989983 Updated Danish translation 2019-03-03 17:35:45 +01:00