~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to libgimpbase/gimpprotocol.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* LIBGIMP - The GIMP Library
2
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
3
3
 *
4
 
 * This library is free software; you can redistribute it and/or
 
4
 * This library is free software: you can redistribute it and/or
5
5
 * modify it under the terms of the GNU Lesser General Public
6
6
 * License as published by the Free Software Foundation; either
7
 
 * version 2 of the License, or (at your option) any later version.
 
7
 * version 3 of the License, or (at your option) any later version.
8
8
 *
9
9
 * This library is distributed in the hope that it will be useful,
10
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
 * Library General Public License for more details.
13
13
 *
14
14
 * You should have received a copy of the GNU Lesser General Public
15
 
 * License along with this library; if not, write to the
16
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
 * Boston, MA 02111-1307, USA.
 
15
 * License along with this library.  If not, see
 
16
 * <http://www.gnu.org/licenses/>.
18
17
 */
19
18
 
20
19
#include "config.h"
1436
1435
            goto cleanup;
1437
1436
          break;
1438
1437
 
1439
 
        case GIMP_PDB_REGION:
 
1438
        case GIMP_PDB_ITEM:
 
1439
          if (! _gimp_wire_read_int32 (channel,
 
1440
                                       (guint32 *) &(*params)[i].data.d_item, 1,
 
1441
                                       user_data))
 
1442
            goto cleanup;
1440
1443
          break;
1441
1444
 
1442
1445
        case GIMP_PDB_DISPLAY:
1659
1662
            return;
1660
1663
          break;
1661
1664
 
1662
 
        case GIMP_PDB_REGION:
 
1665
        case GIMP_PDB_ITEM:
 
1666
          if (! _gimp_wire_write_int32 (channel,
 
1667
                                        (const guint32 *) &params[i].data.d_item, 1,
 
1668
                                        user_data))
 
1669
            return;
1663
1670
          break;
1664
1671
 
1665
1672
        case GIMP_PDB_DISPLAY:
1773
1780
        case GIMP_PDB_INT8:
1774
1781
        case GIMP_PDB_FLOAT:
1775
1782
        case GIMP_PDB_COLOR:
1776
 
        case GIMP_PDB_REGION:
 
1783
        case GIMP_PDB_ITEM:
1777
1784
        case GIMP_PDB_DISPLAY:
1778
1785
        case GIMP_PDB_IMAGE:
1779
1786
        case GIMP_PDB_LAYER: