network-manager-applet r687 - in trunk: . src/connection-editor
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r687 - in trunk: . src/connection-editor
- Date: Thu, 17 Apr 2008 20:36:05 +0100 (BST)
Author: dcbw
Date: Thu Apr 17 20:36:04 2008
New Revision: 687
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=687&view=rev
Log:
2008-04-17 Dan Williams <dcbw redhat com>
* src/connection-editor/nm-connection-editor.c
- (connection_editor_update_connection): save 'autoconnect' back to the
connection
Modified:
trunk/ChangeLog
trunk/src/connection-editor/nm-connection-editor.c
Modified: trunk/src/connection-editor/nm-connection-editor.c
==============================================================================
--- trunk/src/connection-editor/nm-connection-editor.c (original)
+++ trunk/src/connection-editor/nm-connection-editor.c Thu Apr 17 20:36:04 2008
@@ -309,7 +309,7 @@
}
static void
-fill_connection_values (NMConnectionEditor *editor)
+populate_connection_ui (NMConnectionEditor *editor)
{
NMSettingConnection *s_con;
GtkWidget *name;
@@ -402,7 +402,7 @@
}
/* set the UI */
- fill_connection_values (editor);
+ populate_connection_ui (editor);
}
void
@@ -425,13 +425,19 @@
NMSettingConnection *s_con;
GtkWidget *widget;
const char *name;
+ gboolean autoconnect = FALSE;
s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (editor->connection, NM_TYPE_SETTING_CONNECTION));
g_assert (s_con);
widget = glade_xml_get_widget (editor->xml, "connection_name");
name = gtk_entry_get_text (GTK_ENTRY (widget));
- g_object_set (G_OBJECT (s_con), NM_SETTING_CONNECTION_ID, name, NULL);
+ widget = glade_xml_get_widget (editor->xml, "connection_autoconnect");
+ autoconnect = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
+ g_object_set (G_OBJECT (s_con),
+ NM_SETTING_CONNECTION_ID, name,
+ NM_SETTING_CONNECTION_AUTOCONNECT, autoconnect,
+ NULL);
g_slist_foreach (editor->pages, update_one_page, editor->connection);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]