tint2conf enabled by default, and switch ELLIPSIZE_END to ELLIPSIZE_MIDDLE

git-svn-id: http://tint2.googlecode.com/svn/trunk@433 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-04-19 18:15:42 +00:00
parent 85c90699c8
commit af80193e89
4 changed files with 6 additions and 6 deletions

View File

@@ -231,7 +231,7 @@ void tooltip_update()
pango_layout_get_pixel_extents(layout, &r1, &r2);
pango_layout_set_width(layout, width*PANGO_SCALE);
pango_layout_set_height(layout, height*PANGO_SCALE);
pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_END);
pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_MIDDLE);
// I do not know why this is the right way, but with the below cairo_move_to it seems to be centered (horiz. and vert.)
cairo_move_to(c, -r1.x/2+g_tooltip.bg->border.width+g_tooltip.paddingx, -r1.y/2+g_tooltip.bg->border.width+g_tooltip.paddingy);
pango_cairo_show_layout (c, layout);