Commit graph

17814 commits

Author SHA1 Message Date
Ondrej Holy
f4b1fb66a4 user-accounts: Fix hint for wrong enterprise user/password
A variable of label widget, used for a hint when wrong enterprise
user/password is used, is not properly initialized and thus criticals
are shown instead of the hint when user/password is wrong. Let's bind
the variable properly.
2018-05-12 04:12:43 +00:00
Ting-Wei Lan
949f8cb227 tests/network: Disable on non-Linux systems
NetworkManager is only available on Linux, so we cannot build or run the
network test on non-Linux systems.
2018-05-12 04:03:45 +00:00
Claudio André
ffcd5b15f2 CI: shrink the test process
See #46
2018-05-12 00:30:20 -03:00
Andrea Azzarone
f9b65046e9 night-light-dialog: Ignore G_IO_ERROR_CANCELLED errors
We should ignore G_IO_ERROR_CANCELLED errors and avoid displaying useless
warnings. Also use g_clear_object instead of g_object_unref.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/87
2018-05-12 02:31:12 +00:00
Marek Kasik
f3257ce82a printers: Focus search entry in new printer dialog
Focus search entry in the new printer dialog once user starts to type
so he does not need to click on it.

Closes #41
2018-05-10 16:47:10 +00:00
Andrea Azzarone
1d26f63b18 night-ligth-dialog: Avoid dereferencing invalid pointer
dialog_got_proxy_cb and dialog_got_proxy_props_cb may be called after the
instance of CcNightLightDialog has been disposed. Make sure 'self' pointer is
not dereferenced if not valid.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/86
2018-05-10 00:56:19 +02:00
Andrea Azzarone
6ec0bcde15 object-storage: Avoid double free when propagating error
In cc_object_storage_create_dbus_proxy_sync and
cc_object_storage_create_dbus_proxy_finish we need to use g_steal_pointer to
make sure local_error is not double freed.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/86
2018-05-10 00:56:19 +02:00
Georges Basile Stavracas Neto
eea231dc1c tests: Run each datetime test under Xvfb
That way, gtk_init() cannot fail.
2018-05-09 18:52:48 -03:00
Georges Basile Stavracas Neto
8404f526b6 tests: Make logging verbose 2018-05-09 18:33:18 -03:00
Georges Basile Stavracas Neto
c23e8f3547 tests: Rework test-timezone-gfx 2018-05-09 18:33:18 -03:00
Georges Basile Stavracas Neto
0b854910bb tests: Rely only on zone.tab
First of all, this is a complete rewrite of the
timezone tests. Everything was revisited, starting
from code style, to concepts, etc.

The problem  with the previous timezone test was that
is was relying on listing the /usr/share/zoneinfo
directory, and assuming that those entries would be
always present.

Turns out, some of them are extensions, some of them
are undocumented files, etc. A huge mess. I could've
blacklisted the undesired files and folders, but that
would still be insufficient for other OSes like *BSDs
and Sun.

The final solution was pretty straightforward: only
use the information from zone.tab to run the tests.
2018-05-09 15:38:12 -03:00
Georges Basile Stavracas Neto
197ed1ed55 datetime: Update backwards file
This is just a plain copy of the most recent (2017-10)
backwards file from tzinfo.
2018-05-09 15:38:12 -03:00
Matej Urbančič
2da5fd3b3d Updated Slovenian translation 2018-05-09 17:59:59 +02:00
Emin Tufan Çetin
8fa0f6eecd Update Turkish translation 2018-05-06 18:48:01 +00:00
Gábor Kelemen
283bc92335 Update Hungarian translation 2018-05-05 15:38:10 +00:00
Fabio Tomat
7b74bfbbe6 Update Friulian translation 2018-05-05 14:54:47 +00:00
Marek Cernocky
3d134b93b4 Updated Czech translation 2018-05-04 14:25:55 +02:00
Fabio Tomat
2efd5442d5 Update Friulian translation 2018-05-04 12:16:04 +00:00
Georges Basile Stavracas Neto
af0186aaf9 project: Update meson files
I probably have OCD. Seeing these files
with this poor alignment gives me physical
pain.
2018-05-03 00:45:29 -03:00
Georges Basile Stavracas Neto
36af5e51d1 shell-model: Remove boilerplate and update code style 2018-05-02 23:11:48 -03:00
Georges Basile Stavracas Neto
3228632d55 project: Update DOAP file
The maintainers listed there aren't maintaining it anymore,
and shouldn't be pinged about Settings. Please let me know
if any of you want your maintainership status back again.
2018-05-02 23:01:18 -03:00
Georges Basile Stavracas Neto
70b346d8b5 project: Add coding style and contribution guidelines
And also update the README file.
2018-05-02 23:00:31 -03:00
Georges Basile Stavracas Neto
16f06665dd window, shell-model: Silence warnings
A fallback from the previous commit.
2018-05-02 22:34:23 -03:00
Georges Basile Stavracas Neto
4b91361d98 project: Add issue templates 2018-05-02 21:02:13 -03:00
Benjamin Berg
37b06c126a ci: Do not run install for testing
There is no need to install g-c-c to run the tests, and in fact, we
should ensure that this is the case as it simplifies testing for e.g.
distributions.
2018-05-02 22:29:33 +00:00
Benjamin Berg
f655e46ce7 tests/network: Add basic testing of network panel
This adds tests for the network panel based on the test service found in
NetworkManager. Another possible solution may be to use the one from
dbusmock, however NetworkManager already has readily available code to
write tests in C which makes checking the widget hierarchy easier.
2018-05-02 22:29:33 +00:00
Benjamin Berg
7630bf963e tests: Add helper for glib based test binaries
This makes running glib based tests inside a dbusmock environment easier
and more beautiful (i.e. output is supressed unless an error occurs).

