Two things here. First is a patch adding a UI widget, a checkbox labeled "Trusted Network", to the "Connect to Other Networks" dialog. By default unchecked, checking the box will mark the network as trusted. Also attached is a simple utility for marking/unmarking an existing network as trusted. Use is simple: $ ./nm-set-trusted <network> <true|false> Yes, we need a wireless networks editor. I agree with you all. Robert Love
Attachment:
nm-set-trusted
Description: application/shellscript
Index: gnome/applet/applet.glade =================================================================== RCS file: /cvs/gnome/NetworkManager/gnome/applet/applet.glade,v retrieving revision 1.4.2.8 diff -u -r1.4.2.8 applet.glade --- gnome/applet/applet.glade 29 May 2006 03:35:15 -0000 1.4.2.8 +++ gnome/applet/applet.glade 7 Jun 2006 17:14:18 -0000 @@ -426,7 +426,7 @@ <child> <widget class="GtkTable" id="table1"> <property name="visible">True</property> - <property name="n_rows">4</property> + <property name="n_rows">5</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> @@ -548,8 +548,8 @@ <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> - <property name="top_attach">2</property> - <property name="bottom_attach">3</property> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> @@ -569,8 +569,8 @@ <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> - <property name="top_attach">2</property> - <property name="bottom_attach">3</property> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> <property name="x_options">fill</property> <property name="y_options">fill</property> </packing> @@ -589,9 +589,31 @@ <packing> <property name="left_attach">0</property> <property name="right_attach">2</property> - <property name="top_attach">3</property> - <property name="bottom_attach">4</property> + <property name="top_attach">4</property> + <property name="bottom_attach">5</property> + <property name="x_options">fill</property> + </packing> + </child> + + <child> + <widget class="GtkCheckButton" id="trusted_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">_Trusted Network</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> + </widget> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> <property name="x_options">fill</property> + <property name="y_options"></property> </packing> </child> </widget> Index: gnome/applet/other-network-dialog.c =================================================================== RCS file: /cvs/gnome/NetworkManager/gnome/applet/other-network-dialog.c,v retrieving revision 1.29.2.1 diff -u -r1.29.2.1 other-network-dialog.c --- gnome/applet/other-network-dialog.c 27 Mar 2006 16:02:10 -0000 1.29.2.1 +++ gnome/applet/other-network-dialog.c 7 Jun 2006 17:14:18 -0000 @@ -410,19 +410,24 @@ WirelessSecurityOption * opt; GtkComboBox * security_combo; GtkTreeIter iter; + GtkWidget * trusted_button; char * str; NetworkDevice * dev; + gboolean trusted; gtk_combo_box_get_active_iter (GTK_COMBO_BOX (combo), &iter); gtk_tree_model_get (model, &iter, NAME_COLUMN, &str, DEV_COLUMN, &dev, -1); + trusted_button = glade_xml_get_widget (xml, "trusted_button"); + trusted = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (trusted_button)); + security_combo = GTK_COMBO_BOX (glade_xml_get_widget (xml, "security_combo")); opt = wsm_get_option_for_active (wsm, security_combo); if (create_network) nma_dbus_create_network (applet->connection, dev, essid, opt); else - nma_dbus_set_device (applet->connection, dev, essid, FALSE, opt); + nma_dbus_set_device (applet->connection, dev, essid, trusted, opt); } }