Commit graph

68 commits

Author SHA1 Message Date
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
Richard Hughes
ccf5d0028c user-accounts: Switch from UmStrengthBar to CcStrengthBar 2012-02-14 17:00:24 +00:00
Robert Ancell
bbef732913 user-accounts: Port to GDBus (excluding fingerprint code)
https://bugzilla.gnome.org/show_bug.cgi?id=622875
2012-02-08 12:18:11 +00:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Matthias Clasen
314df488b7 user-accounts: Improve tooltips
Don't speak about 'deleting users'. Instead, use the term
'user account' consistently.

https://bugzilla.gnome.org/show_bug.cgi?id=661765
2011-10-25 17:56:44 +01:00
Matthias Clasen
bae25a142f user-accounts: Make unlock icon in tooltip match reality 2011-10-25 17:56:03 +01:00
Matthias Clasen
f56f4a503d users: Fix life-cycle issues
We were leaking various references, leading to failures to populate
the list upon reloading, or to segfaults. With this commit, all
created user objects, as well as the user-manager object are
finalized when the panel is unloaded.
2011-08-25 23:45:38 -04:00
Matthias Clasen
64419bf3c9 users: prevent autologin for disabled users
gdm can't handle this currently, so prevent this situation
from happening. Forcibly turning off the autologin when an
account is disabled is a slightly odd side-effect, but
good enough in practice.

https://bugzilla.gnome.org/show_bug.cgi?id=649816
2011-08-25 12:43:22 -04:00
Bastien Nocera
222bd72be8 user-accounts: Add translator comments for split line
https://bugzilla.gnome.org/show_bug.cgi?id=657168
2011-08-25 17:34:58 +01:00
Matthias Clasen
9e02793982 common: Add a region mode to the language chooser
In this mode, locales are primarily represented by their
region component, instead of their language component.
2011-08-22 14:29:55 -04:00
Matthias Clasen
60c8f11a12 user: Move the language chooser to common
It will soon be used in the region panel as well.
2011-08-22 14:29:52 -04:00
Matthias Clasen
eaec9ce362 user: Add a filter entry to the language dialog
This makes the dialog more similar to the layout add dialog
in the region panel, where we want to use it eventually as
well.
2011-08-22 14:29:51 -04:00
Matthias Clasen
d8bbb0af66 users: don't add a lockbutton
Instead, implement get_permission to get a lockbutton
in the toolbar.

https://bugzilla.gnome.org/show_bug.cgi?id=650292
2011-05-23 16:10:04 +01:00
David Benjamin
61623a1f66 user-accounts: don't call gtk_main_quit if AccountService is unavailable
Just desensitize the panel and call it a day.

https://bugzilla.gnome.org/show_bug.cgi?id=648969
2011-05-16 15:35:08 +01:00
Bastien Nocera
ac5bc2da75 user-accounts: Move UmEditableEntry to lib
So it can be reused in the printers panel.

Also see:
https://bugzilla.gnome.org/show_bug.cgi?id=649511
2011-05-13 13:44:55 +01:00
Bastien Nocera
f66e7bb4dd user-accounts: Fix bug when name is changed to contain markup
When changing to a "display name" that contains markup, such
as "Foo & Bar", the code to update the user list on the left
wasn't escaping the text correctly.
2011-05-12 18:45:58 +01:00
Bastien Nocera
8c6221a567 user-accounts: Use GTK+ lock button 2011-05-07 17:47:13 +01:00
Bastien Nocera
5fdc90cc8b 2.91.91
Fix wrong include lines, so distcheck works
2011-03-08 11:59:16 +00:00
Matthias Clasen
14e503fa2c User accounts: Get the invisible char to use from GTK+
https://bugzilla.gnome.org/show_bug.cgi?id=643103
2011-02-24 03:25:53 +00:00
Bastien Nocera
3336eb9d88 lib: Add a lock button
Instead of using a copy/pasted version, until GTK+ includes
such a button itself.
2011-02-23 14:59:21 +00:00
Cosimo Cecchi
0132e4be37 all: make GCC stop complaining about set but unused variables 2011-02-04 15:43:40 -05:00
William Jon McCann
36043e66ef user-accounts: set a minimum size for the panel 2011-01-30 10:57:23 -05:00
William Jon McCann
053f0f3709 user-accounts: use junction sides to connect toolbar and list 2011-01-26 15:08:15 -05:00
Bastien Nocera
ffb0f5aca6 user-accounts: Move idle hack to password dialogue
We had a hack to show the dialogue ASAP, and fill it in later. Now,
we have the list of existing languages populated when showing the
dialogue, and then populate it in an idle.
2011-01-25 18:45:02 +00:00
Matthias Clasen
5bc0d75d5c Remove one remaining use of gdk_cursor_unref 2011-01-25 00:33:57 -05:00
Matthias Clasen
4c2e26307f Drop some deprecated GTK+ api 2011-01-25 00:32:10 -05:00
Matthias Clasen
15bdbbfd97 Revert accidental commit 2011-01-24 23:17:54 -05:00