Commit graph

1940 commits

Author SHA1 Message Date
Bastien Nocera
b9e356412f power: Fix reference to "Screen" settings
This also fixes the use of a split string, as mentioned in
bug #675929.

https://bugzilla.gnome.org/show_bug.cgi?id=670567
2012-06-12 14:12:44 +01:00
Stef Walter
4bb0739670 user-accounts: Implement enterprise logins in add dialog
* Use realmd for domain joining and lookup, runtime dependency
 * Validate join domain correctly
 * Add UmRealmManager for handling some stuff above the autogenerated
   realmd dbus code
 * Show a dialog if the user's credentials cannot be used to join
   the domain. Prompt for admin creds.
 * Register the user's login with the AccountsService
 * This depends on the CacheUser() method of AccountsService

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:31:48 +02:00
Stef Walter
06233ebba8 user-accounts: Add um_user_manager_cache_user()
This calls the AccountsService.CacheUser() method to register
a user that's not in /etc/passwd

Depends on: https://bugs.freedesktop.org/show_bug.cgi?id=50770

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:27:40 +02:00
Stef Walter
228347e713 user-accounts: Add way to change modes
Add the buttons to switch between the local account and
enterprise modes.

The enterprise area just has a place holder widget for now.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:27:21 +02:00
Stef Walter
3a7ee1bff9 user-accounts: Cleaner validation and validate on open
Clean up the validation so we can plug in the enterprise
login stuff.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
67066255ba user-accounts: Separate local account stuff in accounts dialog
Separate the local account stuff a bit so when the enterprise
stuff comes in it's still readable.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
fd4f3cc9ce user-accounts: Port account dialog to GtkGrid
Some spacing issues will be sorted in a later commit.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
2e0623e7d5 user-accounts: Title of accounts dialog becomes "Add Account"
This title makes sense for both remote and local users. In the
case of remote users we're not creating accounts, we're just
adding them to the system.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
b09cd23d85 user-accounts: Add test tool frob-account-dialog
A simple tool to show the add account dialog for quick
iterations testing of the 'enterprise login' functionality.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
2a545187da user-accounts: Show a spinner during account dialog actions
During actions which can run a long time show a spinner
indicating that something is going on.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
2e228b9992 user-accounts: Cleaner interaction with UmAccountDialog actions
More clear scoping and interaction with running actions in
UmAccountDialog. In later 'enterprise login' patches we have long
running actions that's why this needs cleaning up.

In particular:

 * Show errors as children of the dialog.
 * Errors don't make the account dialog go away, user can correct
   problems.
 * Use more standard GAsyncResult style callbacks:
   um_account_dialog_perform() um_account_dialog_finish()
 * Disable controls while the operation is happening.
 * Allow the user to cancel long actions in UmAccountDialog by
   pressing the cancel button.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:27 +02:00
Stef Walter
61eadc3fe3 user-accounts: Fix memory leak in create_user_done()
g_dbus_error_get_remote_error() returns an allocated string

https://bugzilla.gnome.org/show_bug.cgi?id=677930
2012-06-12 10:57:09 +02:00
Stef Walter
5fbce5f8da user-accounts: UmAccountDialog shouldn't be valid when shown
The user needs to enter some data before the dialog's 'Create'
button can be clicked.

https://bugzilla.gnome.org/show_bug.cgi?id=677928
2012-06-12 10:35:45 +02:00
Stef Walter
5b022773b3 user-accounts: Fix memory leak of GtkBuilder in accounts dialog
https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 09:48:32 +02:00
Stef Walter
195e0137b2 user-accounts: Don't refer to UmAccountDialog as um
It's confusing to read; it reads as 'user manager'. Since this
is a GObject, just use self as customary.

Most of these lines change in later commits anyway, so this won't
really pollute the 'git blame'

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 09:30:04 +02:00
Stef Walter
6aff0f9a86 user-accounts: Make UmAccountDialog a GtkDialog
The dialog will get much more complex due to 'enterprise login'
work and we want a proper object here.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 09:18:17 +02:00
Stef Walter
a5dc2b80cc user-accounts: Remove unused MAXNAMELEN definition
https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 08:51:49 +02:00
Olivier Fourdan
786a36db1f wacom: Add keep aspect ratio option
Adjust tablet area to match the aspect ratio of the output
assigned to the tablet.

