changeset 4797:9561a1104131

[gaim-migrate @ 5117] I think this looks a lot better. The top vertical alignment was driving me nuts. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 16 Mar 2003 04:39:41 +0000
parents 15f4f0ae5d5e
children 0c95a3731244
files src/buddy.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sun Mar 16 04:20:33 2003 +0000
+++ b/src/buddy.c	Sun Mar 16 04:39:41 2003 +0000
@@ -839,17 +839,20 @@
 	if (b->evil > 0)
 		warning = g_strdup_printf(_("Warned (%d%%) "), b->evil);
 
-	if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS)
+	if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS) {
 		text =  g_strdup_printf("<span color='dim grey'>%s</span>\n<span color='dim grey' size='smaller'>%s%s%s</span>",
 					esc,
 					statustext != NULL ? statustext : "",
 					idletime != NULL ? idletime : "", 
 					warning != NULL ? warning : "");
-	else
+	} else if (statustext == NULL && idletime == NULL && warning == NULL) {
+		text = g_strdup_printf("%s", esc);
+	} else {
 		text = g_strdup_printf("%s\n<span color='dim grey' size='smaller'>%s%s%s</span>", esc,
 				       statustext != NULL ? statustext :  "",
 				       idletime != NULL ? idletime : "", 
 				       warning != NULL ? warning : "");
+	}
 	if (idletime)
 		g_free(idletime);
 	if (warning)
@@ -964,7 +967,7 @@
 	rend = gtk_cell_renderer_text_new();
 	column = gtk_tree_view_column_new_with_attributes("Name", rend, "markup", NAME_COLUMN, NULL);
 	gtk_tree_view_append_column(GTK_TREE_VIEW(gtkblist->treeview), column);
-	g_object_set(rend, "ypad", 0, NULL);
+	g_object_set(rend, "ypad", 0, "yalign", 0.5, NULL);
 
 	rend = gtk_cell_renderer_text_new();
 	gtkblist->warning_column = gtk_tree_view_column_new_with_attributes("Warning", rend, "markup", WARNING_COLUMN, NULL);