[gnome-control-center] network: Remove unused function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Remove unused function
- Date: Tue, 5 Nov 2019 23:05:28 +0000 (UTC)
commit 9327a5f4d1c30a5a52f325021ad1c980b81d68ff
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Oct 23 10:56:48 2019 +1300
network: Remove unused function
panels/network/net-device-simple.c | 32 --------------------------------
panels/network/net-device-simple.h | 4 ----
2 files changed, 36 deletions(-)
---
diff --git a/panels/network/net-device-simple.c b/panels/network/net-device-simple.c
index c8cc3745b..0b1e70d32 100644
--- a/panels/network/net-device-simple.c
+++ b/panels/network/net-device-simple.c
@@ -37,7 +37,6 @@ typedef struct
GtkBox *box;
GtkLabel *device_label;
GtkSwitch *device_off_switch;
- GtkGrid *grid;
GtkButton *options_button;
GtkSeparator *separator;
@@ -232,7 +231,6 @@ net_device_simple_init (NetDeviceSimple *self)
priv->box = GTK_BOX (gtk_builder_get_object (priv->builder, "box"));
priv->device_label = GTK_LABEL (gtk_builder_get_object (priv->builder, "device_label"));
priv->device_off_switch = GTK_SWITCH (gtk_builder_get_object (priv->builder, "device_off_switch"));
- priv->grid = GTK_GRID (gtk_builder_get_object (priv->builder, "grid"));
priv->options_button = GTK_BUTTON (gtk_builder_get_object (priv->builder, "options_button"));
priv->separator = GTK_SEPARATOR (gtk_builder_get_object (priv->builder, "separator"));
@@ -260,33 +258,3 @@ net_device_simple_new (CcPanel *panel,
"id", id,
NULL);
}
-
-void
-net_device_simple_add_row (NetDeviceSimple *self,
- const char *label_string,
- const char *property_name)
-{
- NetDeviceSimplePrivate *priv = net_device_simple_get_instance_private (self);
- GtkWidget *label, *value;
- GtkStyleContext *context;
- gint top_attach;
-
- label = gtk_label_new (label_string);
- gtk_widget_set_halign (label, GTK_ALIGN_END);
- gtk_container_add (GTK_CONTAINER (priv->grid), label);
-
- context = gtk_widget_get_style_context (label);
- gtk_style_context_add_class (context, "dim-label");
- gtk_widget_show (label);
-
- gtk_container_child_get (GTK_CONTAINER (priv->grid), label,
- "top-attach", &top_attach,
- NULL);
-
- value = gtk_label_new (NULL);
- gtk_widget_set_halign (value, GTK_ALIGN_START);
- g_object_bind_property (self, property_name, value, "label", 0);
- gtk_label_set_mnemonic_widget (GTK_LABEL (label), value);
- gtk_grid_attach (priv->grid, value, 1, top_attach, 1, 1);
- gtk_widget_show (value);
-}
diff --git a/panels/network/net-device-simple.h b/panels/network/net-device-simple.h
index e6e368e50..277474dd8 100644
--- a/panels/network/net-device-simple.h
+++ b/panels/network/net-device-simple.h
@@ -42,10 +42,6 @@ NetDeviceSimple *net_device_simple_new (CcPanel *panel,
NMDevice *device,
const gchar *id);
-void net_device_simple_add_row (NetDeviceSimple *device_simple,
- const char *label,
- const char *property_name);
-
void net_device_simple_set_show_separator (NetDeviceSimple *device_simple,
gboolean show_separator);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]