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.
This commit is contained in:
Kevin Turner 2000-09-24 00:52:29 +00:00
parent 650818dd38
commit ecddfcb9c7
4 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,12 @@
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> Sat Sep 23 14:44:35 PDT 2000 Manish Singh <yosh@gimp.org>
* Made 1.1.26 release (1.2pre) * Made 1.1.26 release (1.2pre)

View File

@ -1,3 +1,10 @@
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> 2000-09-20 Kevin Turner <acapnotic@users.sourceforge.net>
* plug-ins/pdbbrowse.py (pars): Oops. When we did * plug-ins/pdbbrowse.py (pars): Oops. When we did

View File

@ -901,7 +901,8 @@ newpfobject(name)
{ {
pfobject *self; pfobject *self;
char *b,*h,*a,*c,*d; char *b,*h,*a,*c,*d;
int pt, np, nr, i; int np, nr, i;
GimpPDBProcType pt;
GimpParamDef *p, *r; GimpParamDef *p, *r;
if (!gimp_procedural_db_proc_info (name, &b, &h, &a, &c, &d, &pt, 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) { int *nreturn_vals, GimpParam **return_vals) {
PyObject *args, *ret; PyObject *args, *ret;
GimpParamDef *pd, *rv; GimpParamDef *pd, *rv;
GimpPDBProcType t;
char *b, *h, *a, *c, *d; 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, gimp_procedural_db_proc_info(name, &b, &h, &a, &c, &d, &t, &np, &nrv,
&pd, &rv); &pd, &rv);

View File

@ -285,6 +285,7 @@ class Console(GtkVBox):
try: try:
try: try:
r = eval(cmd, self.namespace, self.namespace) r = eval(cmd, self.namespace, self.namespace)
self.namespace['_'] = r
if r is not None: if r is not None:
print `r` print `r`
except SyntaxError: except SyntaxError: