Skip to content

Commit

Permalink
Revert "2010-07-21 Lin Ma <Lin.Ma@Sun.COM>"
Browse files Browse the repository at this point in the history
This reverts commit 4c5168c.

Conflicts:

	common/nwamui_ncu.c
  • Loading branch information
pyhalov committed Dec 13, 2014
1 parent 2622600 commit 9a599aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
* capplet/nwam_profile_dialog.c (nwam_connection_cell_func): Fixed
16600 [NWAM] Show Wired/Wireless in Edit Connections dialog

2010-07-21 Lin Ma <Lin.Ma@Sun.COM>

* common/nwamui_ncu.c (nwamui_object_real_commit),
(nwamui_object_real_set_enabled): I think disable a NCU should set
'enabled' prop to false for every NCU subobject.

2010-07-21 Lin Ma <Lin.Ma@Sun.COM>

* capplet/main.c:
Expand Down
9 changes: 2 additions & 7 deletions common/nwamui_ncu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,9 +1658,7 @@ nwamui_object_real_commit( NwamuiObject *object )
if (i == NWAM_NCU_CLASS_IP) {
nwamui_ncu_sync_handle_with_ip_data(self);
/* doo 12653, if user disable both ipv4/v6, disable IP NCU simplely. */
if (!prv->ipv4_active && !prv->ipv6_active) {
prv->enabled = FALSE;
}
prv->enabled = (prv->ipv4_active || prv->ipv6_active);
}

if ((nerr = nwam_ncu_commit(prv->ncu_handles[i], 0)) != NWAM_SUCCESS) {
Expand Down Expand Up @@ -2798,10 +2796,7 @@ nwamui_object_real_set_enabled(NwamuiObject *object, gboolean enabled)
if (self->prv->enabled != enabled) {
self->prv->enabled = enabled;
g_object_notify(G_OBJECT(object), "enabled" );
/* doo#16546 Make sure set_enabled happens on every object. */
for (i = 0; i < NWAM_NCU_CLASS_ANY; i++) {
set_modified_flag(self, i, TRUE );
}
set_modified_flag( self, NWAM_NCU_CLASS_PHYS, TRUE );
}
}

Expand Down

0 comments on commit 9a599aa

Please sign in to comment.