Commit graph

94 commits

Author SHA1 Message Date
Ondrej Holy
0173b88f99 user-accounts: fix language showing
Wrong language is shown for user with unset language if we are
switching between "Other accounts" and panel is locked.

https://bugzilla.gnome.org/show_bug.cgi?id=731272
2014-06-12 13:14:15 +02:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Matthias Clasen
2991d70476 users: Improve logged-in check when deleting users
When deleting a user account, we try to check if the user is
still logged in, but we are using an accountsservice API that
ignores console logins. But deleting a user that is logged
in on the console is just as bad, so use
act_user_is_logged_in_anywhere instead, which includes console
logins.

https://bugzilla.gnome.org/show_bug.cgi?id=721951
2014-01-10 12:55:09 -05:00
Rui Matos
4001cbfc24 user-accounts: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:04 +02:00
Jiro Matsuzawa
aa3af40114 user-accounts: Mark some strings as translatable
https://bugzilla.gnome.org/show_bug.cgi?id=695230
2013-08-13 21:15:26 +09:00
Jonh Wendell
f1d59d06df user-accounts: make sure to check for permissions everywhere
every time we call show_user() we should also verify the permissions.
this fixes the issue where sometimes we may have some controls
enabled on startup, even on 'locked' state.

https://bugzilla.gnome.org/show_bug.cgi?id=705322
2013-08-02 13:31:51 -03:00
Jonh Wendell
f438da7c3b user-accounts: correctly selects the newly-created user
don't compare pointers, as they can be different, given they
can come from different sources. compare their UID's.

https://bugzilla.gnome.org/show_bug.cgi?id=704426
2013-07-18 13:35:52 -03:00
Philippe Coval
26c44b2221 user-accounts: do not display system accounts
This prevents the user panel from displaying system accounts
and allowing the user to remove them.

https://bugzilla.gnome.org/show_bug.cgi?id=701514
2013-07-15 11:37:37 +01:00
Rui Matos
efb2248946 user-accounts: Disconnect from ActUserManager signals on dispose
This causes crashes when e.g. changing the language in the region
panel after having opened the user panel first.

https://bugzilla.gnome.org/show_bug.cgi?id=702402
2013-06-17 16:33:35 +02:00
Ondrej Holy
d134890b8b user-accounts: Password dialog redesign
https://bugzilla.gnome.org/show_bug.cgi?id=695450
2013-06-11 13:44:05 +01:00
Thomas Wood
3af1b72691 user-accounts: prevent the only admin from being deleted or disabled
https://bugzilla.gnome.org/show_bug.cgi?id=690246
2013-06-05 16:43:12 +01:00
Joshua Lock
0adf7c2073 user-accounts: prevent the only Administrator from being demoted
If there is only one account of type Adminstrator and it is demoted to type
Standard the user can be left unable to unlock panels and perform other
Administrator tasks - prevent this by only allowing the Account Type to be
changed when the account is a standard user or, in the case that the account
is an Administrator, when there is one or more other Administrators.

https://bugzilla.gnome.org/show_bug.cgi?id=690246
2013-06-05 16:43:11 +01:00
Thomas Wood
b906d32e4c user-accounts: avoid problems with automatic login
Prevent an account from being set to automatically logged in if it is
disabled or requires the password to be changed at next login.

https://bugzilla.gnome.org/show_bug.cgi?id=701373
2013-06-05 16:43:11 +01:00
Jean-Benoit MARTIN
1be1b5c1bf user-accounts: Remove autologin when an account is deleted
Check if autologin is enabled when an account is deleted and remove
autologin for that user.

https://bugzilla.gnome.org/show_bug.cgi?id=698663
2013-06-04 11:28:56 +01:00
Stef Walter
05147e093a user-accounts: Hide 'Add Account' dialog when panel goes away
When the user panel goes away (usually due to another panel replacing
it) complete the add account dialog, if it's up.

https://bugzilla.gnome.org/show_bug.cgi?id=698263
2013-06-04 11:28:50 +01:00
Ondrej Holy
f4c6f6093e user-accounts: Don't show heading for other accounts if there are none
https://bugzilla.gnome.org/show_bug.cgi?id=661688
2013-06-04 11:28:31 +01:00
Chris Cummins
6d11023f33 user-accounts: Validate real name on change
This prevents users from setting invalid real names for accounts by
editing the name from the user panel. This applies the same check as is
done when first adding the account.

https://bugzilla.gnome.org/show_bug.cgi?id=699940
2013-05-17 16:24:19 +02:00
Stef Walter
e84bb4983c user-accounts: Reacquire permissions before adding account
If necessary, reacquire permissions before starting to add an
account.

https://bugzilla.gnome.org/show_bug.cgi?id=698276
2013-04-24 08:59:50 +02:00
Ondrej Holy
254116f0c5 user-accounts: Don't unref users
libaccountsservice doesn't ref them before giving them to us,
so we shouldn't unref them when we're done with them.

