Commit graph

17417 commits

Author SHA1 Message Date
Marek Kasik
1be3901b67 Printers: Add authentication dialog for print jobs
This commit adds popup dialog to jobs dialog which can be accessed
if there is a print job which needs authentication.
Clicking "Authenticate" button will reveal this dialog
where user can enter credential info for the actual printer
and clicking the "Authenticate" in it will authenticate all
print jobs of this printer which needs authentication info
and will send them for printing.

https://bugzilla.gnome.org/show_bug.cgi?id=758170
2018-02-20 01:13:06 +01:00
Marek Kasik
90e306df20 Printers: Get "job-hold-until" attribute for jobs
Get "job-hold-until" attribute when getting list of jobs. If it has value
"auth-info-required" then get "auth-info-required" attribute of the printer
and store it in PpJob's "auth-info-required" property.

https://bugzilla.gnome.org/show_bug.cgi?id=758170
2018-02-20 01:13:03 +01:00
Marek Kasik
589a1cf615 Printers: Add ability to authenticate print jobs
Add pp_job_authenticate_async() and pp_job_authenticate_finish()
methods for authentication of PpJob.
This commit also adds "auth-info-required" property to PpJob

https://bugzilla.gnome.org/show_bug.cgi?id=758170
2018-02-20 01:12:19 +01:00
Carles Ferrando Garcia
12632f8c88 Update Catalan translation 2018-02-19 05:50:25 +00:00
Mario Blättermann
9c05c196cb Update German translation 2018-02-18 13:03:35 +00:00
Bruce Cowan
ac33b612d5 Update British English translation 2018-02-18 10:54:10 +00:00
Fabio Tomat
230ed44e3c Update Friulian translation 2018-02-17 02:37:54 +00:00
gogo
b878d9fa68 Update Croatian translation 2018-02-16 23:47:37 +00:00
gogo
edbcc91acd Update Croatian translation 2018-02-16 23:41:47 +00:00
Bastien Nocera
015fe8de1d power: Don't treat device batteries as power supplies
Show the "desktop" style dialogue ("Automatic suspend, when idle") even
when we have devices with batteries in use. We need "power supply"
batteries to consider the device as a laptop, or UPS-powered machine.

https://bugzilla.gnome.org/show_bug.cgi?id=793509
2018-02-16 14:40:56 +01:00
Bastien Nocera
6df5cc00ce network: Really really fix cloned MAC support
And now that we're reading a text entry, read the correct one 🙄
Follow-up to a2a70c7
2018-02-16 13:26:13 +01:00
Bastien Nocera
9b9e0e076a network: Don't show "Auto-connect" for VPNs
It's not supported for VPNs.

https://bugzilla.gnome.org/show_bug.cgi?id=792365
2018-02-16 10:52:08 +01:00
Piotr Drąg
1ff4c75eb2 Update Polish translation 2018-02-16 02:07:15 +01:00
Enrico Nicoletto
18cf7ee0e8 Update Brazilian Portuguese translation 2018-02-10 12:09:37 +00:00
Kukuh Syafaat
c34395cdfa Update Indonesian translation 2018-02-09 23:05:56 +00:00
Bastien Nocera
6c3daeaac4 universal-access: Fix possible crash when exiting panel
The gnome-settings-daemon mouse settings (double-click delay) and repeat
keys settings were both missing destroying their GSettings, meaning that
we could crash if the setting changed outside the panel, or when coming
and going to the panel.

https://bugzilla.gnome.org/show_bug.cgi?id=793322
2018-02-09 17:01:36 +01:00
Felipe Borges
2ff5cfd6aa printers: Make the cups connection test cancellable
Currently gnome-control-center could crash whenever a connection
test is interrupted by the disposal of the Printers panel.

Searching in the g-c-c shell for any query that could match the
Printers panel would instantiate the CcPrintersPanel class. Since
we perform a connection test to the printing server as soon as this
object is created, a fast disposal of the panel (by choosing another
search result) would cause the whole application to crash.

