~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to libgimp/gimppattern_pdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Boston, MA 02111-1307, USA.
20
20
 */
21
21
 
22
 
/* NOTE: This file is autogenerated by pdbgen.pl */
 
22
/* NOTE: This file is auto-generated by pdbgen.pl */
23
23
 
24
24
#include "config.h"
25
25
 
45
45
 */
46
46
gboolean
47
47
gimp_pattern_get_info (const gchar *name,
48
 
                       gint        *width,
49
 
                       gint        *height,
50
 
                       gint        *bpp)
 
48
                       gint        *width,
 
49
                       gint        *height,
 
50
                       gint        *bpp)
51
51
{
52
52
  GimpParam *return_vals;
53
53
  gint nreturn_vals;
54
54
  gboolean success = TRUE;
55
55
 
56
 
  return_vals = gimp_run_procedure ("gimp_pattern_get_info",
57
 
                                    &nreturn_vals,
58
 
                                    GIMP_PDB_STRING, name,
59
 
                                    GIMP_PDB_END);
 
56
  return_vals = gimp_run_procedure ("gimp-pattern-get-info",
 
57
                                    &nreturn_vals,
 
58
                                    GIMP_PDB_STRING, name,
 
59
                                    GIMP_PDB_END);
60
60
 
61
61
  *width = 0;
62
62
  *height = 0;
97
97
 */
98
98
gboolean
99
99
gimp_pattern_get_pixels (const gchar  *name,
100
 
                         gint         *width,
101
 
                         gint         *height,
102
 
                         gint         *bpp,
103
 
                         gint         *num_color_bytes,
104
 
                         guint8      **color_bytes)
 
100
                         gint         *width,
 
101
                         gint         *height,
 
102
                         gint         *bpp,
 
103
                         gint         *num_color_bytes,
 
104
                         guint8      **color_bytes)
105
105
{
106
106
  GimpParam *return_vals;
107
107
  gint nreturn_vals;
108
108
  gboolean success = TRUE;
109
109
 
110
 
  return_vals = gimp_run_procedure ("gimp_pattern_get_pixels",
111
 
                                    &nreturn_vals,
112
 
                                    GIMP_PDB_STRING, name,
113
 
                                    GIMP_PDB_END);
 
110
  return_vals = gimp_run_procedure ("gimp-pattern-get-pixels",
 
111
                                    &nreturn_vals,
 
112
                                    GIMP_PDB_STRING, name,
 
113
                                    GIMP_PDB_END);
114
114
 
115
115
  *width = 0;
116
116
  *height = 0;
127
127
      *bpp = return_vals[3].data.d_int32;
128
128
      *num_color_bytes = return_vals[4].data.d_int32;
129
129
      *color_bytes = g_new (guint8, *num_color_bytes);
130
 
      memcpy (*color_bytes, return_vals[5].data.d_int8array,
131
 
              *num_color_bytes * sizeof (guint8));
 
130
      memcpy (*color_bytes,
 
131
              return_vals[5].data.d_int8array,
 
132
              *num_color_bytes * sizeof (guint8));
132
133
    }
133
134
 
134
135
  gimp_destroy_params (return_vals, nreturn_vals);