https://bugzilla.gnome.org/show_bug.cgi?id=691891
2013-03-14 17:57:27 -04:00
Bastien Nocera
75fdd13a74 user-accounts: Avoid a warning on startup
As a user was not set on the password dialog yet. Also make
sure that we do not try to update the password strength label
before anyone has entered anything in the dialogue itself.
2013-02-20 18:02:53 +01:00
Bastien Nocera
fa022622d2 user-accounts: Fix possible free of unowned string
And the subsequent crasher.
2013-02-20 18:02:48 +01:00
Matthias Clasen
8cc06f8413 users: Deal with preloaded users
Now that another panel is using ActUserManager, the one the
user panel is using may already be loaded when it starts up.
It was not dealing with that gracefully.
2013-02-19 12:25:52 +01:00
Matthias Clasen
d37b5fc4c1 user: Adapt to new language chooser 2013-02-19 12:25:52 +01:00
Matthias Clasen
1ecd607bcb Move cc_add_user_language
Move it to cc-common-language.c and rename it
to cc_common_language_add_user_languages
2013-02-19 12:25:51 +01:00
Ondrej Holy
324d1cef8a user-accounts: Add history dialog
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2013-01-09 14:14:19 +01:00
Cosimo Cecchi
eb573a72e5 user-accounts: use a GResource for GtkBuilder UI definition and icons
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:23 +01:00
Matthias Clasen
4bee148691 users: Handle real name being unset
When no real name is available, fall back to the user name.
https://bugzilla.gnome.org/show_bug.cgi?id=691173
2013-01-05 16:54:17 -05:00
Ryan Lortie
d46a23a5a2 user-accounts: port to libaccountsservice
This removes a bunch of duplicated code, and also drops
a direct dependency on libsystemd-login.

https://bugzilla.gnome.org/show_bug.cgi?id=671858
2013-01-03 11:39:58 -05:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Ondrej Holy
691a258232 user-accounts: Add last login field
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2012-12-03 14:55:23 +01:00
Ondrej Holy
9864297c71 user-accounts: fix wrong sensitivity of the autologin combo
https://bugzilla.gnome.org/show_bug.cgi?id=686383
2012-10-22 14:21:37 +02:00
Ondrej Holy
bd26688df9 user-accounts: Logged in status identification
https://bugzilla.gnome.org/show_bug.cgi?id=681769
2012-10-09 10:52:40 +02:00
Stef Walter
d6f2d07ddb user-accounts: Remove the autologin checkmark
We want to use a checkmark to show the currently logged in status.

https://bugzilla.gnome.org/show_bug.cgi?id=681769
2012-10-09 10:51:19 +02:00
Cosimo Cecchi
7181ca7c95 user-panel: make the autologin cell renderer follow state
Since it renders a symbolic icon, let it follow the state, so
it takes the selected text color when the row is selected

https://bugzilla.gnome.org/show_bug.cgi?id=684828
2012-09-26 12:41:37 -04:00
Bastien Nocera
95fb453d87 user-accounts: Disable password changing for remote users
Works-around:
https://bugs.freedesktop.org/show_bug.cgi?id=55002
See also:
https://bugzilla.gnome.org/show_bug.cgi?id=681866#c11
2012-09-17 19:47:10 +02:00
Matthias Clasen
a955ec4152 Switch files created by me to GPLv2+
This matches the rest of the control-center code base.
https://bugzilla.gnome.org/show_bug.cgi?id=683420
2012-09-06 19:07:09 -04:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Stef Walter
f217fa286a user-accounts: Change behavior/display of panel for remote accounts
* Hide the automatic-login and fingerprint widgets
 * Insensitive account type and real name widgets

https://bugzilla.gnome.org/show_bug.cgi?id=681770
2012-08-18 19:14:03 +01:00
Stef Walter
a2149736cd user-accounts: Display the username in list
* By displaying the username we get the unix user name for
   local accounts, and the full login name for remote accounts.
 * Can now differentiate between accounts with the same display
   'real' name.
 * Can see the full login identity of remote accounts.

https://bugzilla.gnome.org/show_bug.cgi?id=681767
2012-08-18 19:11:01 +01:00
Bastien Nocera
923f27950a user-accounts: Fix crash on startup
Due to badly installed PolicyKit files.

https://bugzilla.gnome.org/show_bug.cgi?id=681763
2012-08-18 18:32:34 +01:00
Stef Walter
3f76a97915 user-accounts: Create the add account dialog on demand
* Creating the add account dialog as the panel gets created
   means that realmd is invoked, network discovery is done
   and so on. Not optimal.
 * We also don't really need to cache the account dialog,
   and can create a new one for each [+] click.

https://bugzilla.gnome.org/show_bug.cgi?id=681852
2012-08-18 18:16:32 +01:00
Cosimo Cecchi
dfe03a1173 user-accounts: port to GtkLevelBar
This also adds another out parameter to pw_strength(), which is a discrete
indication of the password strength (to be used with GtkLevelBar). The
advantage of having such a parameter back from pw_strength() is that we
can make sure the fill value and the hint string change at the same
time, for better consistency.

https://bugzilla.gnome.org/show_bug.cgi?id=679984
2012-07-16 11:29:25 +01:00
Stef Walter
a70e50f268 user-accounts: Combine realmd permissions into panel unlock
Create a new policy file for the admin actions of the user
accounts panel, combining the relevant actions of
accountsservice and realmd.

https://bugzilla.gnome.org/show_bug.cgi?id=678098
2012-06-15 12:00:26 +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
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
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
Florian Müllner
a901cc1c18 user-accounts: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:38 +02:00
Michael Terry
04eca6d951 user-accounts: Make controls insensitive when a user is not selected
https://bugzilla.gnome.org/show_bug.cgi?id=671484l
2012-04-10 11:17:08 -04:00
Bastien Nocera
96b404c537 user-accounts: Minimum of 200 width for the users list
https://bugzilla.gnome.org/show_bug.cgi?id=671480
2012-03-08 17:14:46 +01:00
Bastien Nocera
74450e3acd user-accounts: Fix sizing problems in user list
About half-way through the user list, vertically, the user's name
would get cut off. Showing the treeview headers showed that the
"automatic login" pixbuf was added in a separate column.

To make sizing easier, and avoid the user's name being cut off
half-way through, add the "automatic-login" icon in the first column.

https://bugzilla.gnome.org/show_bug.cgi?id=659998
2012-03-01 17:16:22 +00:00