]> Dogcows Code - chaz/tint2/commitdiff
tint2conf enabled by default, and switch ELLIPSIZE_END to ELLIPSIZE_MIDDLE
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Mon, 19 Apr 2010 18:15:42 +0000 (18:15 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Mon, 19 Apr 2010 18:15:42 +0000 (18:15 +0000)
configure.ac
src/systray/systraybar.c
src/taskbar/task.c
src/tooltip/tooltip.c

index 4efd9fc5dc98d10c9c00f67b59de08cf72dad1ac..ba5e20ec702b1b3b3e2fc68c2d5ac8bb401649dc 100644 (file)
@@ -31,12 +31,12 @@ AM_CONDITIONAL([INSTALL_EXAMPLES], [test x$examples = xtrue])
 
 # tint2conf
 AC_ARG_ENABLE([tint2conf],
-       [AS_HELP_STRING([--enable-tint2conf], [Enable tint2conf build, a GTK+2 theme switcher for tint2])],
+       [AS_HELP_STRING([--disable-tint2conf], [Disable tint2conf build, a GTK+2 theme switcher for tint2])],
                [case "${enableval}" in
                        yes) tint2conf=true ;;
                        no)  tint2conf=false ;;
-                       *) AC_MSG_ERROR([bad value ${enableval} for --enable-tint2conf]) ;;
-               esac],[tint2conf=false])
+                       *) AC_MSG_ERROR([bad value ${enableval} for --disable-tint2conf]) ;;
+               esac],[tint2conf=true])
 AM_CONDITIONAL([ENABLE_TINT2CONF], [test x$tint2conf = xtrue])
 #
 
index 81eba8f8edac0920c59af99d463b5a6c57bba1f4..53527a828c73b93dc27996bc84b37063795111bb 100644 (file)
@@ -56,7 +56,6 @@ static Pixmap render_background;
 
 void default_systray()
 {
-printf("*** default_systray()\n");
        memset(&systray, 0, sizeof(Systraybar));
        render_background = 0;
        systray.alpha = 100;
index d0b247f3cd67df00eed39c72e62d7aa933940e54..12476bc80250029451aa4354b93f89b6e38db39a 100644 (file)
@@ -353,7 +353,8 @@ void draw_task (void *obj, cairo_t *c)
                /* Drawing width and Cut text */
                // pango use U+22EF or U+2026
                pango_layout_set_width (layout, ((Taskbar*)tsk->area.parent)->text_width * PANGO_SCALE);
-               pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);
+               pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_MIDDLE);
+               //pango_layout_set_wrap(layout, PANGO_WRAP_CHAR);
 
                /* Center text */
                if (panel->g_task.centered) pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
index a724473c397cf4b7cc5ecda5cb8a0c56f65110a9..11b7f3b06dd1f006b580b04e1f7b47224692c4b9 100644 (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);
This page took 0.027252 seconds and 4 git commands to generate.