https://bugzilla.gnome.org/show_bug.cgi?id=792753
2018-02-09 13:27:25 +01:00
Fran Dieguez
24d1e7f7d2 Update Galician translation 2018-02-09 11:38:20 +00:00
Piotr Drąg
8e2c55df93 Update Polish translation 2018-02-08 04:10:18 +01:00
Marek Cernocky
f9a8b78272 Updated Czech translation 2018-02-07 13:26:58 +01:00
Fabio Tomat
1ab7ff057d Update Friulian translation 2018-02-06 22:04:32 +00:00
Jiri Grönroos
072e643bd7 Update Finnish translation 2018-02-06 21:44:49 +00:00
Felipe Borges
490ec92cdc 3.27.90
Signed-off-by: Felipe Borges <felipeborges@gnome.org>
2018-02-06 18:05:11 +01:00
Daniel Mustieles
371e32f99e Update Spanish translation 2018-02-06 16:12:04 +00:00
Piotr Drąg
47ce893f50 Update POTFILES.in 2018-02-06 16:57:42 +01:00
Piotr Drąg
65e5fa7eef shell: Add gettext-domain to the gschema 2018-02-06 16:56:28 +01:00
Bastien Nocera
0953681d5f user-accounts: Don't translate fprintd copy/paste
We pull the translations directly from fprintd.

https://bugzilla.gnome.org/show_bug.cgi?id=792630
2018-02-06 14:21:47 +01:00
Bastien Nocera
9e6bed424f user-accounts: Update fingerprint strings from fprintd
Meaning that the strings used in the User Accounts panel should now
match the ones used in fprintd, and thus be translated.

