Commit graph

20291 commits

Author SHA1 Message Date
Bastien Nocera
3a289fe502 power: Remove unused CcBrightnessScale 2021-07-28 11:55:34 +00:00
Bastien Nocera
bb30b04ed6 power: Remove Brightness scales
From https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1020#note_1211728
"
They are out of place - fine-grained control over brightness isn't what the
power settings are for. As a result, they confuse the settings overall.

In both cases we have alternative controls, through keyboard hot keys or
through the shell's screen brightness slider.
"
2021-07-28 11:55:34 +00:00
Bastien Nocera
fd53f569f1 power: Tweak labels in "Power Saving Options" section
To match the latest mockups.

The lack of subtitles for most of the items in that section made the
section look pretty bizarre.
2021-07-28 11:55:34 +00:00
Bastien Nocera
f03cf178dd power: Remove Bluetooth power switch button
See previous commit.
2021-07-28 11:55:34 +00:00
Bastien Nocera
2f2ea3aed6 power: Remove Wi-Fi and WWAN "power saving" toggles
It's pretty clear from their experiences on smartphones that our users
know that Wi-Fi and other wireless technologies use enough battery that
turning them off is a power saving move.

The switches and text were also pretty confusing as we would be turning
"off" the devices to turn "on" the power saving.
2021-07-28 11:55:34 +00:00
Guido Günther
a2cfd2b341 applications: Ellipsize title label
This makes long appliation names fit on narrow displays without pushing
the "Open in Software" button out.
2021-07-28 11:34:02 +00:00
Alexey Rubtsov
36b671956f Update Russian translation 2021-07-28 10:31:59 +00:00
Jordan Petridis
5cd6efef09
flatpak: Use meson for gsound 2021-07-28 04:48:13 +03:00
Jordan Petridis
f6e122420c
flatpak: build libblockdev without werror 2021-07-28 04:48:13 +03:00
Jordan Petridis
5b75200cfb
flatpak: bundle popt for cryptsetup
Starting with GNOME 41, popt is no longer part of the runtime
2021-07-28 04:48:13 +03:00
Jordan Petridis
5a843f350f
flatpak: update samba
Samba 4.12 complains loudly about a perl yapp driver module. Some
fiddling with the PERL5LIB and PRL_MM_OPT was required in order
to get perl to look into the /app prefix after bundling the module.
2021-07-28 04:46:54 +03:00
Bastien Nocera
93cf2405ee power: Fix logic when showing profile holds
A logic error meant that the power profiles info boxes container
would not be shown if there wasn't a "degraded" performance as well.

Spotted by Allan Day
2021-07-27 15:49:26 +02:00
Jordi Mas
4e6d2cb8f4 Update Catalan translation 2021-07-27 10:23:43 +02:00
Yuri Chornoivan
f485003fc7 Update Ukrainian translation 2021-07-26 17:35:48 +00:00
Bastien Nocera
1144db552e power: Add UI for "power-saver profile when battery is low"
See https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/247
2021-07-26 18:53:20 +02:00
Brandon Nielsen
c3c58aae38 Code cleanup based on feedback. 2021-07-26 16:03:05 +00:00
Brandon Nielsen
a73a095d76 ppd_list is not a copy, don't free it.
Both consumers of PpPPDSelectionDialog (PpNewPrinterDialog,
PpDetailsDialog) free the PPDList they pass to
pp_ppd_selection_dialog_set_ppd_list and they do not pass a copy, so
PpPPDSelectionDialog should not free the pointer on dispose.

This fixes a racy segfault when closing a PpDetailsDialog after PPD
selection (introduced with this series), did not appear with
PpNewPrinterDialog for some reason.
2021-07-26 16:03:05 +00:00
Brandon Nielsen
b19325167d gtk_widget_show over gtk_widget_show_all. 2021-07-26 16:03:05 +00:00
Brandon Nielsen
6223858c5e Formatting cleanup. 2021-07-26 16:03:05 +00:00
Brandon Nielsen
16aa95bdc8 Return a PpNewPrinter instead of PpPrintDevice, use gtk_show_all
pp_new_printer_dialog_get_new_print_device is replaced with
pp_new_printer_dialog_get_new_printer which returns a PpNewPrinter.

gtk_show_all is used instead of gtk_dialog_run for PpNewPrinterDialog
and PpPPDSelectionDialog.

This is in response to feedback:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/930#note_1202114
2021-07-26 16:03:05 +00:00
Brandon Nielsen
179bda1b64 Make PpNewPrinterDialog a GtkDialog instead of GObject
This is accomplished by moving the calls to pp_printer_add_async
directly to CcPrintersPanel. pp_printer_delete_async calls are already
done directly in the CcPrintersPanel so there is consistency gained by
this implementation in addition to PpNewPrinterDialog actually being a
GtkDialog.

A pp_new_printer_dialog_get_new_print_device method has been added to
PpNewPrinterDialog to allow getting the PpPrintDevice selected by the
user to add. This can be called anytime after a response callback
with a GTK_RESPONSE_OK reponse_id.

