aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-04-24 02:20:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-04-24 05:05:43 +0800
commit43aa60d4fb9d04efc0beb2b86cbaa75accf8983f (patch)
tree7247e7b42bdbf9ceee65db27a2fba8c84cf828d8 /widgets
parent9b73ae5c7d2c016a3b1f07b1040355063b32814b (diff)
downloadgsoc2013-evolution-43aa60d4fb9d04efc0beb2b86cbaa75accf8983f.tar.gz
gsoc2013-evolution-43aa60d4fb9d04efc0beb2b86cbaa75accf8983f.tar.zst
gsoc2013-evolution-43aa60d4fb9d04efc0beb2b86cbaa75accf8983f.zip
Bug 565780 – Message view is tightly packed and hard to read
Make ETables look more like GtkTreeViews by increasing the vertical padding to 4. If the users revolt, we can add a GtkStyle property to make the padding value adjustable via gtkrc files.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-text.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index ccbc30283c..7aa7fbd119 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -61,6 +61,7 @@
#define d(x)
#define DO_SELECTION 1
#define VIEW_TO_CELL(view) E_CELL_TEXT (((ECellView *)view)->ecell)
+#define VERTICAL_PADDING 4 /* Padding for top and bottom */
#if d(!)0
#define e_table_item_leave_edit_(x) (e_table_item_leave_edit((x)), g_print ("%s: e_table_item_leave_edit\n", __FUNCTION__))
@@ -750,9 +751,9 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
gdk_gc_set_foreground (text_view->gc, foreground);
x1 += 4;
- y1 += 1;
+ y1 += VERTICAL_PADDING;
x2 -= 4;
- y2 -= 1;
+ y2 -= VERTICAL_PADDING;
x_origin = x1 + ect->x + text_view->xofs - (edit ? edit->xofs_edit : 0);
y_origin = y1 + ect->y + text_view->yofs - (edit ? edit->yofs_edit : 0);
@@ -1149,7 +1150,7 @@ ect_height (ECellView *ecell_view, int model_col, int view_col, int row)
layout = generate_layout (text_view, model_col, view_col, row, 0);
pango_layout_get_pixel_size (layout, NULL, &height);
g_object_unref (layout);
- return height + 2;
+ return height + (VERTICAL_PADDING * 2);
}
/*