Updated for changes in color schemes
This commit is contained in:
parent
afe8cb7e07
commit
ec4b9bd4ea
@ -231,7 +231,7 @@ override moo_term_set_colors varargs
|
||||
static PyObject *
|
||||
_wrap_moo_term_set_colors (PyGObject *self, PyObject *args)
|
||||
{
|
||||
GdkColor colors[2 * MOO_TERM_NUM_COLORS];
|
||||
GdkColor colors[4 + 2 * MOO_TERM_NUM_COLORS];
|
||||
guint i, n_colors;
|
||||
PyObject *py_colors;
|
||||
|
||||
@ -243,10 +243,10 @@ _wrap_moo_term_set_colors (PyGObject *self, PyObject *args)
|
||||
|
||||
n_colors = PySequence_Size (py_colors);
|
||||
|
||||
if (n_colors != MOO_TERM_NUM_COLORS && n_colors != 2 * MOO_TERM_NUM_COLORS)
|
||||
if (n_colors != 2 + MOO_TERM_NUM_COLORS && n_colors != 4 + 2 * MOO_TERM_NUM_COLORS)
|
||||
{
|
||||
PyErr_Format (PyExc_ValueError, "number of colors must be %d or %d",
|
||||
MOO_TERM_NUM_COLORS, MOO_TERM_NUM_COLORS * 2);
|
||||
2 + MOO_TERM_NUM_COLORS, 4 + 2 * MOO_TERM_NUM_COLORS);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user