changeset 5781:c8837160add6

[gaim-migrate @ 6206] I still think this looks better. Now that Sean put the icons next to the screenname (didn't he just tell me that was a bad idea?), we can get the Accounts dialog back into the design it used to be in. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 07 Jun 2003 01:00:26 +0000
parents a9029bed0479
children 087b4b5abe35
files src/gtkaccount.c
diffstat 1 files changed, 14 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Sat Jun 07 00:43:28 2003 +0000
+++ b/src/gtkaccount.c	Sat Jun 07 01:00:26 2003 +0000
@@ -46,9 +46,9 @@
 {
 	COLUMN_ICON,
 	COLUMN_SCREENNAME,
-	COLUMN_PROTOCOL,
 	COLUMN_ONLINE,
 	COLUMN_AUTOLOGIN,
+	COLUMN_PROTOCOL,
 	COLUMN_DATA,
 	NUM_COLUMNS
 };
@@ -1424,16 +1424,6 @@
 	dialog->screenname_col = column;
 	gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
 
-	/* Protocol name */
-	column = gtk_tree_view_column_new();
-	gtk_tree_view_column_set_title(column, _("Protocol"));
-	gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1);
-
-	renderer = gtk_cell_renderer_text_new();
-	gtk_tree_view_column_pack_start(column, renderer, TRUE);
-	gtk_tree_view_column_add_attribute(column, renderer,
-					   "text", COLUMN_PROTOCOL);
-
 	/* Online? */
 	renderer = gtk_cell_renderer_toggle_new();
 	
@@ -1456,7 +1446,16 @@
 			renderer, "active", COLUMN_AUTOLOGIN, NULL);
 
 	gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1);
-	g_object_set(renderer, "xalign", 0.0, "xpad", 10, NULL);
+
+	/* Protocol name */
+	column = gtk_tree_view_column_new();
+	gtk_tree_view_column_set_title(column, _("Protocol"));
+	gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1);
+
+	renderer = gtk_cell_renderer_text_new();
+	gtk_tree_view_column_pack_start(column, renderer, TRUE);
+	gtk_tree_view_column_add_attribute(column, renderer,
+					   "text", COLUMN_PROTOCOL);
 }
 
 static void
@@ -1535,10 +1534,10 @@
 	gtk_widget_show(sw);
 
 	/* Create the list model. */
-	dialog->model = gtk_list_store_new(NUM_COLUMNS, GDK_TYPE_PIXBUF,
-									   G_TYPE_STRING, G_TYPE_STRING,
+	dialog->model = gtk_list_store_new(NUM_COLUMNS,
+									   GDK_TYPE_PIXBUF, G_TYPE_STRING,
 									   G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
-									   G_TYPE_POINTER);
+									   G_TYPE_STRING, G_TYPE_POINTER);
 
 	/* And now the actual treeview */
 	treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model));