Commit graph

19039 commits

Author SHA1 Message Date
Philip Chimento
8c08abd0a3 printers: Give printer name fewer characters in width
At the default window size, the printer name label is too wide and
collapses the UI into phone mode. (This is the only panel that shows up
in phone mode by default.) Giving the printer name fewer characters
avoids this.
2019-09-17 07:15:28 +00:00
Philip Chimento
389ee0dfe5 printers: Use CUPS httpConnect2() if available
In CUPS 1.7 httpConnect() and httpConnectEncrypt() were deprecated and
replaced with httpConnect2(). This checks if httpConnect2() is available
and if so, replaces the uses of the deprecated functions.

In the CUPS source code, httpConnect() and httpConnectEncrypt() are now
wrappers around httpConnect2(), so we make sure to use the same
arguments as in the CUPS source code so the two code paths are sure to
be identical:
2c030c7a06/cups/http.c (L412)
2c030c7a06/cups/http.c (L477)
2019-09-16 14:09:40 -07:00
Philip Chimento
96137369a5 build: Fix CUPS PPD deprecation warning
In https://bugzilla.gnome.org/show_bug.cgi?id=696766 it was decided to
build with _PPD_DEPRECATED defined, to suppress the warnings about the
deprecation of the CUPS PPD API, since there was no full replacement
yet. Unfortunately this didn't make it intact through the port to Meson,
so fix it here.
2019-09-16 14:09:40 -07:00
Philip Chimento
c1210c5c65 power: Use up_client_get_devices2()
The previous code would have leaked all the UpDevice objects because no
free function was set on the returned GPtrArray.

Since we already depend on upower-glib 0.99.8 which is the release in
which get_devices() was deprecated and get_devices2() was introduced, we
can simply switch to get_devices2() which does set a free function on
the returned GPtrArray, stopping the leak.
2019-09-16 14:09:40 -07:00
Philip Chimento
9f6af56999 tests: Hide disabled test from compiler
The part where this (currently disabled) test is added, is currently
hidden behind #if 0, so hide the test function as well. Otherwise the
compiler complains that the function isn't used.
2019-09-16 14:09:40 -07:00
Balázs Úr
3fd10e7b8e Update Hungarian translation 2019-09-15 12:45:54 +00:00
Марко Костић
09ffe35507 Update Serbian translation
(cherry picked from commit 33b49951c0)
2019-09-13 19:58:27 +00:00
Josselin Mouette
68d5b340c0 gnome-control-center.desktop: Use the "Settings" category
Use the "Settings" category instead of "System"
as per mentioned in spec-file [1].

Cherry-picked from debian packaging for g-c-c [2].

[1] https://standards.freedesktop.org/menu-spec/latest/apa.html
[2] https://salsa.debian.org/gnome-team/gnome-control-center/blob/debian/1%253.34.0.1-1/debian/patches/01_menu_category.patch
2019-09-13 13:57:30 +00:00
Robert Ancell
e70610fe74 network: Use g_autoptr for unref code 2019-09-13 14:20:50 +12:00
Robert Ancell
1083368008 network: Fix NetworkManager includes 2019-09-13 14:20:50 +12:00
Robert Ancell
a0c758c46b network: Fix D-Bus GVariant leak 2019-09-13 14:20:50 +12:00
Robert Ancell
de84f7e344 network: Use g_autofree for strings 2019-09-13 14:20:50 +12:00
Robert Ancell
b085a8af51 network: Fix string leak 2019-09-13 14:20:50 +12:00
Robert Ancell
01190db349 network: Use g_autoptr for GError handling 2019-09-13 14:20:50 +12:00
Robert Ancell
072d5daf5c network: Add missing warning message about error 2019-09-13 14:20:49 +12:00
Robert Ancell
c27d26e0eb network: Fix GError leaks 2019-09-13 14:15:19 +12:00
Philip Chimento
412472c16d region: Fix crash in keyboard layout population
The previous code would crash if 'variants' was null and 'layouts' had
more than one element in it.
2019-09-12 18:10:20 +00:00
Felipe Borges
1b81221092 sharing: Set new shared folder visible as soon as it gets added
When adding a Shared Folder row to the listbox, we were not settings
it to visible. Causing it to be hidden until the next time the panel
gets populated.

Fixes #580
2019-09-12 11:04:57 +02:00
Benjamin Berg
8d9affbd6a datetime: Allow changing the timezone when auto-update is prohibited
When the user disables the use of location services in the privacy
panel, then the timezone will never be updated automatically. Automatic
timezone may still be enabled though, so we need to allow the user to
change the timezone when location services are disabled or when
automatic timezone updating is disabled.
2019-09-11 18:39:54 +02:00
Marek Černocký
93ea14b892 Updated Czech translation 2019-09-11 17:56:40 +02:00
Rafael Fontenelle
76ea239077 Update Brazilian Portuguese translation
(cherry picked from commit 6c261d552e)
2019-09-11 13:06:41 +00:00
Marek Černocký
177772ac51 Updated Czech translation 2019-09-11 12:08:16 +02:00
Marek Černocký
3141a93b06 Updated Czech translation 2019-09-11 11:47:20 +02:00
Marek Černocký
f19ed00484 Updated Czech translation 2019-09-11 09:53:56 +02:00
Veerasamy Sevagen
9316a77af4 network: Add tooltip text to encrypted connection.
The issue was that sometimes the icon would show an error but we would not know what it is.

