gimp r26108 - in branches/gimp-2-4: . plug-ins/pygimp
- From: yosh svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26108 - in branches/gimp-2-4: . plug-ins/pygimp
- Date: Thu, 10 Jul 2008 18:23:45 +0000 (UTC)
Author: yosh
Date: Thu Jul 10 18:23:45 2008
New Revision: 26108
URL: http://svn.gnome.org/viewvc/gimp?rev=26108&view=rev
Log:
2008-07-10 Manish Singh <yosh gimp org>
Merged from trunk:
* plug-ins/pygimp/pygimp-pdb.c: Allow None to be passed for
PDB_DISPLAY.
Modified:
branches/gimp-2-4/ChangeLog
branches/gimp-2-4/plug-ins/pygimp/pygimp-pdb.c
Modified: branches/gimp-2-4/plug-ins/pygimp/pygimp-pdb.c
==============================================================================
--- branches/gimp-2-4/plug-ins/pygimp/pygimp-pdb.c (original)
+++ branches/gimp-2-4/plug-ins/pygimp/pygimp-pdb.c Thu Jul 10 18:23:45 2008
@@ -489,6 +489,10 @@
ret[i].data.d_region.height = PyInt_AsLong(h);
break;
case GIMP_PDB_DISPLAY:
+ if (item == Py_None) {
+ ret[i].data.d_display = -1;
+ break;
+ }
check(!pygimp_display_check(item));
ret[i].data.d_display = ((PyGimpDisplay *)item)->ID;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]