https://bugzilla.gnome.org/show_bug.cgi?id=668907
2012-06-11 17:55:04 +02:00
Cosimo Cecchi
cde88dca90 network: fix packing order of children in the service dialog
The heading should be packed at the top, before the combobox.

https://bugzilla.gnome.org/show_bug.cgi?id=674498
2012-06-11 09:48:58 -04:00
Cosimo Cecchi
761f5f0b8b background: always pass a cancellable down to I/O operations
So they will be properly cancelled when the panel is disposed.
Also, check early if the operation was cancelled, since it's not safe to
assume the data of the callback is valid anymore before that point.

https://bugzilla.gnome.org/show_bug.cgi?id=672572
2012-06-11 09:16:44 -04:00
Dan Williams
8631717b3d network: don't crash on hidden SSIDs
APs that don't broadcast their SSID will return NULL from
nm_access_point_get_ssid() (since that's easier to check in C
using an if statement than returning a zero-length GByteArray).
Thus the code shouldn't try to dereference the SSID byte array
since it could be NULL.

But in fact, the panel shouldn't be showing hidden APs anywhere
in the UI, since the user needs to manually enter the SSID to
connect to it anyway.  So just ignore hidden APs like nm-applet
does.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-07 13:08:53 +01:00
Bastien Nocera
1261d73821 mouse: Use '&' instead of 'and'
Using "&" not only keeps the names shorter but would also keeps the
user focused on the other words which compose the name.

https://bugzilla.gnome.org/show_bug.cgi?id=676562
2012-06-06 17:45:15 +01:00
Bastien Nocera
d07be14ba0 region: Use '&' instead of 'and'
Using "&" not only keeps the names shorter but would also keeps the
user focused on the other words which compose the name.

https://bugzilla.gnome.org/show_bug.cgi?id=676562
2012-06-06 17:45:15 +01:00
Bastien Nocera
8aca1c2090 screen: Use '&' instead of 'and'
Using "&" not only keeps the names shorter but would also keeps the
user focused on the other words which compose the name.

https://bugzilla.gnome.org/show_bug.cgi?id=676562
2012-06-06 17:45:15 +01:00
Bastien Nocera
a4475970ee datetime: Use '&' instead of 'and'
Using "&" not only keeps the names shorter but would also keeps the
user focused on the other words which compose the name.

https://bugzilla.gnome.org/show_bug.cgi?id=676562
2012-06-06 17:45:15 +01:00
Debarshi Ray
f86d8eb26c online-accounts: Remove horizontal scrolling from accounts list
We have enough space. Therefore, instead of having horizontal
scrollbars, widen the text renderer and then ellipsize, if required.

Implemented design:
https://live.gnome.org/Design/SystemSettings/OnlineAccounts

Fixes: https://bugzilla.gnome.org/671980
2012-06-06 14:24:31 +02:00
Debarshi Ray
93051830a7 online-accounts: New "Add Account" dialog
Implemented design:
https://live.gnome.org/Design/SystemSettings/OnlineAccounts

Fixes: https://bugzilla.gnome.org/671980
2012-06-06 14:23:57 +02:00
Debarshi Ray
8ba96c7daf online-accounts: Don't hardcode the text color
With hard coded colors, when an account is selected in the tree view,
the text shows up as black on blue, instead of white on blue.

Fixes: https://bugzilla.gnome.org/671980
2012-06-04 21:10:18 +02:00
Bastien Nocera
e880784fcb region: Update the shortcuts labels on startup
https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 19:01:57 +01:00
Rui Matos
5e4376cfde keyboard: Add key bindings to switch input sources
https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:39 +01:00
Rui Matos
0a78c3504e region: Add XKB input sources
We allow the user to choose from all XKB layouts installed and keep a
user picked list in gsettings.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
375bf2363f region: Improved keynav on the input chooser
This makes the dialog return when the user presses Enter on the filter
entry and prevents the GtkTreeView search popup from being used since
we already handle searching on that tree view.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
e38f9acf39 region: Improved selection handling on the input chooser
This makes the input chooser list always have a selected row and be
centered on it when the filter is applied.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
0fb0d6139b region: Removal of the Layouts tab
https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:38 +01:00
Rui Matos
bfaeb6a41d region: Add an initial input sources tab
This is just the scaffolding according to
https://live.gnome.org/Design/SystemSettings/RegionAndLanguage
No code behind it yet.