Fixes #468
2019-09-11 03:20:55 +00:00
Ting-Wei Lan
d28d317332 user-accounts: Escape the name of the user for markup
On FreeBSD, the default full name of a user is 'User &'. The '&'
character included in the name is expected to be replaced with the login
name when it is displayed on the user interface. However, it seems that
AccountsService doesn't know it. It just returns 'User &' to the caller,
and it causes the markup to be broken in the user panel.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
564aa72b5e user-accounts: Use 'pw usershow' to check username validity on FreeBSD
FreeBSD has no standalone 'usermod' command. Most user and group
management functions are provided as subcommands of 'pw' tool.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
54caab7b07 user-accounts: Initialize GError* to NULL before use
Otherwise, it causes warnings to be shown on the terminal when it is
used and quickly leads to a crash.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
a72a71ab11 user-accounts: Include sys/wait.h for W* macros
Otherwise, the compiler may treat WIFEXITED and WEXITSTATUS as implicit
declarations of functions and cause linking to fail.
2019-09-10 23:32:49 +00:00
Piotr Drąg
7a805a0848 Update POTFILES.in 2019-09-10 17:59:39 +02:00
Florian Müllner
eb3580ee9d media-keys: Handle 'Above_Tab' fake key
Mutter supports the 'Above_Tab' fake keysym that refers to the key
that is physically located above the tab key. It is used in the default
shortcut of the "Switch windows of an application" action.

As gtk_accelerator_parse() doesn't recognize the keysym, we display
the shortcut incorrectly as "disabled", and it is not taken into account
for conflict resolution.

Address this by translating binding that contains the 'Above_Tab' string
to bindings where the string is replaced with each possible keysym that
corresponds to the fixed keycode of KEY_GRAVE + 8.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/581
2019-09-10 13:32:08 +00:00
Georges Basile Stavracas Neto
f43238473a display: Replace CC_DISPLAY_*_GET_PRIVATE
Replace the custom and deprecated CC_DISPLAY_*_GET_PRIVATE by
the automatically generated cc_display_*_get_instance_private
functions.
2019-09-10 11:40:39 +00:00
Kukuh Syafaat
a366c23081 Update Indonesian translation 2019-09-10 07:11:43 +00:00
Robert Ancell
b842a33316 printers: Move callbacks into .ui file 2019-09-10 12:36:39 +12:00
Robert Ancell
015c79411a printers: Use gtk_stack_set_visible_child instead of names 2019-09-10 12:36:39 +12:00
Robert Ancell
0ca1632890 printers: Drop unused GtkBuilder IDs 2019-09-10 12:36:39 +12:00
Robert Ancell
60ea08cc64 printers: Make the options dialog a full widget using GtkTemplate 2019-09-10 12:36:38 +12:00
Robert Ancell
6d23ac0892 printers: Make .ui filename match the .c filename 2019-09-10 12:33:11 +12:00
Robert Ancell
d4b47bd9ff printers: Sort variables 2019-09-10 00:18:53 +00:00
Robert Ancell
1b999f36e2 printers: Use gtk_stack_set_visible_child instead of names 2019-09-10 00:18:53 +00:00
Robert Ancell
2c28987e41 printers: Connect signals in swapped form 2019-09-10 00:18:53 +00:00
Robert Ancell
d4adf67549 printers: use gtk_dialog_run 2019-09-10 00:18:53 +00:00
Robert Ancell
a50ce39689 printers: Drop unused class structure 2019-09-10 00:18:53 +00:00
Robert Ancell
3a027bddd0 printers: Set transient window externally to dialog code 2019-09-10 00:18:53 +00:00
Robert Ancell
7f67f6b24f printers: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2019-09-10 00:18:53 +00:00
Robert Ancell
fcde07c770 printers: Remove pp_details_dialog_free, use gtk_widget_destroy 2019-09-10 00:18:53 +00:00
Robert Ancell
fb92795854 printers: Make .ui filename match the .c filename 2019-09-10 00:18:53 +00:00
Robert Ancell
bfa0f80882 mouse: Use GTK+ widget types 2019-09-10 11:44:23 +12:00
Robert Ancell
f17d0aa819 mouse: Remove unused IDs 2019-09-10 11:44:23 +12:00
Robert Ancell
ef6c7c03ca mouse: Merge CcMouseProperties into CcMousePanel 2019-09-10 11:26:15 +12:00