Mercurial > pidgin.yaz
comparison src/buddy.c @ 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 | 315ef59a5031 |
comparison
equal
deleted
inserted
replaced
4796:15f4f0ae5d5e | 4797:9561a1104131 |
---|---|
837 } | 837 } |
838 | 838 |
839 if (b->evil > 0) | 839 if (b->evil > 0) |
840 warning = g_strdup_printf(_("Warned (%d%%) "), b->evil); | 840 warning = g_strdup_printf(_("Warned (%d%%) "), b->evil); |
841 | 841 |
842 if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS) | 842 if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS) { |
843 text = g_strdup_printf("<span color='dim grey'>%s</span>\n<span color='dim grey' size='smaller'>%s%s%s</span>", | 843 text = g_strdup_printf("<span color='dim grey'>%s</span>\n<span color='dim grey' size='smaller'>%s%s%s</span>", |
844 esc, | 844 esc, |
845 statustext != NULL ? statustext : "", | 845 statustext != NULL ? statustext : "", |
846 idletime != NULL ? idletime : "", | 846 idletime != NULL ? idletime : "", |
847 warning != NULL ? warning : ""); | 847 warning != NULL ? warning : ""); |
848 else | 848 } else if (statustext == NULL && idletime == NULL && warning == NULL) { |
849 text = g_strdup_printf("%s", esc); | |
850 } else { | |
849 text = g_strdup_printf("%s\n<span color='dim grey' size='smaller'>%s%s%s</span>", esc, | 851 text = g_strdup_printf("%s\n<span color='dim grey' size='smaller'>%s%s%s</span>", esc, |
850 statustext != NULL ? statustext : "", | 852 statustext != NULL ? statustext : "", |
851 idletime != NULL ? idletime : "", | 853 idletime != NULL ? idletime : "", |
852 warning != NULL ? warning : ""); | 854 warning != NULL ? warning : ""); |
855 } | |
853 if (idletime) | 856 if (idletime) |
854 g_free(idletime); | 857 g_free(idletime); |
855 if (warning) | 858 if (warning) |
856 g_free(warning); | 859 g_free(warning); |
857 if (statustext) | 860 if (statustext) |
962 g_object_set(rend, "ypad", 0, NULL); | 965 g_object_set(rend, "ypad", 0, NULL); |
963 | 966 |
964 rend = gtk_cell_renderer_text_new(); | 967 rend = gtk_cell_renderer_text_new(); |
965 column = gtk_tree_view_column_new_with_attributes("Name", rend, "markup", NAME_COLUMN, NULL); | 968 column = gtk_tree_view_column_new_with_attributes("Name", rend, "markup", NAME_COLUMN, NULL); |
966 gtk_tree_view_append_column(GTK_TREE_VIEW(gtkblist->treeview), column); | 969 gtk_tree_view_append_column(GTK_TREE_VIEW(gtkblist->treeview), column); |
967 g_object_set(rend, "ypad", 0, NULL); | 970 g_object_set(rend, "ypad", 0, "yalign", 0.5, NULL); |
968 | 971 |
969 rend = gtk_cell_renderer_text_new(); | 972 rend = gtk_cell_renderer_text_new(); |
970 gtkblist->warning_column = gtk_tree_view_column_new_with_attributes("Warning", rend, "markup", WARNING_COLUMN, NULL); | 973 gtkblist->warning_column = gtk_tree_view_column_new_with_attributes("Warning", rend, "markup", WARNING_COLUMN, NULL); |
971 gtk_tree_view_append_column(GTK_TREE_VIEW(gtkblist->treeview), gtkblist->warning_column); | 974 gtk_tree_view_append_column(GTK_TREE_VIEW(gtkblist->treeview), gtkblist->warning_column); |
972 g_object_set(rend, "xalign", 1.0, "ypad", 0, NULL); | 975 g_object_set(rend, "xalign", 1.0, "ypad", 0, NULL); |