Commit graph

458 commits

Author SHA1 Message Date
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
946ff4eb3c um-editable-combo: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:24 +01:00
Ondrej Holy
d6a0c18f09 um-editable-button: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:24 +01:00
David King
d3c93d9249 user-accounts: Rename UmCropArea to CcCropArea
Cheese has an internal copy of UmCropArea, and exports the corresponding
um_crop_area_get_type() as part of libcheese-gtk. This leads to a crash
when taking a photo in the avatar chooser, as the control center copy of
the get_type() function is used. Renaming the function in Cheese would
be an ABI break, so at this stage it is best to do the rename in the
control center instead.

https://bugzilla.gnome.org/show_bug.cgi?id=697039
2014-10-15 15:08:46 +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
49e3fe482d user-accounts: be sure widgets has same height
Autologin widgets are different in height as compared with other widgets,
which looks odd. Put all the widgets in the sizegroups, to have same
height.

https://bugzilla.gnome.org/show_bug.cgi?id=737343
2014-09-25 11:50:29 +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
Sandeep Sheshrao Shedmake
8980b82e00 Updated Marathi Translations 2014-09-21 10:00:10 +05:30
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
Matthias Clasen
177166c65b user-accounts: Fix focus in the account dialog
Making containers take focus is almost never right. In this
case, it disrupts the focus chain in the dialog, because the
focus gets stuck on the stack.

https://bugzilla.gnome.org/show_bug.cgi?id=736223
2014-09-12 08:14:26 -04: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
3695f858dd user-accounts: use GtkStack instead of GtkNotebook in Add user dialog
https://bugzilla.gnome.org/show_bug.cgi?id=734422
2014-08-15 17:21:40 +02:00
Ondrej Holy
ed4653627b cc-editable-button: use GtkStack instead of GtkNotebook
https://bugzilla.gnome.org/attachment.cgi?bugid=694325
2014-08-15 17:12:30 +02:00
Ondrej Holy
0f3575b317 user-accounts: avoid removing non-existent GSources
Source id have to be zeroed correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=734548
2014-08-14 13:51:56 +02:00
Ondrej Holy
e4efd5eafd user-accounts: prefill domain entry
If we already have any configured realm, prefill one.

https://bugzilla.gnome.org/show_bug.cgi?id=711675
2014-08-09 14:33:16 +02:00
Ondrej Holy
608fa9609c user-accounts: fix enterprise toggle
Enterprise toggle isn't shown due to header bar buttons. Don't add
the toggle in to the dialog action area to fix the bug.

https://bugzilla.gnome.org/show_bug.cgi?id=734422
2014-08-09 14:33:12 +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
08a00388be user-accounts: fix warning caused by invalid signal 2014-08-07 11:55:43 +02:00
Ondrej Holy
0aff10e509 user-accounts: allow password changing if old password is empty
https://bugzilla.gnome.org/show_bug.cgi?id=733619
2014-08-07 11:50:32 +02:00
Ondrej Holy
f904756f74 user-accounts: allow password changing if old password isn't set
https://bugzilla.gnome.org/show_bug.cgi?id=733619
2014-08-07 11:50:23 +02:00
Ondrej Holy
4f2e590cf5 user-accounts: fix response sensitivity of photo dialog
Preview has to be generated after default handler of "selection-changed"
signal, otherwise dialog response sensitivity is rewritten (Bug 547988).
Preview also has to be generated on "selection-changed" signal to reflect
all changes (Bug 660877).

https://bugzilla.gnome.org/show_bug.cgi?id=721683
2014-07-24 11:40:32 +02:00
Ondrej Holy
924872ba0c user-accounts: do not generate previews for directories
https://bugzilla.gnome.org/show_bug.cgi?id=721683
2014-07-18 18:19:12 +02:00
Ondrej Holy
8d5d712e2c user-accounts: add pixbuf filter for the avatar file chooser
https://bugzilla.gnome.org/show_bug.cgi?id=721683
2014-06-24 13:28:22 +02:00
Ondrej Holy
58c1bbc255 um-editable-combo: use GtkStack instead of GtkNotebook
The mechanism of setting label padding had to be changed consequently.

It fixes following warnings:
(gnome-control-center:32638): Gtk-WARNING **: GtkComboBox 0x28bcef0 is mapped but not child_visible
(gnome-control-center:32638): Gtk-WARNING **: GtkComboBoy 0x28bcef0 is mapped but visible=1 child_visible=0 parent GtkNotebook 0x2b86600 mapped=1

The ugly hack to catch when combo is losing focus had to be also removed
and notify::popup-shown is used instead. It fixes when GtkComboBox is wrongly
shown instead of GtkButton due to escape is pressed or active item is selected.

https://bugzilla.gnome.org/show_bug.cgi?id=694325
2014-06-23 18:23:14 +02:00
Ondrej Holy
06367651d7 user-accounts: replace deprecated gtk_widget_get_state
https://bugzilla.gnome.org/show_bug.cgi?id=731271
2014-06-23 14:13:43 +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
Yosef Or Boczko
7ea4dc158c user-accounts: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730597
2014-05-23 12:31:44 +03:00
Rui Matos
16cd01b304 user-accounts: Don't leak DateTime instances
Before, we were freeing the DateTime instances when closing the dialog
through the close button and always creating new ones on _show().

Now, with the header bar, we go through the delete-event handler which
just hides the dialog, meaning that we leak the dates instanced on
_show().

Clearing the dates on _show() is more robust anyway. Note that we'd
leak even before switching to a header bar when going through the
delete-event handler.

https://bugzilla.gnome.org/show_bug.cgi?id=729181
2014-05-16 11:59:48 +02:00
Debarshi Ray
e168e2a665 user-accounts: Remove unused callback
Fallout from 00dacd5854

https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-29 12:19:09 +02:00
Yosef Or Boczko
4c42f1530f user-accounts: Use header bar in the photo dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Yosef Or Boczko
1470c254c1 user-accounts: Use header bar in the password dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Yosef Or Boczko
5a8a96dcbb user-accounts: Use header bar in the account dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Yosef Or Boczko
00dacd5854 user-accounts: Use header bar in the history dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Ondrej Holy
a53905f030 user-accounts: don't append period at the end of sentence
The period is appended at the end of sentences after there are
translated. However some languages might not use periods at the
end of sentences. This patch changes the texts directly.
2014-04-25 13:05:56 +02:00
Ondrej Holy
5c7c83921a user-accounts: fix password changing
https://bugzilla.gnome.org/show_bug.cgi?id=701701
2014-03-27 13:24:05 +01:00
Ryan Lortie
8bf4f51d1a user-accounts: missing semicolon 2014-02-12 13:27:06 -05:00
Ryan Lortie
07d24bbdab user-accounts: use POSIX for max login name length
Use the POSIX-specified way of determining the maximum length of a valid
username on this system.

https://bugzilla.gnome.org/show_bug.cgi?id=724193
2014-02-12 13:15:29 -05: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
Yosef Or Boczko
b42c0d428b user-accounts: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:34:22 +02:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -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
Rui Matos
d8620d3bc1 user-accounts: Remove no longer used .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:04 +02:00
Rui Matos
3b485b6df2 user-accounts: Don't leak a dialog
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Ondrej Holy
3f8d1ca21e user-accounts: port history dialog to use GtkListBox
Port is necessary to be consistent across panels.

https://bugzilla.gnome.org/show_bug.cgi?id=706239
2013-09-16 13:35:32 +02:00