diff options
author | Dan Winship <danw@gnome.org> | 2013-02-19 09:32:28 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-02-19 09:32:28 -0500 |
commit | 2f537f4e5a6c122bba04cc2b043134f6c887cf55 (patch) | |
tree | e9d06e719897a4526553d5c09c2c0d165c96131e /src/connection-editor/page-vlan.c | |
parent | 37cc714c9f21f302b302d6214233a7d2ae6b1fec (diff) | |
download | network-manager-applet-2f537f4e5a6c122bba04cc2b043134f6c887cf55.tar.gz |
connection-editor: remove redundant casts
In the libglade -> gtkbuilder migration, lots of places ended up with
double typecasts. (eg, GTK_BUTTON (GTK_WIDGET (...))). Fix those.
Diffstat (limited to 'src/connection-editor/page-vlan.c')
-rw-r--r-- | src/connection-editor/page-vlan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/connection-editor/page-vlan.c b/src/connection-editor/page-vlan.c index 3e5537bd..ef553274 100644 --- a/src/connection-editor/page-vlan.c +++ b/src/connection-editor/page-vlan.c @@ -86,13 +86,13 @@ vlan_private_init (CEPageVlan *self) gtk_widget_show_all (GTK_WIDGET (priv->parent)); /* Set mnemonic widget for parent label */ - label = GTK_LABEL (GTK_WIDGET (gtk_builder_get_object (builder, "vlan_parent_label"))); + label = GTK_LABEL (gtk_builder_get_object (builder, "vlan_parent_label")); gtk_label_set_mnemonic_widget (label, GTK_WIDGET (priv->parent)); - priv->id_entry = GTK_SPIN_BUTTON (GTK_WIDGET (gtk_builder_get_object (builder, "vlan_id_entry"))); - priv->name_entry = GTK_ENTRY (GTK_WIDGET (gtk_builder_get_object (builder, "vlan_name_entry"))); - priv->cloned_mac = GTK_ENTRY (GTK_WIDGET (gtk_builder_get_object (builder, "vlan_cloned_mac_entry"))); - priv->mtu = GTK_SPIN_BUTTON (GTK_WIDGET (gtk_builder_get_object (builder, "vlan_mtu"))); + priv->id_entry = GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "vlan_id_entry")); + priv->name_entry = GTK_ENTRY (gtk_builder_get_object (builder, "vlan_name_entry")); + priv->cloned_mac = GTK_ENTRY (gtk_builder_get_object (builder, "vlan_cloned_mac_entry")); + priv->mtu = GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "vlan_mtu")); } static void |