Revision 1058 src/summaryview.c
| summaryview.c (revision 1058) | ||
|---|---|---|
| 2061 | 2061 |
GdkPixbuf *unread_pix = NULL; |
| 2062 | 2062 |
GdkPixbuf *mime_pix = NULL; |
| 2063 | 2063 |
GdkColor *foreground = NULL; |
| 2064 |
gboolean use_bold = FALSE;
|
|
| 2064 |
PangoWeight weight = PANGO_WEIGHT_NORMAL;
|
|
| 2065 | 2065 |
MsgFlags flags; |
| 2066 | 2066 |
GdkColor color; |
| 2067 | 2067 |
gint color_val; |
| ... | ... | |
| 2124 | 2124 |
|
| 2125 | 2125 |
if (prefs_common.bold_unread) {
|
| 2126 | 2126 |
if (MSG_IS_UNREAD(flags)) |
| 2127 |
use_bold = TRUE;
|
|
| 2127 |
weight = PANGO_WEIGHT_BOLD;
|
|
| 2128 | 2128 |
else if (gtk_tree_model_iter_has_child(GTK_TREE_MODEL(store), |
| 2129 | 2129 |
iter)) {
|
| 2130 | 2130 |
GtkTreePath *path; |
| ... | ... | |
| 2134 | 2134 |
if (!gtk_tree_view_row_expanded |
| 2135 | 2135 |
(GTK_TREE_VIEW(summaryview->treeview), path) && |
| 2136 | 2136 |
summary_have_unread_children(summaryview, iter)) |
| 2137 |
use_bold = TRUE;
|
|
| 2137 |
weight = PANGO_WEIGHT_BOLD;
|
|
| 2138 | 2138 |
gtk_tree_path_free(path); |
| 2139 | 2139 |
} |
| 2140 | 2140 |
} |
| ... | ... | |
| 2165 | 2165 |
S_COL_TO, NULL, |
| 2166 | 2166 |
|
| 2167 | 2167 |
S_COL_FOREGROUND, foreground, |
| 2168 |
S_COL_BOLD, use_bold,
|
|
| 2168 |
S_COL_BOLD, weight,
|
|
| 2169 | 2169 |
-1); |
| 2170 | 2170 |
|
| 2171 | 2171 |
if (subject_s) |
| ... | ... | |
| 2259 | 2259 |
prefs_common.bold_unread && |
| 2260 | 2260 |
summary_have_unread_children(summaryview, &iter)) {
|
| 2261 | 2261 |
gtk_tree_store_set(store, &iter, |
| 2262 |
S_COL_BOLD, TRUE, -1); |
|
| 2262 |
S_COL_BOLD, |
|
| 2263 |
PANGO_WEIGHT_BOLD, -1); |
|
| 2263 | 2264 |
} |
| 2264 | 2265 |
} |
| 2265 | 2266 |
|
| ... | ... | |
| 2850 | 2851 |
!gtk_tree_view_row_expanded(treeview, path) && |
| 2851 | 2852 |
!summary_have_unread_children(summaryview, &iter)) {
|
| 2852 | 2853 |
gtk_tree_store_set(GTK_TREE_STORE(model), &iter, |
| 2853 |
S_COL_BOLD, FALSE, -1); |
|
| 2854 |
S_COL_BOLD, |
|
| 2855 |
PANGO_WEIGHT_NORMAL, -1); |
|
| 2854 | 2856 |
} |
| 2855 | 2857 |
} |
| 2856 | 2858 |
} |
| ... | ... | |
| 2894 | 2896 |
path)) |
| 2895 | 2897 |
gtk_tree_store_set |
| 2896 | 2898 |
(GTK_TREE_STORE(model), &iter, |
| 2897 |
S_COL_BOLD, FALSE, -1); |
|
| 2899 |
S_COL_BOLD, |
|
| 2900 |
PANGO_WEIGHT_NORMAL, -1); |
|
| 2898 | 2901 |
gtk_tree_path_free(path); |
| 2899 | 2902 |
} |
| 2900 | 2903 |
} |
| ... | ... | |
| 4844 | 4847 |
G_TYPE_UINT, |
| 4845 | 4848 |
G_TYPE_POINTER, |
| 4846 | 4849 |
GDK_TYPE_COLOR, |
| 4847 |
G_TYPE_BOOLEAN);
|
|
| 4850 |
G_TYPE_INT);
|
|
| 4848 | 4851 |
|
| 4849 | 4852 |
#define SET_SORT(col, func) \ |
| 4850 | 4853 |
gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store), \ |
| ... | ... | |
| 4890 | 4893 |
(column, renderer, \ |
| 4891 | 4894 |
# type, col, \ |
| 4892 | 4895 |
"foreground-gdk", S_COL_FOREGROUND, \ |
| 4893 |
"weight-set", S_COL_BOLD, \
|
|
| 4896 |
"weight", S_COL_BOLD, \
|
|
| 4894 | 4897 |
NULL); \ |
| 4895 |
gtk_cell_renderer_text_set_fixed_height_from_font \ |
|
| 4896 |
(GTK_CELL_RENDERER_TEXT(renderer), 1); \ |
|
| 4897 |
g_object_set(G_OBJECT(renderer), \ |
|
| 4898 |
"weight", PANGO_WEIGHT_BOLD, NULL); \ |
|
| 4899 | 4898 |
gtk_tree_view_column_set_resizable(column, TRUE); \ |
| 4900 | 4899 |
} \ |
| 4901 | 4900 |
gtk_tree_view_column_set_alignment(column, align); \ |
| ... | ... | |
| 5509 | 5508 |
GET_MSG_INFO(msginfo, iter); |
| 5510 | 5509 |
if (!MSG_IS_UNREAD(msginfo->flags)) {
|
| 5511 | 5510 |
gtk_tree_store_set(summaryview->store, iter, |
| 5512 |
S_COL_BOLD, FALSE, -1);
|
|
| 5511 |
S_COL_BOLD, PANGO_WEIGHT_NORMAL, -1);
|
|
| 5513 | 5512 |
} |
| 5514 | 5513 |
|
| 5515 | 5514 |
valid = gtk_tree_model_iter_children(model, &child, iter); |
| ... | ... | |
| 5542 | 5541 |
{
|
| 5543 | 5542 |
if (prefs_common.bold_unread && |
| 5544 | 5543 |
summary_have_unread_children(summaryview, iter)) {
|
| 5545 |
gtk_tree_store_set(summaryview->store, iter, S_COL_BOLD, TRUE,
|
|
| 5546 |
-1); |
|
| 5544 |
gtk_tree_store_set(summaryview->store, iter, |
|
| 5545 |
S_COL_BOLD, PANGO_WEIGHT_BOLD, -1);
|
|
| 5547 | 5546 |
} |
| 5548 | 5547 |
} |
| 5549 | 5548 |
|
Also available in: Unified diff