Can't get python MatePanelApplet.set_size_hints() to work

I am trying to make a simple python mate applet.

The one thing that I can’t seem to get right is the call to set_size_hints().

If I try something like this: applet.set_size_hints([100, 100], 2, 100) it doesn’t execute past that line (based on debug writes to a file), but doesn’t crash. EDIT: the error is TypeError: Must be number, not list. Tuples don’t work either.

If I try applet.set_size_hints(100, 2, 100) it crashes the process.

Either I am doing it wrong or the python bindings are doing weird things for const int* arguments that are intended to be arrays.

I am hoping someone here is familiar with python gobject bindings, or can direct me to the right place to ask.

If I can’t get an answer I will have to start digging through source code :stuck_out_tongue: