Comment 16 for bug 414353

Revision history for this message
Iain Buclaw (iainb) wrote :

Hmm, perhaps I have a different issue, this is what I've found so far in the behaviour of the netbook-launcher iconview on a Samsung N110.

Res: 640x480
 2 Columns
 3 Rows per group of icons
 All icons showing. (Albeit, with a large gap after every third row)

Res: 800x600
 3 Columns
 3 Rows
 Only first 9 icons showing. (With a large gap on the bottom (3rd) row)

Res: 1024x600
 4 Columns
 3 Rows
 Only first 12 icons showing. (With a large gap on the bottom (4th) row)

This behaviour seems to coincide with these functions in nl-config.c

static gint
get_rows_for_height (gint height)
{
  gint rows = 3;

  if (height < 600)
    rows = 3;
  else if (height < 1025)
    rows = 4;
  else
    rows = 5;

  return rows;
}

static gint
get_cols_for_width (gint width)
{
  gint cols = 3;

  if (width < 801)
    cols = 3;
  else if (width < 1025)
    cols = 4;
  else
    cols = 5;

  return cols;
}

But altering them seems to make no difference?

Can anyone confirm?

Regards
Iain