Commit graph

22 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
66ed8916f0
net-device-simple: Remove GObject boilerplate
Now that NetDeviceSimple is cleaned up, switch to
G_DECLARE_DERIVABLE_TYPE() and remove the old style
GObject boilerplate.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
f72e6d2012
net-device-simple: Remove private field from public structure
We can use pointer arithmetics to retrieve the private field.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
a04b8ffba8
net-device-simple: Remove macro to get private field
We can just use the standard, non-deprecated G_DEFINE_TYPE_WITH_PRIVATE
and avoid g_type_class_add_private(), which is deprecated now.
2018-11-05 08:31:50 -02:00
Georges Basile Stavracas Neto
4922f370fb network: Update NetDeviceSimple layout
Following the previous commit, this patch adapts the
NetDeviceSimple layout to be consistent with the other
devices in the Network panel.

This is, however, a temporary solution, for simple devices
will be handled in a separate panel in the future.

https://bugzilla.gnome.org/show_bug.cgi?id=786662
2017-08-23 15:15:52 +02:00
Georges Basile Stavracas Neto
158591a346 network: Replace the notebook with a stack
The Network panel uses a GtkNotebook internally to manage
the different setup pages of the network devices. While it
does the job, we now have a modern widget for that: GtkStack.

With GtkStack, managing the pages becomes a lot easier and
we gain almost for free the nice transition between pages,
besides of course being a widget that consumes slightly less
resources.

Besides all these gains, using a GtkStack will allow us to
implement the new Wi-Fi panel in a more cohesive manner,
sharing large portions of code and avoiding copy pasta.

This commit then turns the GtkNotebook into a GtkStack, and
renames and adapts the code to reflect that. Fortunately,
the code got actually simpler with the move.

https://bugzilla.gnome.org/show_bug.cgi?id=784818
2017-07-17 23:40:58 -03:00
Rui Matos
ca667d9928 network: Avoid crashing if the NMDevice doesn't have a hw-address
The property might not exist and we would g_free() an uninitialized
pointer. Using the proper API avoids all that.

https://bugzilla.gnome.org/show_bug.cgi?id=783839
2017-06-16 19:39:39 +02:00
Bastien Nocera
9183d34947 network: Port to libnm 1.2
We also remove support for WiMAX (now unsupported by NetworkManager),
and InfiniBand (Enterprise feature), and the use of
the deprecated NM_SETTING_WIRELESS_SEC property.

With help from network-manager-applet patches by Jiří Klimeš and
Dan Winship.

https://bugzilla.gnome.org/show_bug.cgi?id=765910
2016-05-27 18:23:33 +02:00
Rui Matos
cd5316b7a7 network: Drop deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Bastien Nocera
40f10f13e6 network: Fix warnings setting mnemonics
Introduced in b5d03b42a0
2013-12-17 11:37:15 +01:00
Vadim Rutkovsky
b5d03b42a0 networking: set mnemonic widget for labels and values in connection details
https://bugzilla.gnome.org/show_bug.cgi?id=719986
2013-12-09 13:45:36 +01:00
Rui Matos
c5b70a7876 network: Remove unused toplevel windows from .ui files
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Kalev Lember
f8f420256b network: Fix a possible crash with no active connections
As a precaution, check the return value of get_active_connections to
avoid dereferencing a NULL pointer.

https://bugzilla.redhat.com/show_bug.cgi?id=990196
https://bugzilla.gnome.org/show_bug.cgi?id=707906
2013-09-11 16:22:01 +02:00
Dan Winship
15baea4720 network: display "device state reason", and remove duplicate code
For disconnected/unavailable devices, show the localized
NMDeviceStateReason next to the localized NMDeviceState (and not in
the tooltip). Also, move the code to do this into panel-common rather
to save some duplication.

https://bugzilla.gnome.org/show_bug.cgi?id=676117
2013-02-11 12:46:49 -05:00
Matthias Clasen
7f13d109d7 network: Sort out symbolic icons
In bug 689638, the designers only asked for the list icons
to be symbolic, not the big icons in the page headings. The
current code was failing on both ends: virtual devices like
vlan still had non-symbolic icons in the list, and several
pages (e.g mobile and proxy) had symbolic icons in the headings.

https://bugzilla.gnome.org/show_bug.cgi?id=693001
2013-02-06 17:54:39 -05:00
Dan Winship
534ad36364 network: don't call inactive devices "Disconnected"
It's confusing to call an ethernet device "disconnected" when it is
plugged in but not in use. Just don't say anything instead.

Also, update the icon logic to show the "disconnected" icon in this
state, rather than the "connected" one, since it's confusing for the
icon to change even though the network connection hasn't been
activated.

https://bugzilla.gnome.org/show_bug.cgi?id=646029
2013-01-31 14:28:48 -05:00
Thomas Bechtold
da75f0f9f5 network: don't show options button on unmanaged interfaces
https://bugzilla.gnome.org/show_bug.cgi?id=692624
2013-01-30 19:46:25 +01:00
Dan Winship
52d28579d2 network: add "virtual device" support, for bonds, bridges, and vlans
Bond, bridge, and VLAN devices may not actually exist until their
connections are brought up. So for those types, create device items
(of type NetVirtualDevice or a subclass) as soon as we see the
NMConnection, and then watch for the NMDevice being added later.

https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05:00
Matthias Clasen
44152f3b79 network: fix a small memory leak 2013-01-09 08:43:50 -05:00
Cosimo Cecchi
57de0ab019 network: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:06 +01:00
Dan Winship
8ba8f2e033 network: add support for showing bond slaves
https://bugzilla.gnome.org/show_bug.cgi?id=677147
2012-10-22 14:55:07 +02:00
Dan Winship
63756458b2 network: disambiguate devices of the same type
If there are multiple devices that would end up with the same name in
the device list, disambiguate their names via new libnm-gtk API.

https://bugzilla.gnome.org/show_bug.cgi?id=677143
2012-10-11 09:22:35 +02:00
Dan Winship
71c0325f28 network: Factor out most of NetDeviceWired, create NetDeviceEthernet
Rename NetDeviceWired to NetDeviceEthernet, but split out most of the
code into a new NetDeviceSimple superclass that can later be used for
other device types that we provide only minimal UI/support for.

https://bugzilla.gnome.org/show_bug.cgi?id=677143
2012-10-11 09:22:35 +02:00
Renamed from panels/network/net-device-wired.c (Browse further)