Big icon sizes become random

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
dergachev
Posts: 1
Joined: Fri Apr 03, 2009 8:05 am

Big icon sizes become random

Post by dergachev »

I use gentoo, and I compiled the current pcmanfm (0.5, sources from pcmanfm.sourceforge.net) outside portage (it's masked ~x86 anyway) with --disable-hal.

After several times I started pcmanfm, the icons' size got broken: some big icons show up as 16x16, some as 32x32, etc., while 48x48 is set. Files of the same type seem to get equal icons.

Small icons are always handled correctly.

The output to console contains multiple lines similar to this:

Code: Select all

(pcmanfm:13824): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
When I added some debug info

Code: Select all

.....
            y += item->box.height;  /* move to the next row */
        }

        // I MEAN I ADDED THIS LINE
	printf("%d\n",self->icon_size);

        item->icon_rect.x = item->box.x + (item->box.width - self->icon_size) / 2;
        item->icon_rect.y = item->box.y + self->y_pad;

        item->text_rect.x = item->box.x + self->x_pad;
        item->text_rect.y = item->box.y + self->y_pad + self->icon_size + self->spacing;

.....
to the layout-items() function in desktop-window.c, it always prints 48, but icon sizes on desktop are still wrong. So i didn't manage to figure out where is the problem.

Sorry for imperfect english - trying to learn it :roll:
Locked