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

« back to all changes in this revision

Viewing changes to libgimp/gimppaletteselect_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
 
28
28
/**
29
29
 * gimp_palettes_popup:
30
30
 * @palette_callback: The callback PDB proc to call when palette selection is made.
31
 
 * @popup_title: Title to give the palette popup window.
 
31
 * @popup_title: Title of the palette selection dialog.
32
32
 * @initial_palette: The name of the palette to set as the first selected.
33
33
 *
34
34
 * Invokes the Gimp palette selection.
35
35
 *
36
 
 * This procedure popups the palette selection dialog.
 
36
 * This procedure opens the palette selection dialog.
37
37
 *
38
38
 * Returns: TRUE on success.
39
39
 */
40
40
gboolean
41
41
gimp_palettes_popup (const gchar *palette_callback,
42
 
                     const gchar *popup_title,
43
 
                     const gchar *initial_palette)
 
42
                     const gchar *popup_title,
 
43
                     const gchar *initial_palette)
44
44
{
45
45
  GimpParam *return_vals;
46
46
  gint nreturn_vals;
47
47
  gboolean success = TRUE;
48
48
 
49
 
  return_vals = gimp_run_procedure ("gimp_palettes_popup",
50
 
                                    &nreturn_vals,
51
 
                                    GIMP_PDB_STRING, palette_callback,
52
 
                                    GIMP_PDB_STRING, popup_title,
53
 
                                    GIMP_PDB_STRING, initial_palette,
54
 
                                    GIMP_PDB_END);
 
49
  return_vals = gimp_run_procedure ("gimp-palettes-popup",
 
50
                                    &nreturn_vals,
 
51
                                    GIMP_PDB_STRING, palette_callback,
 
52
                                    GIMP_PDB_STRING, popup_title,
 
53
                                    GIMP_PDB_STRING, initial_palette,
 
54
                                    GIMP_PDB_END);
55
55
 
56
56
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
57
57
 
62
62
 
63
63
/**
64
64
 * gimp_palettes_close_popup:
65
 
 * @palette_callback: The name of the callback registered for this popup.
 
65
 * @palette_callback: The name of the callback registered for this pop-up.
66
66
 *
67
 
 * Popdown the Gimp palette selection.
 
67
 * Close the palette selection dialog.
68
68
 *
69
69
 * This procedure closes an opened palette selection dialog.
70
70
 *
77
77
  gint nreturn_vals;
78
78
  gboolean success = TRUE;
79
79
 
80
 
  return_vals = gimp_run_procedure ("gimp_palettes_close_popup",
81
 
                                    &nreturn_vals,
82
 
                                    GIMP_PDB_STRING, palette_callback,
83
 
                                    GIMP_PDB_END);
 
80
  return_vals = gimp_run_procedure ("gimp-palettes-close-popup",
 
81
                                    &nreturn_vals,
 
82
                                    GIMP_PDB_STRING, palette_callback,
 
83
                                    GIMP_PDB_END);
84
84
 
85
85
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
86
86
 
91
91
 
92
92
/**
93
93
 * gimp_palettes_set_popup:
94
 
 * @palette_callback: The name of the callback registered for this popup.
 
94
 * @palette_callback: The name of the callback registered for this pop-up.
95
95
 * @palette_name: The name of the palette to set as selected.
96
96
 *
97
 
 * Sets the current palette selection in a popup.
 
97
 * Sets the current palette in a palette selection dialog.
98
98
 *
99
 
 * Sets the current palette selection in a popup.
 
99
 * Sets the current palette in a palette selection dialog.
100
100
 *
101
101
 * Returns: TRUE on success.
102
102
 */
103
103
gboolean
104
104
gimp_palettes_set_popup (const gchar *palette_callback,
105
 
                         const gchar *palette_name)
 
105
                         const gchar *palette_name)
106
106
{
107
107
  GimpParam *return_vals;
108
108
  gint nreturn_vals;
109
109
  gboolean success = TRUE;
110
110
 
111
 
  return_vals = gimp_run_procedure ("gimp_palettes_set_popup",
112
 
                                    &nreturn_vals,
113
 
                                    GIMP_PDB_STRING, palette_callback,
114
 
                                    GIMP_PDB_STRING, palette_name,
115
 
                                    GIMP_PDB_END);
 
111
  return_vals = gimp_run_procedure ("gimp-palettes-set-popup",
 
112
                                    &nreturn_vals,
 
113
                                    GIMP_PDB_STRING, palette_callback,
 
114
                                    GIMP_PDB_STRING, palette_name,
 
115
                                    GIMP_PDB_END);
116
116
 
117
117
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
118
118