gimp r26108 - in branches/gimp-2-4: . plug-ins/pygimp



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]