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

Priyank priyank at frugalware.org
Thu Jun 28 17:42:12 CEST 2007


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

[gnetconfig: do not allow interfaces of inactive profiles to be activated.
Priyank <priyank at frugalware.org>**20070628154045] {
hunk ./gnetconfig/src/gnetconfig-interface.c 636
+	gchar			*profile = NULL;
hunk ./gnetconfig/src/gnetconfig-interface.c 646
+	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 activated. It belongs to an inactive profile.");
+		return;
+	}
+
}


More information about the Frugalware-darcs mailing list