Commit graph

17564 commits

Author SHA1 Message Date
Benjamin Berg
c2f601a9d4 Move common panel code from shell/ to panel/common
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Benjamin Berg
e1593b3c02 shell: Remove CcEditableEntry, it is not used anywhere 2018-04-17 14:59:31 +02:00
Iñigo Martínez
37a6b940cb build: Fix USER_DIR_MODE value in config.h
meson defines `USER_DIR_MODE` with a raw octal value to be used as
the default permissions when creating the user's configuration
directory.

However, meson does not support raw octal values[0], so the define
misses the initial `0` value. Due to this, the directory is created
with wrong permissions.

This has been changed to use the octal value as a string in meson,
so the definition has the proper value.

Fixes #49

[0] https://github.com/mesonbuild/meson/issues/2047
2018-04-17 00:24:36 +00:00
gogo
897e91ee6d Update Croatian translation 2018-04-16 12:27:44 +00:00
gogo
132163759f Update Croatian translation 2018-04-16 12:25:12 +00:00
Georges Basile Stavracas Neto
958bb8fe6b thunderbolt: Fix coding style
Not everything was fixed, but why bother.
2018-04-14 19:26:12 -03:00
Piotr Drąg
685b35cf9b Update POTFILES.in 2018-04-13 18:57:31 +02:00
Piotr Drąg
8d2fb2199e thunderbolt: fix grammar in a translatable string 2018-04-13 18:54:57 +02:00
Piotr Drąg
da0172274f thunderbolt: add a translator comment to the .desktop file 2018-04-13 18:51:53 +02:00
Piotr Drąg
fc9c8cb70b Update POTFILES.in 2018-04-13 18:49:18 +02:00
Christian Kellner
25a302ae98 thunderbolt: move to the 'Devices' page
The 'Devices' page is a fitting place for the thunderbolt, being
an IO technology. It is expected that people that need to go to
that page will be sent there via a gnome-shell notification, so
there is no need for it to be on the main page.
Ok'ed by the design team (jimmac).
2018-04-13 16:03:21 +02:00
Christian Kellner
47f241b10c thunderbolt: new panel for device management
Thunderbolt devices need to be approved before they can be used.
This is done via the boltd system daemon and gnome-shell. The new
panel enables the user to manage thunderbolt devices, i.e.:

 - forget devices that have previously been authorized
 - authorize currently unauthorize devices

Additionally authorization of devices an be temporarily disabled
to ensure no evil device will gain access to the computers
resources.

File starting with "bolt-" are copied from bolt's source tree
and currently correspond to the bolt upstream commit with the id
f22b1cd6104bdc2b33a95d9896b50f29a141b8d8
They can be updated from bolt via the update-from-bolt.sh script.
2018-04-13 15:08:16 +02:00
Stas Solovey
ef9d460e72 Update Russian translation
(cherry picked from commit 665912175b)
2018-04-12 11:48:52 +00:00
Christian Kellner
2889ab03b2 shell: Icon name helper returns symbolic name
The helper function to get the icon name from a GIcon directly
returns the symbolic icon now. This makes it in turn possible
to also directly check if the theme has the icon with the symbolic
name instead of checking of for the full colored one and then
deriving the symbolic name from that. The latter (old) practice
will fail if there is a symbolic icon in the theme that has no
full color icon (like e.g. thunderbolt).
2018-04-10 09:47:48 +02:00
Christian Kellner
51a1229111 shell: Don't set per-panel icon
The control center app is considered one single application with
a single icon to represent it. Therefore get rid of per-panel
icons.
2018-04-10 09:43:22 +02:00
Felipe Borges
8879cd476a printers: Fix crash when panel is closed quickly
Fix a user-after-free while testing the connectivity to a cups
server. This is similar to the fix in commit 1d72a0b.

This is an addition to the changes introduced in commit 2ff5cfd
which allowed the connection testing to be cancellable.

Fixes #51
Fixes https://bugzilla.gnome.org/794632
2018-04-09 13:26:55 +02:00
Georges Basile Stavracas Neto
02b0d5931c debug: Fix copy-pasta mistake
Now people now where did I copied it from!
2018-04-07 18:49:39 -03:00
Changwoo Ryu
4571a38004 Update Korean translation
(cherry picked from commit c186123991)
2018-04-07 04:39:10 +00:00
Georges Basile Stavracas Neto
1187f147af log: Reimplement logging and debugging
This commit replaces the old rudimentary log handler
by a shinier version of it. It also introduces the
debugging macros that I usually add to the apps,
including the CC_TRACE_MSG() macro for tracing.
2018-04-06 23:18:26 -03:00
Georges Basile Stavracas Neto
85296f1eba trivial: Code style improvements 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
10dfbb526e region: Cache D-Bus proxy 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
754434fa0d privacy: Cache D-Bus proxies 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
28ad1d1602 printers: Cache CUPS D-Bus proxy 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
eb62419b4b power: Cache D-Bus proxies and NMClient 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
77ac09aa04 notification: Cache D-Bus proxy 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
e46d505182 info: Cache D-Bus proxies 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
35f948f5fb common: Cache D-Bus proxy 2018-04-06 22:23:38 -03:00
Georges Basile Stavracas Neto
250eb01931 network: Cache D-Bus proxies and objects 2018-04-06 22:23:38 -03:00
Georges Basile Stavracas Neto
cbf0dc99da display: Cache the D-Bus proxy 2018-04-06 22:23:38 -03:00
Georges Basile Stavracas Neto
8e56ea35f3 color: Cache D-Bus proxies 2018-04-06 22:23:38 -03:00
Georges Basile Stavracas Neto
d6535f82f0 bluetooth: Cache the D-Bus proxy 2018-04-06 22:23:38 -03:00
Georges Basile Stavracas Neto
083e7bdae6 object-storage: Introduce CcObjectStorage
CcObjectStorage is a cache for GObjects. It is meant to
store objects that are too expensive to be often created,
such as NMClient, GoaClient or D-Bus proxies.

