Commit graph

20 commits

Author SHA1 Message Date
Robert Ancell
e74a41794c info-overview: Remove unnecessary initialization of string.
Was introduced in 4d5f81e, but doesn't make sense or do anything.
2020-04-21 10:02:17 +12:00
Bastien Nocera
4d5f81e996 info-overview: Verify data coming from switcheroo-control
Don't crash if the data coming from switcheroo-control is somehow
garbage, and make sure that we actually got pairs of key-values.

Closes: #944
2020-04-08 14:13:45 +02:00
Felipe Borges
20566947ee info-overview: Set "Rename" button insensitive if no changes are made
Fixes #879
2020-02-28 15:43:44 +01:00
Bastien Nocera
783c13d0cc info: Fix sorting of GPU descriptions when there's more than one
Not that it makes that much of a difference, but none of the GPUs we
listed were marked as the default one. The variable that holds the
boolean variant was also changed to make it clearer that it held the
value rather than was a value.
2019-12-03 12:42:55 +01:00
Bastien Nocera
2007a5b240 info: Use new helper to fetch GL/GLES renderers 2019-11-06 09:27:10 +13:00
Bastien Nocera
2e17bc7516 info: Fix Graphics text with NVidia drivers or >2 GPUs
Use switcheroo-control to get the list of GPUs. For each one of the GPUs
listed, switcheroo-control will give us environment variable we should
set before running our helper to be able to get the renderer from it.

This means that it will finally work when one of the GPUs is driven
with the NVidia drivers, as switcheroo-control sets the correct envvars
for this driver, and that we also support more than 2 GPUs.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/601
2019-11-06 09:27:10 +13:00
Bastien Nocera
212e406d7f info: Remove "x11 or wayland" check
This check was added when Wayland support was added, so we wouldn't
try to run an X11-only helper. The helper now supports Wayland, and
gnome-control-center (and GNOME) only supports X11 and Wayland. In fact,
we always want to run that code.
2019-11-05 16:38:49 +01:00
Bastien Nocera
e121dbcebc info: Add windowing system field
This is supposed to give information that's not easily accessible to an
end user otherwise. It's supposed to give information "at a glance" and
should be removed when X11 is removed.
2019-11-04 18:59:27 -03:00
Mohammed Sadiq
8821a37ed2 info: Implement new design
This is based on the design at
https://teams.pages.gitlab.gnome.org/Design/web-experiments/settings/about
2019-10-29 10:13:23 +13:00
Robert Ancell
8a36c515e9 info-overview: Drop private structure
This class is not extended, so doesn't need it.
2019-10-29 09:47:41 +13:00
Robert Ancell
74740f5001 info-overview: Use GTK widget types 2019-09-25 13:50:28 +00:00
Robert Ancell
6815787012 info-overview: Simplify UDisks code
The client was stored in the class, but only used once at the time it was
acquired. All calls are sync.
2019-09-25 13:50:28 +00:00
Robert Ancell
01ffa51dc6 info-overview: Drop unused cancellable
It wasn't used and there were no async calls to connect it to.
2019-09-25 13:50:28 +00:00
Robert Ancell
12c95ab891 info-overview: Simplify getting graphics string
Previous code used a strucure with one element and stored it even though it was
only used once at the point it was determined.
2019-09-25 13:50:28 +00:00
Robert Ancell
85da3bc062 info-overview: Drop unused data from panel class.
The variables are stored in the panel but only used once. Two of them are never
used.
2019-09-25 13:50:28 +00:00
Robert Ancell
9fba05a287 info-overview: Move signal handler code into UI file 2019-09-25 13:50:28 +00:00
Robert Ancell
5f2081fe46 info-overview: Give appropriate name to widget 2019-09-25 13:50:28 +00:00
Robert Ancell
8e9e84853d info-overview: Drop unnecessary grid reordering code
When the virtualization widgets are hidden, the following widets don't need to
move up. This seems to be due to the orignal author thinking this was required
or a bug in GTK rendering a double space between these rows.
2019-09-25 13:50:28 +00:00
Robert Ancell
8f8924b067 info-overview: Drop unused reference to system image 2019-09-25 13:50:28 +00:00
Robert Ancell
b02a49cfc6 info: Rename info panel to info-overview for consistency 2019-09-09 21:52:08 +00:00
Renamed from panels/info/cc-info-overview-panel.c (Browse further)