PpNewPrinterDialog still does asynchronous operations to populate the
dialog, but the create dialog -> receive signal -> destroy dialog flow
can all be handled like a traditional GtkDialog without additional
callbacks or signalling.
2021-07-26 16:03:05 +00:00
Fabio Tomat
aceaa40432 Update Friulian translation 2021-07-24 07:28:33 +00:00
Rafael Fontenelle
7f9d7b5f01 Update Brazilian Portuguese translation 2021-07-23 14:58:20 +00:00
Quentin PAGÈS
2964368759 Update Occitan translation 2021-07-22 17:55:05 +00:00
Jordi Mas
48c45c121b Update Catalan translation 2021-07-22 13:45:12 +02:00
Hugo Carvalho
f79b6e02bf Update Portuguese translation 2021-07-22 10:28:21 +00:00
Bastien Nocera
738c15be66 power: Fix D-Bus proxy leak 2021-07-21 13:53:59 +00:00
Bastien Nocera
f644b37887 ci: Fix gnome-40 CI
Commit f85750274c removed grilo-devel from
the dependency list, but the images generated by the CI on the
development branch are also the ones used for older branches.

This can be seen by all the CI jobs on the gnome-40 branch:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/commits/gnome-40
failing the day after the grilo dep was removed:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/981
2021-07-21 12:48:40 +02:00
Alexey Rubtsov
b74d9456c1 Update Russian translation 2021-07-21 10:21:47 +00:00
Kukuh Syafaat
5b2a622a0d Update Indonesian translation 2021-07-20 13:33:45 +00:00
Yuri Chornoivan
b054bf9194 Update Ukrainian translation 2021-07-20 12:05:48 +00:00
Bastien Nocera
98b921b46f power: Reword lap mode info message
Reword the lap mode info message slightly as the performance mode might
not have been what the user requested, but the warning should stay until
cleared nonetheless.
2021-07-20 00:51:48 +02:00
Bastien Nocera
06d110a3d0 power: Tweak power profile info boxes horizontal spacing
A bit too much whitespace around the info icon.
2021-07-20 00:51:48 +02:00
Bastien Nocera
c0ce1e53ab power: Show power profile info boxes for profile holds
Applications can request that power-profiles-daemon "hold" a particular
power profile for the duration of a task or event, such as launching a
taxing application, or saving power because of low battery.

Show those holds in the same type of info boxes we already use to show
"degraded" performance.

See https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/merge_requests/46
2021-07-20 00:51:48 +02:00
Bastien Nocera
05997b424c power: Move variant_lookup_string() helper function 2021-07-20 00:51:48 +02:00
Bastien Nocera
eda473f0d6 power: Prepare for adding more power profile info boxes
Rename and re-indent the code that adds the power profile info boxes to
prepare for adding more info boxes when needed.
2021-07-20 00:51:48 +02:00
Kukuh Syafaat
0552098a5c Update Indonesian translation 2021-07-17 14:54:53 +00:00
Bastien Nocera
9724d3ef59 power: Handle new power-profiles-daemon API
Handle the new PerformanceDegraded property to replace
PerformanceInhibited.
2021-07-15 22:14:06 +02:00
Bastien Nocera
e5bbe4d7c6 power: Add new power profile info row widget 2021-07-15 22:14:06 +02:00
Bastien Nocera
0f86d4d754 power: Simplify emptying listbox
We do that in a few places.
2021-07-15 14:57:49 +02:00
Bastien Nocera
d35c816508 power: Fix keynav not working
gnome-control-center/panels/power/cc-power-panel.c: In function ‘keynav_failed_cb’:
gnome-control-center/panels/power/cc-power-panel.c:892:50: warning: statement with no effect [-Wunused-value]
  892 |   direction == GTK_DIR_UP ? GTK_DIR_TAB_BACKWARD : GTK_DIR_TAB_FORWARD;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
2021-07-15 13:12:36 +02:00
Philipp Kiemle
e113e51003 Update German translation 2021-07-13 20:57:22 +00:00
Alexander Shopov
fa85528833 Update Bulgarian translation 2021-07-10 15:48:31 +00:00
Alexey Rubtsov
cb26d22afa Update Russian translation 2021-07-05 07:19:23 +00:00
Rafael Fontenelle
6e9e2726f0 Update Brazilian Portuguese translation 2021-07-03 16:10:59 +00:00
Ian Douglas Scott
996e46c620 location: Fix permission store table/id
Updates to match
https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/status/location.js

Should fix
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/885.
2021-07-02 19:18:21 +00:00
Florentina Mușat
5edbf17b4d Update Romanian translation 2021-07-02 16:10:33 +00:00
Matej Urbančič
4fafecf738 Update Slovenian translation 2021-07-02 12:51:17 +00:00
Matej Urbančič
4f49002163 Update Slovenian translation 2021-07-02 12:50:01 +00:00
Hugo Carvalho
ab8e8e01dc Update Portuguese translation 2021-06-25 18:22:12 +00:00