11 Commits

Author SHA1 Message Date
Chen Wei
c2bf13581a some Chinese adaptations in combobox of power options
Signed-off-by: Chen Wei <chenwei@xfusion.com>
2022-12-14 11:16:59 +08:00
Chen Wei
fcb0069533 some Chinese adaptations in Thunderbolt panels in devices tab
Signed-off-by: Chen Wei <chenwei@xfusion.com>
2022-12-13 20:07:15 +08:00
Chen Wei
ffd965035b settings: some Chinese adaptations in the system settings
Signed-off-by: Chen Wei <chenwei@xfusion.com>
2022-12-12 21:19:15 +08:00
Chen Wei
1488053d66 power: Correctly lookup or insert new items into combobox
From b5711c59eccb90a547921af6e0f11e5e3dd249f5 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Mon, 5 Nov 2018 13:27:12 +0100
Subject: [PATCH] power: Correctly lookup or insert new items into combobox

The code to lookup or insert items into the combobox had a few issues.
It would assume that the items are sorted, causing existing items to not
be found and be inserted instead. It also would simply forget to insert
an item if it was larger than all existing items.

This code is now changed to iterate over all items, finding the best
insertion point in the process (next item has a larger value, or the
values are not increasing anymore). The item will only be inserted if it
has not been found.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/261

Signed-off-by: Chen Wei <chenwei@xfusion.com>
2022-12-12 16:58:06 +08:00
Chen Wei
75bb9b7db1 power: set no-show-all to TRUE on wifi and mobile rows
The Wi-Fi and mobile broadband row's visibility depends on related
device status. But calling gtk_widget_show_all on the whole list box
makes them visible even related device is not avialbe. Fix that by
setting no-show-all of these two widgets as TRUE.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/189

Signed-off-by: Chen Wei <chenwei@xfusion.com>
2022-12-10 10:58:46 +08:00
jinzhimin369
9e9ca7d8b1 Delete BuildRequires libXxf86misc-devel 2020-08-29 10:31:40 +08:00
songnannan
46ae91d8e2 add gdb in buildrequires 2020-03-20 11:23:14 +08:00
xiaoweiwei
be12326643 fix crashes when retrieving disk size 2020-03-18 20:43:33 +08:00
t_feng
dd5f19d162 remove country in the name of timezone 2020-03-13 21:48:23 +08:00
ruebb
85718592c0 bugfix:old password can not check 2019-12-30 13:16:42 +08:00
songnannan
b76eb1e4c8 init 2019-12-29 16:48:42 +08:00