https://bugzilla.gnome.org/show_bug.cgi?id=792630
2018-02-06 14:21:47 +01:00
Daniel Mustieles
84eb9b38ae Update Spanish translation 2018-02-06 11:50:47 +00:00
Bastien Nocera
c50d1adb0f network: Don't warn when setting empty IPv4 gateway
Set an empty string when there's no IPv4 gateway rather than warn.
2018-02-06 11:11:56 +01:00
Bastien Nocera
a2a70c7376 network: Really fix clone MAC support
This isn't a container, but a text entry. Bug introduced in commit
6b043fd.
2018-02-06 11:10:53 +01:00
Bastien Nocera
dd8b63bdeb network: Consider empty IPv6 gateway to be valid
The string we get back from the text entries are never NULL (as long as
the UI isn't broken that is), but can be empty strings. Consider an
empty IPv6 address to be invalid, but an empty gateway to be valid.

See https://bugzilla.redhat.com/show_bug.cgi?id=1467308
2018-02-06 10:46:33 +01:00
Bastien Nocera
747accf532 build: Bump the required gnome-desktop version
The version was bumped for GdkColor changes in gnome-desktop, but we
were still dependent on a slightly older version.
2018-02-06 10:42:18 +01:00
Bastien Nocera
a1f57ce50a keyboard: Simplify keyboard grab
https://bugzilla.gnome.org/show_bug.cgi?id=793070
2018-02-06 10:42:18 +01:00
Bastien Nocera
6b043fd3dd network: Fix cloned MAC not being saved for Ethernet
We read the MAC as being the cloned MAC, which NM would likely take to
mean that we didn't want a cloned MAC.

See https://bugzilla.redhat.com/show_bug.cgi?id=1467295

https://bugzilla.gnome.org/show_bug.cgi?id=793072
2018-02-06 10:42:18 +01:00
Bastien Nocera
10738d68c6 shell: Remember the last used panel
And restore it if the application is launched without any panels
requested.

https://bugzilla.gnome.org/show_bug.cgi?id=786607
2018-02-06 10:40:02 +01:00
Piotr Drąg
f092ca00eb Update POTFILES.in 2018-02-05 17:06:53 +01:00
Felipe Borges
028a06ff98 user-accounts: Introduce the new Avatar Chooser popover
This is based in the Avatar Chooser specifications available at
https://wiki.gnome.org/Design/OS/AvatarChooser#Tentative_Design

https://bugzilla.gnome.org/show_bug.cgi?id=766670
2018-02-05 16:18:24 +01:00
Felipe Borges
169a0b3d56 user-accounts: Introduce a UI template for UmPhotoDialog
https://bugzilla.gnome.org/show_bug.cgi?id=766670
2018-02-05 16:18:24 +01:00
Felipe Borges
3fb1c1dca1 user-accounts: Turn UmPhotoDialog in a full GObject
For the new avatar-chooser implementation we will use Gtk+ widget
composite templates.

https://bugzilla.gnome.org/show_bug.cgi?id=766670
2018-02-05 16:17:53 +01:00
Felipe Borges
0f893b7cff user-accounts: Make face images bigger
Now we present 72x72 faces in a 4x4 grid.

https://bugzilla.gnome.org/show_bug.cgi?id=792243
2018-02-05 16:17:10 +01:00
Felipe Borges
ffe5aac838 user-accounts: Update face images
The faces that are included in the users panel are really old,
the style is outdated and they are too small for modern designs
as well as hidpi screens.

https://bugzilla.gnome.org/show_bug.cgi?id=792243
2018-02-05 16:17:10 +01:00
Felipe Borges
db9017bf30 printers: Hide header buttons when there's no printer server
There's no reason to "Unlock" the panel and/or "Add" a new printer
if there's no printer server available.

This patch sets the visibility of the "headerbar-buttons" based on
whether the current visible stack page in the panel is the
"no-cups-page".

https://bugzilla.gnome.org/show_bug.cgi?id=778599
2018-02-05 14:21:05 +01:00
Felipe Borges
34565466a2 printers: Don't show duplicates while renaming printer
During the time it took to rename a printer asynchronously, we had
cases where two entries were shown for the same printer: one with
the old name and another with a new name.

Now we signal from DetailsDialog to the given PrinterEntry which
passes it along to the main panel object. The CcPrintersPanel object
blacklists the renamed printer old name.

https://bugzilla.gnome.org/show_bug.cgi?id=790361
2018-02-05 14:15:10 +01:00
Jordi Mas
3d85b1c219 Update Catalan translation 2018-02-04 16:26:02 +01:00
Aurimas Černius
6e8685a215 Updated Lithuanian translation 2018-02-04 15:27:49 +02:00
Jiri Grönroos
10446f7e25 Update Finnish translation 2018-02-04 09:19:06 +00:00
Ondrej Holy
4e43bd6ce8 user-accounts: Prevent crashes if current user is not in carousel
In a specific cases, current user doesn't have to be returned from
accountsservice, or can be skipped by act_user_is_system_account check.
System users should not be shown. This is expected for root account,
but should not happen with regular user accounts. It needs to be fixed
in accountsservice if you see this happening with regular user accounts.
We have to be just sure that Users panel doesn't crash in such cases
and show all non-system user accounts returned from accountsservice.
Empty page is shown currently only if act_user_manager_list_users
returns nothing, but it has to be also shown if only system accounts
are returned. To fix this issue, do not try to show current user, but
show first user account in carousel instead if there is any. First user
account is current user in normal case.

The patch also fixes problems that current user account is sometimes
selected instead of currently selected user account. This is because
of preselection of first item in um_carousel_add, which causes unwanted
signal emissions...

https://bugzilla.gnome.org/show_bug.cgi?id=773673
2018-02-02 13:40:37 +01:00
Felipe Borges
a701b4646c user-accounts: Introduce an empty state page
There are eventually corner cases where there's no user other than
root in the system and control-center can be launched by the root
user (not recommended). In this cases, the panel crashes without
any user to show (since accountsservice would just list normal
users).

This patch introduces an empty state[0] "No Users Page".

[0] https://wiki.gnome.org/Design/OS/EmptyStates

https://bugzilla.gnome.org/show_bug.cgi?id=773673
2018-02-02 12:49:53 +01:00
Michael Catanzaro
09b94a9b53 user-accounts: Fix definition of MAXNAMELEN
Currently we get MAXNAMELEN from glibc's LOGIN_NAME_MAX, if available,
and sysconf otherwise. But the maximum username length supported by
glibc and the kernel is actually way larger than the maximum length that
actually works in practice. On Linux, anything larger than 32 characters
is not going to fit into utmp, and will therefore be rejected by
useradd. Then gnome-control-center will spit out a confusing error
message dialog.

Let's spare our users from that.

useradd (in shadow-utils) gets its max name size from the following
magic:

 /* Maximum length of usernames */
 #ifdef HAVE_UTMPX_H
 # include <utmpx.h>
 # define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user))
 #else
 # include <utmp.h>
 # ifdef HAVE_STRUCT_UTMP_UT_USER
 #  define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
 # else
 #  ifdef HAVE_STRUCT_UTMP_UT_NAME
 #   define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_name))
 #  else
 #   define USER_NAME_MAX_LENGTH 32
 #  endif
 # endif
 #endif

It's more work than necessary. utmpx is standardized by POSIX (it's
actually an XSI extension), whereas utmp is not, so let's just use
utmpx. This ought to work on at least FreeBSD as well. And if any free
operating systems that care about GNOME don't have utmpx yet, no doubt
they'll send patches.

https://bugzilla.gnome.org/show_bug.cgi?id=724193
2018-02-01 09:32:58 -06:00