Commit graph

18048 commits

Author SHA1 Message Date
Carlos Garnacho
d51336c2c2 wacom: Port calibrator UI to GTK+
Same dog, different collar. The UI has been ported 1:1 to GTK+, using
GtkBuilder, CSS and event controllers fairly reduced the amount of code
needed for this.

It also allows us to stop initializing clutter-gtk across the several
executables.
2018-11-07 23:02:10 +00:00
Robert Ancell
94b218a486 user-accounts: Remove unused UmAccountType enum 2018-11-08 10:48:33 +13:00
Adrien Plazas
ed245a9b33 flatpak: Move accountservice to meson
Adapts to upstream changes, as the Autotools are not offered anymore.
2018-11-07 13:09:37 +00:00
Robert Ancell
8029b3e7be user-accounts: Rename UmPasswordDialog to CcPasswordDialog
Um is a naming hangover from before this was part of g-c-c.
2018-11-07 12:37:51 +13:00
Robert Ancell
2f68113950 user-accounts: Refactor password change handlers
Split the signal handler into two to remove quirky behaviour of clearing
the validation ticks depending on which GtkEntry generated the event.
2018-11-07 12:37:02 +13:00
Robert Ancell
c95f90b830 user-accounts: Use gchar consistently instead of char 2018-11-07 09:30:25 +13:00
Robert Ancell
cedbbd8eac user-accounts: Use g_auto in UmPasswordDialog 2018-11-07 09:30:25 +13:00
Robert Ancell
ad44ad4367 user-accounts: Convert UmPasswordDialog to GtkTemplate 2018-11-07 09:30:25 +13:00
Robert Ancell
ae90438bc8 user-accounts: Fix namespace of CcUserPanel
It wasn't correctly moved from the UM namespace when renamed in ec529e8.
This hasn't caused a problem, it's just a little confusing.
2018-11-06 16:00:36 +13:00
Robert Ancell
65cb7e98d1 thunderbolt: Fix compile warning 2018-11-06 11:39:48 +13:00
Robert Ancell
4f6e897b58 region: Use g_signal_connect_object for all signal handlers
This ensures they wont be called when the handling object is destroyed.
Also connect all in "swapped" form for improved readability.
2018-11-05 11:07:58 +00:00
Georges Basile Stavracas Neto
120eb2f59e
network: Use #pragma once on headers
Another low hanging fruit that reduces even more the
number of lines of code of the headers.
2018-11-05 08:33:22 -02:00
Georges Basile Stavracas Neto
f1347132d9
net-device-mobile: Remove private field from public structure
We can use pointer arithmetics to retrieve the private field.
2018-11-05 08:33:21 -02:00
Georges Basile Stavracas Neto
724c77a1a4
net-device-mobile: Turn into a final class
Exact same case of NetVpn and NetDeviceWifi.
2018-11-05 08:33:21 -02:00
Georges Basile Stavracas Neto
d4a08c48f1
net-device-mobile: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:33:21 -02:00
Georges Basile Stavracas Neto
5d10d7121b
net-device-ethernet: Turn into a final class
This one did not require any specific changes beyond moving
the struct definition to the .c file, and removing the old
style GObject boilerplate. Remarkably easy.
2018-11-05 08:33:21 -02:00
Georges Basile Stavracas Neto
81922ca5ab
net-proxy: Remove private field from public structure
We can use pointer arithmetics to retrieve the private field.
2018-11-05 08:33:19 -02:00
Georges Basile Stavracas Neto
0b35233412
net-proxy: Turn into a final class
Same case of NetVpn and NetDeviceWifi.
2018-11-05 08:32:39 -02:00
Georges Basile Stavracas Neto
75f57d38fc
net-proxy: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
66ed8916f0
net-device-simple: Remove GObject boilerplate
Now that NetDeviceSimple is cleaned up, switch to
G_DECLARE_DERIVABLE_TYPE() and remove the old style
GObject boilerplate.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
f72e6d2012
net-device-simple: Remove private field from public structure
We can use pointer arithmetics to retrieve the private field.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
a04b8ffba8
net-device-simple: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
0dd7a9785f
net-vpn: Remove private field
Like NetDeviceWifi, NetVpn is now a final class, and thus does not
need a private field. Remove this field and use the NetVpn struct
itself to store the previously private variables.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
e3d125860b
net-vpn: Turn into a final class
Remove the old style GObject boilerplate and replace it by
G_DECLARE_FINAL_TYPE(). Move the NetVpn structure definition
to the .c file too.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
8509270562
net-vpn: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
ccd492d752
net-device-wifi: Remove private field
NetDeviceWifi is a final class, and thus does not need a private
field. Remove this field and use the NetDeviceWifi struct itself
to store the previously private variables.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
0ce486ecb5
net-device-wifi: Turn into a final class
Remove the old style GObject boilerplate and replace it by
G_DECLARE_FINAL_TYPE(). Move the NetDeviceWifi structure
definition to the .c file too.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
e1dcf21979
net-device-wifi: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
 and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
