# HG changeset patch # User Rob Flynn # Date 1047789581 0 # Node ID 9561a11041314ad91bb51766c6cc7e85ec938287 # Parent 15f4f0ae5d5e89f01228b9f1c0682c618dc8aa97 [gaim-migrate @ 5117] I think this looks a lot better. The top vertical alignment was driving me nuts. committer: Tailor Script diff -r 15f4f0ae5d5e -r 9561a1104131 src/buddy.c --- 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("%s\n%s%s%s", 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%s%s%s", 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);