[gnome-control-center] network: fix initial sensitivity of editor "Add" button
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: fix initial sensitivity of editor "Add" button
- Date: Thu, 14 Feb 2013 19:43:48 +0000 (UTC)
commit dcb932bd9dde60e3856461789dcc2f5e21b8f914
Author: Dan Winship <danw gnome org>
Date: Wed Feb 13 15:22:27 2013 -0500
network: fix initial sensitivity of editor "Add" button
The "only make Apply/Add sensitive if something changed" rule should
not apply to new connections; they are already "changed".
https://bugzilla.gnome.org/show_bug.cgi?id=693659
.../connection-editor/net-connection-editor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/connection-editor/net-connection-editor.c
b/panels/network/connection-editor/net-connection-editor.c
index 3e667e8..07705c9 100644
--- a/panels/network/connection-editor/net-connection-editor.c
+++ b/panels/network/connection-editor/net-connection-editor.c
@@ -502,6 +502,7 @@ net_connection_editor_set_connection (NetConnectionEditor *editor,
button = GTK_WIDGET (gtk_builder_get_object (editor->builder, "details_apply_button"));
gtk_button_set_label (GTK_BUTTON (button), _("_Add"));
+ editor->is_changed = TRUE;
}
editor->connection = nm_connection_duplicate (connection);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]