network-manager-applet r1078 - branches/NETWORKMANAGER_APPLET_0_7/src



Author: dcbw
Date: Thu Dec 18 19:45:33 2008
New Revision: 1078
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1078&view=rev

Log:
Hide connection combo for wired 802.1x connections

Modified:
   branches/NETWORKMANAGER_APPLET_0_7/src/wired-dialog.c

Modified: branches/NETWORKMANAGER_APPLET_0_7/src/wired-dialog.c
==============================================================================
--- branches/NETWORKMANAGER_APPLET_0_7/src/wired-dialog.c	(original)
+++ branches/NETWORKMANAGER_APPLET_0_7/src/wired-dialog.c	Thu Dec 18 19:45:33 2008
@@ -70,16 +70,20 @@
 	gtk_widget_hide (glade_xml_get_widget (xml, "security_combo_label"));
 	gtk_widget_hide (glade_xml_get_widget (xml, "security_combo"));
 
+	/* The dialog won't ever get called for more than one connection for wired */
+	gtk_widget_hide (glade_xml_get_widget (xml, "connection_label"));
+	gtk_widget_hide (glade_xml_get_widget (xml, "connection_combo"));
+
 	gtk_window_set_title (GTK_WINDOW (glade_xml_get_widget (xml, "wireless_dialog")),
-						  _("Wired 802.1X authentication"));
+	                      _("Wired 802.1X authentication"));
 
 	dialog_set_network_name (connection, GTK_ENTRY (glade_xml_get_widget (xml, "network_name_entry")));
 	security = dialog_set_security (connection, glade_file, GTK_BOX (glade_xml_get_widget (xml, "security_vbox")));
 	wireless_security_set_changed_notify (security, stuff_changed_cb, glade_xml_get_widget (xml, "ok_button"));
 
 	g_object_set_data_full (G_OBJECT (dialog),
-							"security", security,
-							(GDestroyNotify) wireless_security_unref);
+	                        "security", security,
+	                        (GDestroyNotify) wireless_security_unref);
 
 	gtk_window_set_icon_name (GTK_WINDOW (dialog), "dialog-password");
 	widget = glade_xml_get_widget (xml, "image1");
@@ -119,8 +123,8 @@
 	}
 
 	g_object_set_data_full (G_OBJECT (dialog),
-							"connection", g_object_ref (connection),
-							(GDestroyNotify) g_object_unref);
+	                        "connection", g_object_ref (connection),
+	                        (GDestroyNotify) g_object_unref);
 
 	return dialog;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]