[Frugalware-darcs] fw-control-center: gnetconfig: interface list now also shows the type of connection.

Priyank priyank at frugalware.org
Thu Jul 5 11:07:46 CEST 2007


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

[gnetconfig: interface list now also shows the type of connection.
Priyank <priyank at frugalware.org>**20070705090343] {
hunk ./gnetconfig/glade/gnetconfig.glade 3
-<!--Generated with glade3 3.2.2 on Tue Jun 26 16:29:20 2007 by priyank at priyank-->
+<!--Generated with glade3 3.2.2 on Thu Jul  5 14:20:52 2007 by priyank at priyank-->
hunk ./gnetconfig/src/gnetconfig-interface.c 147
-	gn_profile_desc = glade_xml_get_widget (xml, "fwn_profile_desc");
+	gn_profile_desc		= glade_xml_get_widget (xml, "fwn_profile_desc");
hunk ./gnetconfig/src/gnetconfig-interface.c 154
-	gtk_window_set_title(GTK_WINDOW(gn_main_window), PACKAGE_STRING);
-	gtk_window_set_title(GTK_WINDOW(gn_interface_dialog), _("Configure interface"));
-
+	gtk_window_set_title (GTK_WINDOW(gn_main_window), PACKAGE_STRING);
+	gtk_window_set_title (GTK_WINDOW(gn_interface_dialog), _("Configure interface"));
hunk ./gnetconfig/src/gnetconfig-interface.c 173
-	gtk_tree_view_column_set_min_width (column, 120);
+	gtk_tree_view_column_set_min_width (column, 50);
+	g_object_set (G_OBJECT(column), "spacing", 5, NULL);
+	gtk_tree_view_append_column (GTK_TREE_VIEW(gn_interface_treeview), column);
+	
+	renderer = gtk_cell_renderer_text_new ();
+	column = gtk_tree_view_column_new_with_attributes ("IF_Desc",
+							renderer,
+							"text", 2,
+							NULL);
+	gtk_tree_view_column_set_resizable (column, FALSE);
+	gtk_tree_view_column_set_min_width (column, 150);
hunk ./gnetconfig/src/gnetconfig-interface.c 190
-							"pixbuf", 2,
+							"pixbuf", 3,
hunk ./gnetconfig/src/gnetconfig-interface.c 198
-							"text", 3,
+							"text", 4,
hunk ./gnetconfig/src/gnetconfig-interface.c 203
-	store = gtk_list_store_new (4, GDK_TYPE_PIXBUF, G_TYPE_STRING, GDK_TYPE_PIXBUF, G_TYPE_STRING);
+	store = gtk_list_store_new (5,
+				GDK_TYPE_PIXBUF,	/* connection tye pixbuf */
+				G_TYPE_STRING, 		/* interface name */
+				G_TYPE_STRING,		/* connection type */
+				GDK_TYPE_PIXBUF,	/* status pixbuf */
+				G_TYPE_STRING);		/* status text */
hunk ./gnetconfig/src/gnetconfig-interface.c 435
+		/* set description of the interface */
+		if (fwnet_is_wireless_device(interface->name))
+			if (fwnet_is_dhcp(interface))
+				gtk_list_store_set (store, &iter, 2, _("Wireless Connection / DHCP"), -1);
+			else
+				gtk_list_store_set (store, &iter, 2, _("Wireless Connection / Static IP"), -1);
+		else if (fwnet_is_dhcp(interface))
+			gtk_list_store_set (store, &iter, 2, _("Wired Connection / DHCP"), -1);
+		else
+			gtk_list_store_set (store, &iter, 2, _("Wired Connection / Static IP"), -1);
+
hunk ./gnetconfig/src/gnetconfig-interface.c 450
-				gtk_list_store_set (store, &iter, 2, up_pixbuf, 3, " UP", -1);
+				gtk_list_store_set (store, &iter, 3, up_pixbuf, 4, " UP", -1);
hunk ./gnetconfig/src/gnetconfig-interface.c 452
-				gtk_list_store_set (store, &iter, 2, dn_pixbuf, 3, " DOWN", -1);
+				gtk_list_store_set (store, &iter, 3, dn_pixbuf, 4, " DOWN", -1);
hunk ./gnetconfig/src/gnetconfig-interface.c 456
-			gtk_list_store_set (store, &iter, 2, dn_pixbuf, 3, " DOWN", -1);
+			gtk_list_store_set (store, &iter, 3, dn_pixbuf, 4, " DOWN", -1);
}


More information about the Frugalware-darcs mailing list