[Frugalware-darcs] fw-control-center: gnetconfig: do not allow interfaces of inactive profiles to be deactivated.

Priyank priyank at frugalware.org
Thu Jun 28 17:47:38 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070628154608-5ce2c-176a1df2a767009f593cd1a987f3405491276dab.gz;

[gnetconfig: do not allow interfaces of inactive profiles to be deactivated.
Priyank <priyank at frugalware.org>**20070628154608] {
hunk ./gnetconfig/src/gnetconfig-interface.c 697
+	gchar			*profile = NULL;
hunk ./gnetconfig/src/gnetconfig-interface.c 706
+	gtk_combo_box_get_active_iter (GTK_COMBO_BOX(gn_profile_combo), &iter);
+	model = gtk_combo_box_get_model (GTK_COMBO_BOX(gn_profile_combo));
+	gtk_tree_model_get (model, &iter, 1, &profile, -1); 
+	if (strcmp(profile,fwnet_lastprofile())!=0)
+	{
+		gn_error ("This interface cannot be de-activated. It belongs to an inactive profile.");
+		return;
+	}
+
}


More information about the Frugalware-darcs mailing list