~ubuntu-branches/ubuntu/karmic/gimp/karmic-security

« back to all changes in this revision

Viewing changes to tools/pdbgen/pdb/gradients.pdb

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-10-06 13:30:41 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20081006133041-axco233xt49jobn7
Tags: 2.6.0-1ubuntu1
* Sync on debian and new version (lp: #276839)
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch:
  - updated some strings for ubuntu
* debian/rules:
  - updated translation templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
    sample_size = GIMP_GRADIENT_DEFAULT_SAMPLE_SIZE;
206
206
 
207
207
  if (name && strlen (name))
208
 
    {
209
 
      gradient = (GimpGradient *)
210
 
        gimp_container_get_child_by_name (gimp->gradient_factory->container,
211
 
                                          name);
212
 
    }
 
208
    gradient = gimp_pdb_get_gradient (gimp, name, FALSE, error);
213
209
  else
214
 
    {
215
 
      gradient = gimp_context_get_gradient (context);
216
 
    }
 
210
    gradient = gimp_context_get_gradient (context);
217
211
 
218
212
  if (gradient)
219
213
    {
257
251
              "core/gimpcontext.h"
258
252
              "core/gimpdatafactory.h"
259
253
              "core/gimpgradient.h"
260
 
              "core/gimplist.h");
 
254
              "gimppdb-utils.h");
261
255
 
262
 
@procs = qw(gradients_refresh gradients_get_list
263
 
            gradients_sample_uniform gradients_sample_custom
 
256
@procs = qw(gradients_refresh
 
257
            gradients_get_list
 
258
            gradients_sample_uniform
 
259
            gradients_sample_custom
264
260
            gradients_get_gradient_data);
265
261
 
266
262
%exports = (app => [@procs], lib => [@procs]);