libseed-list Mx.Table not shown properly



Hi, 
working with Mx.Table I stumbled across the issue that Mx.Table was not
displayed at all. Running the same code with gjs worked perfectly well.
Any idea on how to fix this? Is it a seed bug?

The test-code is an update example from the moblin-sdk-examples:

/*
 * MxTable layout example
 *
 * Author: Elliot Smith
 */

const Clutter = imports.gi.Clutter;
const Mx = imports.gi.Mx;

var width = 320;
var height = 320;
var cell_width = 100;
var cell_height = 100;
var column_spacing = 10;
var row_spacing = 10;

Clutter.init(Seed.argv);

var stage = Clutter.Stage.get_default();
stage.set_size(width, height);
stage.set_title("MxTable")

var table = new Mx.Table();
table.set_column_spacing(column_spacing);
table.set_row_spacing(row_spacing);

for (var count = 0; count < 3; count++) {
    var color = new Clutter.Color({red:50*count, green:10*count,
blue:20*count, alpha:255});
    var rect = new Clutter.Rectangle();
    rect.set_size(cell_width, cell_height);
    rect.set_color(color)
    table.add_actor(rect, count, count);
}

stage.add_actor(table);

stage.show();
Clutter.main();
stage.destroy();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]