Commit graph

18278 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
d1fe090bf4
panel-loader: Rename all_panels to default_panels 2018-11-11 23:41:59 -02:00
Georges Basile Stavracas Neto
6a50a21f40
panel-loader: Define vtable struct in the header
We will allow test panels to be added, so the vtable must
be overridable. The first step into making it overridable
is exposing the actual vtable struct.
2018-11-11 23:41:59 -02:00
Georges Basile Stavracas Neto
9d88b84788
panel-loader: Assert get_type() function
Be more strict about the get_type() availability - we cannot
run without it.
2018-11-11 23:41:59 -02:00
Georges Basile Stavracas Neto
a6c983d499
panel-loader: Use #pragma once
Saves use a few lines of code.
2018-11-11 23:41:59 -02:00
Georges Basile Stavracas Neto
81fa6f18b0
build: Alphabetically sort source files
Trivial cleanup.
2018-11-11 23:41:57 -02:00
Robert Ancell
4e6b341edc build: Update bug URL to gitlab.gnome.org 2018-11-12 09:56:16 +13:00
Kristjan SCHMIDT
f0ef74805d Update Esperanto translation 2018-11-10 23:42:26 +00:00
Alex Hirsch
b4809cd210 display: Mode compare takes interlaced into account
When changing the display mode, the apply button does not appear if the
current mode and new mode differ only in their interlaced flag.

The display mode comparison function now takes the interlaced flag into
account.
2018-11-10 20:38:02 +01:00
Robert Ancell
4e6aa67fa4 user-accounts: Fix renamed cc-add-user-dialog.c not correctly updated in POT file
This wasn't done correctly in 112b61c0ff
2018-11-10 10:08:54 +13:00
Robert Ancell
faaece85d2 user-accounts: Replace gtk_stack_set_visible_child with gtk_stack_set_visible 2018-11-10 09:39:09 +13:00
Robert Ancell
aac990aa83 user-accounts: Re-align fields in class structure 2018-11-10 09:28:23 +13:00
Robert Ancell
ad76438817 user-accounts: Focus domain entry when selecting enterprise login
And return focus correctly when switching back to local login
2018-11-10 09:24:34 +13:00
Robert Ancell
e41506798a Replace tabs with whitespace 2018-11-10 09:24:34 +13:00
Robert Ancell
3456269215 user-accounts: Remove debugging program for testing a dialog
This is not used by anyone.
2018-11-10 09:24:34 +13:00
Robert Ancell
26b0720200 user-accounts: Use gtk_dialog_run for CcAddUserDialog 2018-11-10 09:24:34 +13:00
Robert Ancell
96c2c4d62c user-accounts: Simplify how models are accessed 2018-11-10 09:24:34 +13:00
Robert Ancell
d77e3423d1 user-accounts: Use consistent naming for widgets
Remove widget IDs that are unused.
2018-11-10 09:24:33 +13:00
Robert Ancell
74cf3bcda1 user-accounts: Consolidate now simpler init functions 2018-11-10 09:24:33 +13:00
Robert Ancell
043b6dc907 user-accounts: Move CcAddUserDialog signals into .ui file 2018-11-10 09:24:33 +13:00
Robert Ancell
a4b76204ff user-accounts: Move default widget visibility and sensitivity into .ui file 2018-11-10 09:24:33 +13:00
Robert Ancell
1691cd74fc user-accounts: Move realm model into .ui file 2018-11-10 09:24:33 +13:00
Robert Ancell
550cbc2367 user-accounts: Use actual widget types in CcAddUserDialog
Instead of using GtkWidget and casting everywhere
2018-11-10 09:24:33 +13:00
Robert Ancell
112b61c0ff user-accounts: Rename UmAccountDialog to CcAddUserDialog
Um is a naming hangover from before this was part of g-c-c.
2018-11-10 09:24:33 +13:00
Robert Ancell
0d754295ce user-accounts: Rename um-resources to cc-user-accounts-resources
um- is a naming hangover from before this was part of g-c-c.
2018-11-09 09:08:27 +13:00
Robert Ancell
3eaf71065e user-accounts: Rename UmHistoryDialog to CcLoginHistoryDialog
Um is a naming hangover from before this was part of g-c-c.
2018-11-08 13:17:13 +00:00
Robert Ancell
5eec53c52c user-accounts: Use g_auto in UmHistoryDialog 2018-11-08 13:17:13 +00:00
Robert Ancell
c2940dd426 user-accounts: Convert UmHistoryDialog to GtkTemplate 2018-11-08 13:17:12 +00:00
Benjamin Berg
b5711c59ec power: Correctly lookup or insert new items into combobox
The code to lookup or insert items into the combobox had a few issues.
It would assume that the items are sorted, causing existing items to not
be found and be inserted instead. It also would simply forget to insert
an item if it was larger than all existing items.

This code is now changed to iterate over all items, finding the best
insertion point in the process (next item has a larger value, or the
values are not increasing anymore). The item will only be inserted if it
has not been found.

Fixes #261
2018-11-08 12:38:51 +00:00
Robert Ancell
13bfd725cd keyboard: Remove unused header file 2018-11-08 14:17:43 +13:00
Carlos Garnacho
697789083d build: Drop all references to clutter-gtk
It's currently just added whenever cheese is enabled, however that should
be already an indirect dependency. There is no need for it to explicitly
to be explicitly linked here.

And same goes for CI Docker files, the dependency will be indirectly
installed through cheese anyway.
2018-11-07 23:02:10 +00:00
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