~ubuntu-branches/ubuntu/gutsy/gimp/gutsy

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-09-30 18:06:49 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070930180649-f647f0cxj32tgyn3
Tags: 2.4.0~rc3-1ubuntu1
* Resynchronized with Debian.
* Remaining Ubuntu changes:
  - 02_help-message.patch, 03_gimp.desktop.in.in.patch: Distro changes.
  - Weave i18n magic in the rules file.
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - 10_dont_show_wizard.patch: Unused, upstream doesn't call it anymore.
  - Use dh_icons.
* Disabled the print plugin, and removed the Conflicts/Replaces on
  gimp-print.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
    );
137
137
}
138
138
 
 
139
sub context_list_paint_methods {
 
140
    $blurb = 'Lists the available paint methods.';
 
141
 
 
142
    $help = <<'HELP';
 
143
This procedure lists the names of the available paint methods. Any
 
144
of the results can be used for gimp_context_set_paint_method().
 
145
HELP
 
146
 
 
147
    &simon_pdb_misc('2007', '2.4');
 
148
 
 
149
    @outargs = (
 
150
        { name => 'paint_methods', type => 'stringarray', void_ret => 1,
 
151
          desc => 'The names of the available paint methods',
 
152
          array => { desc => 'The number of the available paint methods' } }
 
153
    );
 
154
 
 
155
    %invoke = (
 
156
        code => <<'CODE'
 
157
{
 
158
  paint_methods = gimp_container_get_name_array (gimp->paint_info_list,
 
159
                                                 &num_paint_methods);
 
160
}
 
161
CODE
 
162
    );
 
163
}
 
164
 
 
165
 
139
166
sub context_get_foreground {
140
167
    $blurb = "Get the current GIMP foreground color.";
141
168
 
696
723
 
697
724
@procs = qw(context_push context_pop
698
725
            context_get_paint_method context_set_paint_method
 
726
            context_list_paint_methods
699
727
            context_get_foreground context_set_foreground
700
728
            context_get_background context_set_background
701
729
            context_set_default_colors context_swap_colors