Commit graph

117 commits

Author SHA1 Message Date
Ondrej Holy
afe0a62267 user-accounts: show restart notification when account type changed
https://bugzilla.gnome.org/show_bug.cgi?id=674429
2015-04-15 16:27:24 +02:00
Ondrej Holy
3e6b741ad2 user-accounts: check for NULL on um_realm_object_get_common
um_realm_object_get_common can return NULL, which shouldn't be passed
into subsequent functions to avoid crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=705351
2015-02-25 15:50:17 +01:00
Ondrej Holy
de821d5922 user-accounts: don't show fingerprint options if disabled
Don't show fingerprint configuraiton if the administrator disabled
fingerprint authentication:
https://help.gnome.org/admin/system-admin-guide/stable/login-fingerprint.html

https://bugzilla.gnome.org/show_bug.cgi?id=744332
2015-02-23 12:57:18 +01:00
Ondrej Holy
a4521c15d5 user-accounts: update padding on style-updated
Padding is updated for some widgets once, when creating the widgets.
But it seems style may not be loaded yet. Therefore the padding has
to be updated on "style-updated" signal to reflect style changes.

https://bugzilla.gnome.org/show_bug.cgi?id=743180
2015-01-27 16:35:48 +01:00
Ondrej Holy
dba7bf76c4 user-accounts: hidpi support for user's icons in tree view
This patch adds UmCellRendererUserImage object which respect scale factor.

https://bugzilla.gnome.org/show_bug.cgi?id=742395
2015-01-20 17:08:19 +01:00
Ondrej Holy
5c30530271 user-accounts: hidpi support for user's icons
This patch adds UmUserImage widget which respect scale factor.

https://bugzilla.gnome.org/show_bug.cgi?id=742395
2015-01-20 17:08:15 +01:00
Ondrej Holy
006b5970a6 user-accounts: render user's icons as surface with scale
This patch is needed for future hidpi support.

https://bugzilla.gnome.org/show_bug.cgi?id=742395
2015-01-20 17:08:11 +01:00
Ondrej Holy
8bd1a5f18d user-accounts: do not show notification if not needed
Restart notification is shown if there is different language in
accountsservice. However restart isn't needed if user selects original
language (after several changes), which is already used in the system.

https://bugzilla.gnome.org/show_bug.cgi?id=703392
2015-01-19 13:12:34 +01:00
Ondrej Holy
b0e6526c46 user-accounts: do not set the language twice
The act_user_set_language function is called twice as a result of
commit 96c0c0a, which is not necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=703392
2015-01-19 13:05:36 +01:00
Ondrej Holy
b61c74aa60 user-accounts: don't show empty row for remote users
Empty row is shown instead of hidden autologin switch, because autologin
box is still visible. Set visibility on autologin box to hide this empty
row.

https://bugzilla.gnome.org/show_bug.cgi?id=742926#c0
2015-01-15 09:34:46 +01:00
Ondrej Holy
320f6e617b user-accounts: replace deprecated stuff 2014-11-20 11:32:33 +01:00
Ondrej Holy
5790368643 user-accounts: fix enterprise accounts deleting
Deleting enterprise accounts using act_user_manager_delete_user fails
with error: userdel failed, because enterprise accounts are added
using act_user_manager_cache_user and don't have entries in passwd
file. Thus enterprise accounts should be removed by
act_user_manager_uncache_user.

https://bugzilla.gnome.org/show_bug.cgi?id=727871
2014-11-03 18:13:10 +01:00
Ondrej Holy
ed13a62c1d user-accounts: use common function for error messages
https://bugzilla.gnome.org/show_bug.cgi?id=727871
2014-11-03 18:13:10 +01:00
Ondrej Holy
96c0c0a838 user-accounts: simplify language changing thru users panel
Do not show combo box with common languages and show the language
chooser immediately as it is done in the region panel.

https://bugzilla.gnome.org/show_bug.cgi?id=738077
2014-10-31 09:19:54 +01:00
Ondrej Holy
37a54b69d6 user-accounts: remove dead code
This lines are dead code, because act_user_get_language() returns empty
string if language isn't set. We don't want to fix the condition, because
cc_common_language_get_current_language is wrong for other users.

https://bugzilla.gnome.org/show_bug.cgi?id=737216
2014-10-07 12:19:01 +02:00
Ondrej Holy
4c6ef8568d user-accounts: fix language chooser response if language is unknown
If language is unknown and language chooser is cancelled, panel crash
with the following error:

(gnome-control-center:24952): Gtk-CRITICAL **: gtk_list_store_get_path:
assertion 'iter->stamp == priv->stamp' failed

(gnome-control-center:24952): Gtk-CRITICAL **: gtk_list_store_get_value:
assertion 'iter_is_valid (iter, list_store)' failed

(gnome-control-center:24952): GLib-GObject-WARNING **: gtype.c:4221:
type id '0' is invalid

(gnome-control-center:24952): GLib-GObject-WARNING **:
can't peek value table for type '<invalid>' which is not currently referenced
Segmentation fault (core dumped)

https://bugzilla.gnome.org/show_bug.cgi?id=738002
2014-10-07 12:09:43 +02:00
Ondrej Holy
6b3b223668 user-accounts: preset language chooser if language is known
Preset the language chooser similary as it is done in the region panel.
Also remove one goto command and share code.

https://bugzilla.gnome.org/show_bug.cgi?id=738002
2014-10-07 12:08:55 +02:00
Ondrej Holy
6f13d0ad8b user-accounts: fix language chooser response
If the language chooser is confirmed and no language is selected,
"Other..." is shown as user's language and the following error is printed:

(gnome-control-center:14608): AccountsService-CRITICAL **:
act_user_set_language: assertion 'language != NULL' failed
2014-10-07 12:08:38 +02:00
Ondrej Holy
50bed210e5 user-accounts: show correct language if it isn't set
Determine the language for the logged in user if it isn't set in the
acountsservice.

https://bugzilla.gnome.org/show_bug.cgi?id=737216
2014-09-24 18:28:38 +02:00
Ondrej Holy
d82a2101d5 user-accounts & region: allow multiline notifications
The notification is wider then window for some languages (e.g.
France). This patch allows wrapping, limits chars and changes
margin as a result of discussion on #gnome-design.

https://bugzilla.gnome.org/show_bug.cgi?id=703392
2014-09-19 13:35:15 +02:00
Ondrej Holy
c218a2198e user-accounts: replace fingerprint widgets by the UmEditableButton
The patch fixes also a wrong padding and replaces GtkNotebook.

https://bugzilla.gnome.org/show_bug.cgi?id=736009
2014-09-05 13:05:46 +02:00
Ondrej Holy
6ce59765dc user-accounts: fix wrong label padding
Hardcoded value is avoided and the label offset is calculated from
style context now.

https://bugzilla.gnome.org/show_bug.cgi?id=736009
2014-09-05 13:05:46 +02:00
Ondrej Holy
0002313af8 user-accounts: Add restart notification
Show restart notification when language is changed.

https://bugzilla.gnome.org/show_bug.cgi?id=703392
2014-08-07 13:55:37 +02:00
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