gimppatternselect_pdb.c 2.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
 *
 * gimppatternselect_pdb.c
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

/* NOTE: This file is autogenerated by pdbgen.pl */

#include "gimp.h"

void
gimp_patterns_popup (gchar *pattern_callback,
		     gchar *popup_title,
		     gchar *initial_pattern)
{
31
  GimpParam *return_vals;
32 33 34 35
  gint nreturn_vals;

  return_vals = gimp_run_procedure ("gimp_patterns_popup",
				    &nreturn_vals,
36 37 38 39
				    GIMP_PDB_STRING, pattern_callback,
				    GIMP_PDB_STRING, popup_title,
				    GIMP_PDB_STRING, initial_pattern,
				    GIMP_PDB_END);
40 41 42 43 44 45 46

  gimp_destroy_params (return_vals, nreturn_vals);
}

void
gimp_patterns_close_popup (gchar *pattern_callback)
{
47
  GimpParam *return_vals;
48 49 50 51
  gint nreturn_vals;

  return_vals = gimp_run_procedure ("gimp_patterns_close_popup",
				    &nreturn_vals,
52 53
				    GIMP_PDB_STRING, pattern_callback,
				    GIMP_PDB_END);
54 55 56 57 58 59 60 61

  gimp_destroy_params (return_vals, nreturn_vals);
}

void
gimp_patterns_set_popup (gchar *pattern_callback,
			 gchar *pattern_name)
{
62
  GimpParam *return_vals;
63 64 65 66
  gint nreturn_vals;

  return_vals = gimp_run_procedure ("gimp_patterns_set_popup",
				    &nreturn_vals,
67 68 69
				    GIMP_PDB_STRING, pattern_callback,
				    GIMP_PDB_STRING, pattern_name,
				    GIMP_PDB_END);
70 71 72

  gimp_destroy_params (return_vals, nreturn_vals);
}