Original code from Matthias Clasen.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:37 +01:00
Matthias Clasen
e59dc8dec4 keyboard: Make it possible to jump to shortcuts tab
To make this work, we need to move the setting up of priv->builder
to the instance init, so that it is available when construct properties
are set; the other setup needs to remain in the constructor, since
it relies on construct properties.

https://bugzilla.gnome.org/show_bug.cgi?id=662489
2012-06-01 18:46:37 +01:00
Richard Hughes
ec27900578 network: Allow configuring wired network devices when not connected
This prevents the chicken-and-egg problem as described in #653296 by launching
nm-connection-editor for the inactive connection for the device.

This only works when there is one possible connection for the device, which is
helpfully typical for wired ethernet devices.

Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=653296
2012-05-30 14:47:02 +01:00
Richard Hughes
04fdb2b456 network: Don't resize the panel when switching network types
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=671482
2012-05-30 14:47:02 +01:00
Richard Hughes
160697df6c network: Do not print a critical warning when NetworkManager is restarted
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=676369
2012-05-30 12:39:48 +01:00
Bastien Nocera
487c11c0d9 wacom: Update from gnome-settings-daemon 2012-05-25 14:04:53 +01:00
Bastien Nocera
5c78387b59 wacom: Update from gnome-settings-daemon 2012-05-25 12:48:34 +01:00
Bastien Nocera
5a2b411255 wacom: Fix crasher using link to display panel
->panel was never set within the page object.
2012-05-25 12:16:24 +01:00
Bastien Nocera
aa161bacc9 wacom: Destroy button mapping dialogue on unplug
https://bugzilla.gnome.org/show_bug.cgi?id=676790
2012-05-25 11:19:37 +01:00
Antoine Jacoutot
0b782b5633 disable wacom on s390/s390x and non Linux platforms
Follow gnome-settings-daemon behavior and disable the wacom panel on
s390/s390x (because this architecture does not provide development files
from the wacom xorg driver) and on non Linux platforms (where udev is
missing).

https://bugzilla.gnome.org/show_bug.cgi?id=676714
2012-05-25 10:40:45 +01:00
Bastien Nocera
bd3405d9e1 universal-access: Add context for haircross length
https://bugzilla.gnome.org/show_bug.cgi?id=671989
2012-05-23 19:11:23 -04:00
Matthias Clasen
f62d801656 users: Pass more information to password checker
Passing the username and the old password allows the password
quality check find more bad passwords. Also, add a way to provide
more information about why a password is not good enough.

https://bugzilla.gnome.org/show_bug.cgi?id=676396
2012-05-23 10:43:48 -04:00
Matthias Clasen
810f29b6ce users: Use libpwquality for password handling
Using a library for password generation and quality checking
has the obvious benefit that we can have centralized policy
for password quality, and our homegrown code for this was not
a beauty in the first place.

This commit drops the use of /usr/bin/agp for generating
random passwords.

https://bugzilla.gnome.org/show_bug.cgi?id=676396
2012-05-23 10:43:17 -04:00
Matthias Clasen
8947cf8468 users: Separate out password generation and strength calculation
This is in preparation of using a library for this purpose, and
is just generally cleaner.
2012-05-23 09:19:21 -04:00
Debarshi Ray
142070e8ea user-accounts: Use <small> instead of <i> to indicate user role
Fixes: https://bugzilla.gnome.org/674423
2012-05-23 08:33:50 -04:00
Matthias Clasen
86bd905920 users: Make generated password visible
A generated password is useless if you can't read it.

https://bugzilla.gnome.org/show_bug.cgi?id=633601
2012-05-23 08:32:01 -04:00