c4f34569c0
net-device: Remove GObject boilerplate
Now that NetDevice is a bit more clean, switch to
G_DECLARE_DERIVABLE_TYPE() and remove the old style
GObject boilerplate.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
118631e273
net-device: Remove private field from public structure
We can use pointer arithmetics to retrieve the private field.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
f4027b9a25
net-device: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:31:49 -02:00
Georges Basile Stavracas Neto
890dac86e9
net-device-mobile: Initialize variable 2018-11-05 08:31:48 -02:00
Georges Basile Stavracas Neto
881248ef9a
net-object: Turn into a derivable class
This commit removes the old GObject boilerplate, uses
G_DECLARE_DERIVABLE_TYPE() to define NetObject, and
uses "pragma once" at the header.
2018-11-05 08:31:47 -02:00
Philip Withnall
c07b357311 panels: Add X-GNOME-UsesNotifications to several desktop files
gnome-settings-daemon emits notifications related to these four control
panels. If we add X-GNOME-UsesNotifications to their desktop files, the
user will be able to control the notifications.

https://wiki.gnome.org/Initiatives/GnomeGoals/NotificationSource

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2018-11-01 17:22:21 +00:00
Robert Ancell
700b857ab8 common: Fix language chooser showing all languages as checked
If the language chooser was created and a language not set all the
checks are shown beside each entry. Solved by hiding these checks
by default.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/250
2018-10-26 16:59:04 +13:00
Robert Ancell
ec529e8566 user-accounts: Use GtkTemplate
Switch from GtkBuilder to using GtkTemplate.
Rename .[ch] and .ui files to standard names.
Rename widget IDs to be more readable.
Drop widget IDs that are not used.
Move code into the .ui file that can be.
Connect signals in swapped form.
2018-10-25 11:28:53 +00:00
Dušan Kazik
aa073b1e4b Update Slovak translation
(cherry picked from commit 6948d010e3)
2018-10-24 17:50:18 +00:00
Pavlin Georgiev
67a835d233 Update README.md 2018-10-24 13:03:26 +00:00
Benjamin Berg
c9fc833ddc display: typedef data structures related to snapping
Simply a small cleanup to typedef the relevant data structures.
2018-10-24 10:36:13 +02:00
Benjamin Berg
32a6f9befa display: Run snapping after certain modifications
Anything that affects the size of the screen (or its existance) may
result in invalid configurations. Do a small effort in trying to fix
this by calling into the snapping algorithm for the modified monitor.

Addresses issue #247 to a large extend.
2018-10-24 10:36:13 +02:00
Benjamin Berg
adf7cb26ea display: Add function to run the snapping algorithm on a monitor
This is a function working only on a configuration which runs the
snapping with infinite snapping. This allows forcing a monitor that has
been modified to be adjacent to at least one monitor.
2018-10-24 10:36:13 +02:00
Benjamin Berg
1ad0eaba7c display: Do not require widget for snapping
Just move everything needed into the SnapData struct.
2018-10-24 10:36:13 +02:00
Robert Ancell
71eefdd8f6 user-accounts: Fix user carousel not showing
This bug was introduced in 02559b0f69
2018-10-24 04:57:35 +00:00
Robert Ancell
9c655bfba0 region: Create classes for input sources 2018-10-24 04:50:29 +00:00
Jonathan Kang
a0998bbb03 wifi: Disable periodic scan only when Wi-Fi is disabled
The periodic Wi-Fi scan is introduced in 84279c4a. It's designed to
scan the Wi-Fi list every 15 seconds and disable the scan when Wi-Fi is
disabled.

But currently the periodic check is disabled every time
wireless_enabled_toggled() is called, which is wrong. Because it can
mean Wi-Fi is enabled or disabled.

Fix that by disabling periodic scan only when Wi-Fi is disabled.

fixes 84279c4a
2018-10-24 04:38:53 +00:00
Matej Urbančič
5b5ec95397 Updated Slovenian translation 2018-10-23 16:36:31 +02:00
Robert Ancell
f9e088d49e user-accounts: Use g_signal_connect_object with UmUserManager
The UmUserManager object could last longer than the panel. Use
g_signal_connect_object to do this automatically. Remove manual old method.

Connect signals in swapped form.
2018-10-23 06:41:21 +00:00
Robert Ancell
433c247f50 region: Fix available input methods rows not showing
Some gtk_widget_show calls were missed from 5368c1cb71
2018-10-18 01:37:12 +00:00
Robert Ancell
c11890667b background: Fix warning when XDG_PICTURES_DIR not defined
Make the code match the existing monitor to fall back to the home directory.

The error message was:
(gnome-control-center:22910): GLib-GIO-CRITICAL **: 16:42:17.915: g_file_new_for_path: assertion 'path != NULL' failed
2018-10-18 01:31:27 +00:00
Robert Ancell
74b54f6336 sound: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2018-10-18 01:18:57 +00:00