CcObjectStorage has a very strict usage pattern. It is a
programming error to add an object that is already stored,
and so it is to retrieve an object that was not stored.
Stored objects are meant to be kept alive during the whole
lifetime of GNOME Settings, and CcObjectStorage takes a
reference on every stored object to achieve that.

If objects are destroyed while they are cached, it means
we have a reference mismanagement somewhere. In this sense,
CcObjectStorage will act Sam Sheepdog taking care of sneaky
wolves trying to steal their sheep-references.

Next patches will make various panels and objects around
GNOME Settings adopt this new API, and make sure they always
disconnect when destroyed.
2018-04-06 22:23:38 -03:00
Georges Basile Stavracas Neto
1367a8c083 window: Profile panel creation times 2018-04-06 22:23:38 -03:00
Andrea Azzarone
0d16cd3feb keyboard: Make "Set Shortcut" button accessible
Set 'can-focus' property to True for change_custom_shortcut_button, fixing
keyboard navigation in the shortcut editor dialog.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/45
2018-03-30 15:27:26 +00:00
Benjamin Berg
adf5a42f01 display: Show insensitive apply button for invalid configurations
When the user creates temporary invalid configurations the dialog used
to hide the apply button as if no change had been done so far. Change
this to show the normal "Apply"/"Cancel" titlebar but make the "Apply"
button insensitive and modify the title to indicate the error.

Unfortunately we don't currently get the reason in a way that we could
translate it. Ideally we would special case common error scenarios and
present the user with a better explanation or even correct the mistake.

See https://bugzilla.gnome.org/show_bug.cgi?id=790891 for the related
mutter bug.

https://bugzilla.gnome.org/show_bug.cgi?id=790792
2018-03-29 12:09:59 +02:00
Andrea Azzarone
d918b02c1f online-accounts: Complete account removal in cc_goa_panel_finalize()
When removing an online account, gnome-control-center gives the user
the possibility to undo the action showing an "undo notification".
Right now if you close the gnome-control-center window, without dismissing
the notification, the online account will not be properly removed.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/25
2018-03-27 21:09:46 +00:00
Matej Urbančič
e7ef0e75ea Added Slovenian translation 2018-03-27 20:26:45 +02:00
Ondrej Holy
05c86d3fdc user-accounts: Prevent freeze caused by external cameras
cheese_camera_device_monitor_new freezes the whole panel when opening
for a couple of seconds if external camera is connected. This is not
acceptable. Probably it is bug in kernel. Let's use GAsyncInitable if
available.

Bump the cheese dependency accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=783789
2018-03-26 10:15:31 +02:00
Khaled Hosny
4eb2ab8029 Update Arabic translation 2018-03-25 23:08:04 +02:00
Khaled Hosny
810c6da50f Update Arabic translation
(cherry picked from commit 48d2a49d0a)
2018-03-25 18:02:37 +02:00
Jeremy Bicha
5ac87d3f18 appdata: Add UserDocs & HighContrast kudos
https://github.com/GNOME/gnome-software/blob/master/doc/kudos.md

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/14
2018-03-24 20:17:16 +00:00
Georges Basile Stavracas Neto
8d2ce803e9 git: Remove libgd from .gitmodules
Fixes #24
2018-03-23 10:46:52 -03:00
Justin van Steijn
d9cbcedd45 Update Dutch translation
(cherry picked from commit 4e9cdc2234)
2018-03-21 20:34:46 +00:00
Matej Urbančič
c54b27f1cb Added Slovenian translation 2018-03-20 21:57:45 +01:00
Rasmus Thomsen
f957ce1776
user-accounts: fix building without cheese
https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/10
2018-03-20 17:24:04 +01:00
Dušan Kazik
d1cea2a3d9 Update Slovak translation
(cherry picked from commit 4d87ce1cd3)
2018-03-16 21:57:24 +00:00
Georges Basile Stavracas Neto
a1bace4683 build: Drop libgd
Settings does not use libgd.
2018-03-16 15:55:10 -03:00
Georges Basile Stavracas Neto
9a611e0d69 keyboard: Remove deprecated gdk_error_trap_push|pop calls
Instead, implement custom error push and pop functions that mimic
what GDK used to do, but using only non-deprecated functions.
2018-03-16 14:56:28 -03:00
Georges Basile Stavracas Neto
0269f6e5b2 keyboard: Trivial update to code style
This fixed many code style issues in wm-common, and add
a few g_autofree when possible.
2018-03-16 14:39:31 -03:00
Georges Basile Stavracas Neto
aba1647bea keyboard: Silence initialization warning
This field is always initialized properly before being
used, so let's not initialize it when declaring.
2018-03-16 14:19:43 -03:00