aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-cell-text.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-13 22:39:13 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-13 22:39:13 +0800
commit6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317 (patch)
tree8ebee5432533bb35834cbbea0b75f6ed5d110938 /widgets/e-table/e-cell-text.c
parentc9bdd525e41cd0e2392da161dde2cf6aa72d8b4d (diff)
downloadgsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.tar
gsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.tar.gz
gsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.tar.bz2
gsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.tar.lz
gsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.tar.xz
gsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.tar.zst
gsoc2013-evolution-6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317.zip
Clip the contained text.
2000-06-13 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Clip the contained text. * e-table-group-container.c: Did a first pass at grouped printing. This works, but there's no fancy boxes or headers around the groups. * e-table-item.c: Added will_fit function and added quantize function to _height. svn path=/trunk/; revision=3552
Diffstat (limited to 'widgets/e-table/e-cell-text.c')
-rw-r--r--widgets/e-table/e-cell-text.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/widgets/e-table/e-cell-text.c b/widgets/e-table/e-cell-text.c
index 9495ce86a9..7fe9cc1815 100644
--- a/widgets/e-table/e-cell-text.c
+++ b/widgets/e-table/e-cell-text.c
@@ -1167,9 +1167,23 @@ ect_print (ECellView *ecell_view, GnomePrintContext *context,
} else {
string = e_table_model_value_at (ecell_view->e_table_model, model_col, row);
}
- gnome_print_moveto(context, 0, (height - gnome_font_get_ascender(font) + gnome_font_get_descender(font)) / 2);
+ gnome_print_gsave(context);
+ if (gnome_print_moveto(context, 2, 2) == -1)
+ /* FIXME */;
+ if (gnome_print_lineto(context, width - 2, 2) == -1)
+ /* FIXME */;
+ if (gnome_print_lineto(context, width - 2, height - 2) == -1)
+ /* FIXME */;
+ if (gnome_print_lineto(context, 2, height - 2) == -1)
+ /* FIXME */;
+ if (gnome_print_lineto(context, 2, 2) == -1)
+ /* FIXME */;
+ if (gnome_print_clip(context) == -1)
+ /* FIXME */;
+ gnome_print_moveto(context, 2, (height - gnome_font_get_ascender(font) + gnome_font_get_descender(font)) / 2);
gnome_print_setfont(context, font);
gnome_print_show(context, string);
+ gnome_print_grestore(context);
if (ect->filter) {
g_free(string);
}
@@ -1180,7 +1194,7 @@ ect_print_height (ECellView *ecell_view, GnomePrintContext *context,
int model_col, int view_col, int row,
double width)
{
- return 12;
+ return 16;
}
/*