This helper has been submitted for inclusion in dbusmock. If it cannot$
live there in some form, then we should try to find a home in the GNOME$
project for it.$
2018-05-02 22:29:33 +00:00
Benjamin Berg
8c9be792f2 tests: Add dbusmock helper starting X server and system/session busses
This helper has been submitted for inclusion in dbusmock. If it cannot
live there in some form, then we should try to find a home in the GNOME
project for it.
2018-05-02 22:29:32 +00:00
Benjamin Berg
fc072d65a8 ci: Add dbusmock and Xvfb dependency
This is in preparation for testing which requires an X server.
mesa-dri-drivers is required for the OpenGL software renderer.
2018-05-02 22:29:32 +00:00
Benjamin Berg
466d91afd3 tests/network: Fix deprecation warning in NM test service
This just fixes a simple deprecation warning in the NetworkManager test
service.
2018-05-02 22:29:32 +00:00
Benjamin Berg
9bab137bb4 tests/network: Add status and carrier setting to NM test service
This adds a bit of new functionality to the test service to set the
status and reason for the status change as well as whether the carrier
is connected.
2018-05-02 22:29:32 +00:00
Benjamin Berg
2ebdb532cf tests/network: Copy files from network manager for network panel testing
This copies a number of files from network manager in preparation of
adding network panel tests.
2018-05-02 22:29:32 +00:00
Benjamin Berg
aec8c911bb shell: Add static shell library for testing purposes
Export shell functionality which panels may require for testing purposes
into a static library.
2018-05-02 22:29:31 +00:00
Benjamin Berg
e91266a8f0 network: Fix crash on connection change after device removal
When a device is removed the callback handler could still be called
because it was connected using g_signal_connect rather than
g_signal_connect_object. This fixes crashes in the UI after a device has
been removed again.
2018-05-02 22:29:31 +00:00
Benjamin Berg
ec50cbcdff network: Ensure devices are removed from UI when disappearing
The "removed" callback from NMObject is never called when the object is
simply finalised because the UI drops the reference. Explicitly call the
handler so that UI elements are removed.
2018-05-02 22:29:30 +00:00
Benjamin Berg
f547d9129d shell: Only try to select an existing panel on startup
When selecting the panel on startup based on the "last-panel" settings,
we need to make sure that the panel exists.

Note that this is a special case which does not use the internal
set_active_panel_from_id API. Using it is currently not possible because
the API does not report back the error and we would end up not selecting
any panel.
2018-04-30 14:02:25 +00:00
Daniel Șerbănescu
256b4a45c0 Update Romanian translation 2018-04-30 05:59:15 +00:00
Jonathan Kang
00a74afc20 sharing: set end margin for labels in Networks list box
Currently if a network connection's name is long enough, there will
be no space between the name label widget and the switch button widget
next to it.

Fix that by setting the end margin of label widget as 6 to keep some
space between those two widgets.
2018-04-26 16:32:25 +00:00
Ondrej Holy
85f267bfa7 user-accounts: Port UmRealmManager to GTask
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
2018-04-25 19:11:37 +02:00
Ondrej Holy
3cf277eb68 user-accounts: Port UmAccountDialog to GTask
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
2018-04-25 19:11:35 +02:00
Daniel Mustieles
c6f3b6859a Updated Spanish translation 2018-04-23 16:12:54 +02:00
Daniel Șerbănescu
666bccd861 Update Romanian translation 2018-04-22 09:57:17 +00:00
Bastien Nocera
f26d21682a power: Automatically add values to drop-down when necessary
When a setting is set to a value that's not in the list of options, add
that custom value to the drop-down for the duration of the run, so as to
avoid the last item being selected and causing confusion.

https://bugzilla.gnome.org/show_bug.cgi?id=793448
2018-04-19 14:59:10 +02:00
Bastien Nocera
6c447dc14a power: Don't show approximate percentages
When there's a battery-level property (new in UPower 0.99.5), don't show
the percentage, as it's a rough approximation of the truth.

https://bugzilla.gnome.org/show_bug.cgi?id=780360
2018-04-19 14:39:11 +02:00
Georges Basile Stavracas Neto
9214a966de trivial: Improve meson file
This commit only improves the style of the main Meson
file, and makes the output message a bit more friendlier.
2018-04-17 12:20:12 -03:00
Piotr Drąg
79013788fd Update POTFILES.in 2018-04-17 16:56:51 +02:00
Benjamin Berg
b15be07738 Move datetime tests into tests subdirectory 2018-04-17 15:26:59 +02:00
Benjamin Berg
3c76d52e8e Move info panel test to tests subdirectory 2018-04-17 15:26:59 +02:00
Benjamin Berg
a9d8ec5747 Move printers panel tests into tests folder 2018-04-17 15:26:59 +02:00
Benjamin Berg
d2d4980ce8 Move panel/common tests into new tests subdirectory 2018-04-17 15:26:59 +02:00