Robert Ancell
b3e372becd
network: Convert NetProxy to GtkTemplate
...
This whole widget was added to a size group with some elements of the mobile
devices. This seems a mistake, but can be added back later if found to be
necessary.
2019-11-06 10:40:23 +13:00
Robert Ancell
7b01c11840
network: Convert NetDeviceWifi to GtkTemplate
2019-11-06 10:40:23 +13:00
Robert Ancell
7e84af0d6d
network: Remove net_object_emit_changed
...
Turns out nothing was actually listening to it.
2019-11-06 10:40:23 +13:00
Robert Ancell
a39ebd5bda
network: Remove net_object_get/set_title
2019-11-06 10:40:23 +13:00
Robert Ancell
2752f38a72
network: Remove net_object_emit_removed
2019-11-06 10:40:23 +13:00
Robert Ancell
577762b60c
network: Remove NetDevice class
...
We don't need the NetObject/NetDevice class separation anymore
2019-11-06 10:16:40 +13:00
Robert Ancell
1c92cf4844
network: Remove net_device_get_nm_device
2019-11-06 10:16:40 +13:00
Robert Ancell
aba79986a5
network: Use a hash table to map NM device objects to our objects
2019-11-06 10:16:40 +13:00
Robert Ancell
0197654177
network: Move helper functions into panel-common.c
2019-11-06 10:16:40 +13:00
Robert Ancell
1a0b9b628a
network: Call method directly instead of via virtual method
2019-11-06 10:16:40 +13:00
Robert Ancell
50c4c805d4
network: Store VPNs separately to other network devices
...
This simplifies a lot of class checks.
2019-11-06 10:16:40 +13:00
Robert Ancell
51df8ccf15
network: Remove unused enum
2019-11-06 10:16:40 +13:00
Robert Ancell
4e5b7faf23
network: Don't add proxies to the device list - nothing every reads them back
2019-11-06 10:16:40 +13:00
Robert Ancell
a88f1b1bad
network: Use function instead of GObject property getter
2019-11-06 10:16:40 +13:00
Robert Ancell
5244b01326
network: Merge together methods
...
A method was public, and not being used. Simplify the case it's used in.
2019-11-06 10:16:40 +13:00
Robert Ancell
2b3c6ea3e4
network: Don't use refresh virtual method for VPN objects
...
The refresh is only called internally
2019-11-06 10:16:40 +13:00
Robert Ancell
06e38dac90
network: Tidy up use of modem object in NetDeviceMobile
2019-11-06 10:16:40 +13:00
Robert Ancell
6207f84ba2
network: Remove unused code
2019-11-06 10:16:39 +13:00
Robert Ancell
29734b599c
network: Remove net_object_get_client
...
Better handled inside each object.
2019-11-06 10:16:39 +13:00
Robert Ancell
d7e17ca02f
network: Replace method with a helper function.
...
This removes a case where an object was being temporarily created just to use
this mehtod.
2019-11-06 10:16:39 +13:00
Robert Ancell
966cb97d45
network: Remove net_object_get_cancellable
...
Only a few objects need it
2019-11-06 10:16:39 +13:00
Robert Ancell
5e4ca84c4c
network: Use correct type iterating over list
...
The list only contains one type of object.
2019-11-06 10:16:39 +13:00
Robert Ancell
c74d26bf3a
network: Remove NetObject id property
...
This is better handled by comparing objects.
2019-11-06 10:16:39 +13:00
Robert Ancell
696e2c7617
network: Remove unused GObject data
2019-11-06 10:16:39 +13:00
Robert Ancell
0b3ce1e15d
network: Remove net_object_get_panel
...
It was only being used for WiFi devices
2019-11-06 10:16:39 +13:00
Robert Ancell
76de0ce408
network: Simplify net_object_add_to_stack function
...
Except in the WiFi case it was creating a stack with one child.
All the non-WiFi cases had the same logic.
2019-11-06 10:16:39 +13:00
Robert Ancell
8335c088ec
network: Simplify handling bluetooth devices
2019-11-06 10:16:39 +13:00
Robert Ancell
a7e3f314e6
network: Rename NetDeviceSimple to NetDeviceBluetooth
...
It's only being used for bluetooth connections.
2019-11-06 10:16:39 +13:00
Robert Ancell
e90ed2df8a
network: Stop NetDeviceEthernet deriving from NetDeviceSimple
...
It overrode everything anyway.
2019-11-06 10:16:39 +13:00
Robert Ancell
9327a5f4d1
network: Remove unused function
2019-11-06 10:16:20 +13:00
Robert Ancell
d68cb14837
network: Remove unused virtual method
2019-11-06 10:16:20 +13:00
Robert Ancell
0c92c7b461
network: Replace g_object_new with constructors
2019-11-06 10:16:20 +13:00
Robert Ancell
0b481bfb83
network: Remove if statement that is always true
2019-11-06 10:16:20 +13:00
Robert Ancell
6c473c2e14
network: Remove unused net_device_new function
2019-11-06 10:16:20 +13:00
Robert Ancell
6ab75da5c6
network: Use g_clear_pointer
2019-11-06 10:16:20 +13:00
Robert Ancell
8f722a31de
network: Fix missing GtkWidget cast
2019-11-06 10:16:18 +13:00
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
Daniel Mustieles
1ea019d7ef
Updated Spanish translation
2019-11-05 15:34:24 +01:00
Robert Ancell
cd377768f5
Avoid warnings where G_LOG_DOMAIN is overriden
...
Undefine the value before overriding it to avoid the following warnings:
../panels/background/cc-background-chooser.c:22: warning: "G_LOG_DOMAIN" redefined
2019-11-04 22:12:05 +00: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
Danial Behzadi
dba1e59e95
Update Persian translation
2019-11-03 12:32:50 +00:00
Diego Escalante Urrelo
3a1d6295cd
power: Stop the brightness slider from jumping
...
The GtkScale widget for screen brightness has a tendency to jump around
because GtkRange defaults to NOT rounding values (round_digits = -1).
This means that the widget is constantly set with values that have
decimals (say 10.3) which it then tries to correct to fit the step size.
The solution for this particular UI quirk is to make sure to set
round-digits to 0, as that will force GtkRange to provide GtkScale with
rounded-down numbers. See gtkrange.c.
Fixes: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/405
2019-10-31 20:05:12 +00:00
Robert Ancell
4376140183
common: Make the privileged group configurable (i.e. wheel vs sudo)
...
Fixes #559
2019-10-31 03:34:28 +00:00
Robert Ancell
d61d13d4e3
network: Hide edit connection buttons if nm-connection-editor not installed
2019-10-31 01:46:19 +00:00
Iain Lane
b5ff6d1b21
cc-search-locations: Use g_new0
instead of the slice allocator
2019-10-30 16:07:18 +00:00
Iain Lane
2c8cce0dcc
search: Factor out creation of Place
objects.
...
If we always construct these objects via a constructor, then we can help
to avoid bugs like that fixed by
2fb0ff250b
.
2019-10-30 16:07:14 +00:00