Commit graph

24 commits

Author SHA1 Message Date
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
Robert Ancell
cd813016e4 info-overview: Replace ifdefs with #pragma once 2019-11-27 21:56:10 +00:00
Mohammed Sadiq
b871084080 info-overview: Fix a memory leak 2019-11-08 14:40:23 +05:30
Bastien Nocera
2007a5b240 info: Use new helper to fetch GL/GLES renderers 2019-11-06 09:27:10 +13:00
Bastien Nocera
5f6d5b77ac info: Add helper to print the GL/GLES renderer
This is a simplification of code that used to be in
gnome-session-check-accelerated.
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
3e39feb046 info: No need to put TM and (R) as exponents
The font glyphs already put those characters in the upper right of where
the character should be.
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
Alexandru Năstase
337e1efda0 info: Add 'hostname' keyword to info overview 2019-10-28 20:16:24 +00:00
Robert Ancell
9a2e821fe5 Initialize autoptr values to NULL.
These cases were safe, but if the code changed this risked freeing uninitialized
memory.
2019-10-03 10:58:38 +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
713f138907 info-overview: Drop unused widget IDs 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