Commit graph

17702 commits

Author SHA1 Message Date
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
Georges Basile Stavracas Neto
ee66dc5f3f keyboard: Turn gchar** into GStrv and use g_auto 2018-03-16 14:18:45 -03:00
Georges Basile Stavracas Neto
4496b60c73 keyboard: Make unused public function static
It is not used outside wm-common.c, so let's not export
it as a public function.
2018-03-16 14:14:41 -03:00
Georges Basile Stavracas Neto
2416b4278d keyboard: Remove unused include 2018-03-16 14:14:11 -03:00
Georges Basile Stavracas Neto
1643674a24 bluetooth: Replace GtkAlignment by halign and valign properties
This removes the last deprecation warning in the Bluetooth panel.
2018-03-16 13:51:25 -03:00
Georges Basile Stavracas Neto
deba2b419b build: Bump libnm >= 1.10
For the next stable release, we'll require libnm >= 1.10. This
version bump will happen now, at the beginning of the cycle, to
give distros plenty of time to update.
2018-03-16 13:06:27 -03:00
Georges Basile Stavracas Neto
5659271ec3 build: Drop remaining libnm-glib usage
This library is deprecated for a long time now, and Fedora Rawhide
removed the package. Since our CI is based on Rawhide, it began
to fail.

In the end, the usage was just legacy code that doesn't exist anymore,
so it's pretty safe to just plain drop it.
2018-03-16 13:03:04 -03:00
Georges Basile Stavracas Neto
86f67d7f5e ci: Remove NetworkManager-glib from dependencies
Fedora Rawhide doesn't have it anymore.
2018-03-16 11:56:35 -03:00
Mohammed Sadiq
f6b3afb9d2 display: Increase popover margins to match mockup
https://bugzilla.gnome.org/show_bug.cgi?id=793165
2018-03-16 02:32:55 -03:00
Georges Basile Stavracas Neto
cf163ef0df universal-access: Use transient-for display
This prevents us from triggering a warning.
2018-03-16 02:07:17 -03:00
Georges Basile Stavracas Neto
a5b766f7f0 universal-access: Move widget setup code to constructed()
This is in preparation for using the transient-for window to
retrieve the GdkMonitor.
2018-03-16 02:06:28 -03:00
Georges Basile Stavracas Neto
6cd9461807 universal-access: Turn ZoomOptions into a template class
This commit turns the ZoomOptions into a template class that
subclasses GtkDialog.

This is also a follow-up from commit c82deede1 where we started
using the non-deprecated GdkMonitor API.
2018-03-16 02:01:38 -03:00
Mario Sanchez Prada
ca9228bb59 display: Early return in monitor_labeler_show() if no outputs are available
The GVariant constructed here would be useless otherwise, since there are
no outputs to show the labels for. Besides, calling g_variant_builder_close
in this scenario would hit an assertion and the program would crash.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/12
2018-03-14 23:27:44 +00:00