Commit ecddfcb9 authored by Kevin Turner's avatar Kevin Turner
Browse files

use correct type for enums.

* plug-ins/pygimp/gimpmodule.c (newpfobject): use correct type for
  enums.

* plug-ins/pygimp/plug-ins/gtkcons.py (Console.run): set _ after
  evaluating a statement, so _ may be used as it is in the python
  interpreter.

If I keep this up, I may actually learn Python.
parent 650818dd
2000-09-23 Kevin Turner <acapnotic@users.sourceforge.net>
* plug-ins/pygimp/gimpmodule.c (newpfobject): use correct type for
enums
* plug-ins/pygimp/plug-ins/gtkcons.py (Console.run): set _ after
evaluating a statement, so _ may be used as it is in the python
interpreter.
Sat Sep 23 14:44:35 PDT 2000 Manish Singh <yosh@gimp.org>
 
* Made 1.1.26 release (1.2pre)
......
2000-09-23 Kevin Turner <acapnotic@users.sourceforge.net>
* gimpmodule.c (newpfobject): use correct type for enums
* plug-ins/gtkcons.py (Console.run): set _ after evaluating a
statement, so _ may be used as it is in the python interpreter.
2000-09-20 Kevin Turner <acapnotic@users.sourceforge.net>
* plug-ins/pdbbrowse.py (pars): Oops. When we did
......
......@@ -901,7 +901,8 @@ newpfobject(name)
{
pfobject *self;
char *b,*h,*a,*c,*d;
int pt, np, nr, i;
int np, nr, i;
GimpPDBProcType pt;
GimpParamDef *p, *r;
if (!gimp_procedural_db_proc_info (name, &b, &h, &a, &c, &d, &pt,
......@@ -3678,8 +3679,9 @@ static void pygimp_run_proc(char *name, int nparams, GimpParam *params,
int *nreturn_vals, GimpParam **return_vals) {
PyObject *args, *ret;
GimpParamDef *pd, *rv;
GimpPDBProcType t;
char *b, *h, *a, *c, *d;
int t, np, nrv;
int np, nrv;
gimp_procedural_db_proc_info(name, &b, &h, &a, &c, &d, &t, &np, &nrv,
&pd, &rv);
......
......@@ -285,6 +285,7 @@ class Console(GtkVBox):
try:
try:
r = eval(cmd, self.namespace, self.namespace)
self.namespace['_'] = r
if r is not None:
print `r`
except SyntaxError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment