X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Flauncher%2Flauncher.c;h=cf9e1365ea541d630590c7d491db39688ecbd9b1;hp=0cb9fc88157a800355f2efd73b54cdfbebf89747;hb=c929b4afa0049f43fd31927680303d3516f6e84f;hpb=90eae1e7be4621a84a0253c3048790523f0c8375 diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c index 0cb9fc8..cf9e136 100644 --- a/src/launcher/launcher.c +++ b/src/launcher/launcher.c @@ -199,10 +199,7 @@ int resize_launcher(void *obj) } } - count = 0; - for (l = launcher->list_icons; l ; l = l->next) { - count++; - } + count = g_slist_length(launcher->list_icons); if (panel_horizontal) { if (!count) launcher->area.width = 0; @@ -228,7 +225,7 @@ int resize_launcher(void *obj) } int i, posx, posy; - int start = launcher->area.bg->border.width + launcher->area.paddingy;// +marging/2; + int start = launcher->area.bg->border.width + launcher->area.paddingy + marging/2; if (panel_horizontal) { posy = start; posx = launcher->area.bg->border.width + launcher->area.paddingxlr; @@ -243,6 +240,7 @@ int resize_launcher(void *obj) launcherIcon->y = posy; launcherIcon->x = posx; + //printf("launcher %d : %d,%d\n", i, posx, posy); if (panel_horizontal) { if (i % icons_per_column) posy += icon_size + launcher->area.paddingx;