[gnome-control-center] network: Fix incorrect use of *_get_instance_private
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix incorrect use of *_get_instance_private
- Date: Tue, 22 Oct 2019 20:16:11 +0000 (UTC)
commit ab0be62b7899e084afe2918f1590f2c7f0b242d1
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Oct 18 11:58:18 2019 +1300
network: Fix incorrect use of *_get_instance_private
These classes don't have a private structure, but the misuse didn't seem to be
causing a specific issue.
panels/network/net-proxy.c | 2 --
panels/network/net-vpn.c | 2 --
2 files changed, 4 deletions(-)
---
diff --git a/panels/network/net-proxy.c b/panels/network/net-proxy.c
index 26533057d..d5ebb7af7 100644
--- a/panels/network/net-proxy.c
+++ b/panels/network/net-proxy.c
@@ -296,8 +296,6 @@ net_proxy_init (NetProxy *proxy)
g_autoptr(GError) error = NULL;
guint i;
- proxy = net_proxy_get_instance_private (proxy);
-
proxy->builder = gtk_builder_new ();
gtk_builder_add_from_resource (proxy->builder,
"/org/gnome/control-center/network/network-proxy.ui",
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 717e234ec..6a3d35a04 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -412,8 +412,6 @@ net_vpn_init (NetVpn *vpn)
g_autoptr(GError) error = NULL;
GtkWidget *widget;
- vpn = net_vpn_get_instance_private (vpn);
-
vpn->builder = gtk_builder_new ();
gtk_builder_add_from_resource (vpn->builder,
"/org/gnome/control-center/network/network-vpn.ui",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]