4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimppalettemenu</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
<link rel="up" href="libgimpui.html" title="Part III. GIMP User Interface Library">
8
<link rel="up" href="libgimpui.html" title="Part II. GIMP User Interface Library">
9
9
<link rel="prev" href="libgimp-gimpgradientmenu.html" title="gimpgradientmenu">
10
10
<link rel="next" href="libgimp-gimppatternmenu.html" title="gimppatternmenu">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
32
<td><a accesskey="n" href="libgimp-gimppatternmenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2555524" class="shortcut">Top</a>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2567707" class="shortcut">Top</a>
33
<a href="#id2653269" class="shortcut">Description</a></nobr></td></tr>
36
<a href="#id2613802" class="shortcut">Description</a></nobr></td></tr>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimppalettemenu"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
40
<a name="id2555524"></a><span class="refentrytitle">gimppalettemenu</span>
43
<a name="id2567707"></a><span class="refentrytitle">gimppalettemenu</span>
42
45
<p>gimppalettemenu — A widget for selecting palettes.</p>
52
GtkWidget* <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-new">gimp_palette_select_widget_new</a> (const gchar *title,
53
const gchar *palette_name,
54
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
56
void <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-close">gimp_palette_select_widget_close</a>
58
void <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-set">gimp_palette_select_widget_set</a> (GtkWidget *widget,
59
const gchar *palette_name);
55
GtkWidget* <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-new">gimp_palette_select_widget_new</a> (const gchar *title,
56
const gchar *palette_name,
57
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
59
void <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-close">gimp_palette_select_widget_close</a> (GtkWidget *widget);
60
void <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-set">gimp_palette_select_widget_set</a> (GtkWidget *widget,
61
const gchar *palette_name);
62
64
<div class="refsect1" lang="en">
63
<a name="id2653269"></a><h2>Description</h2>
65
<a name="id2613802"></a><h2>Description</h2>
65
67
A widget for selecting palettes.
68
70
<div class="refsect1" lang="en">
69
<a name="id2653284"></a><h2>Details</h2>
71
<a name="id2722931"></a><h2>Details</h2>
70
72
<div class="refsect2" lang="en">
71
<a name="id2653295"></a><h3>
73
<a name="id2722942"></a><h3>
72
74
<a name="gimp-palette-select-widget-new"></a>gimp_palette_select_widget_new ()</h3>
73
<a class="indexterm" name="id2653308"></a><pre class="programlisting">GtkWidget* gimp_palette_select_widget_new (const gchar *title,
74
const gchar *palette_name,
75
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
75
<a class="indexterm" name="id2722955"></a><a class="indexterm" name="id2722963"></a><pre class="programlisting">GtkWidget* gimp_palette_select_widget_new (const gchar *title,
76
const gchar *palette_name,
77
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
79
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
80
<h3 class="title">Warning</h3>
81
<p><code class="literal">gimp_palette_select_widget_new</code> is deprecated and should not be used in newly-written code.</p>
78
84
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
79
85
a palette. This widget is suitable for placement in a table in a
85
91
<col align="left" valign="top">
89
<span class="term"><em class="parameter"><code>title</code></em> :</span></td>
90
<td> Title of the dialog to use or <code class="literal">NULL</code> means to use the default
94
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
95
<td> Title of the dialog to use or <code class="literal">NULL</code> to use the default title.
96
<span class="term"><em class="parameter"><code>palette_name</code></em> :</span></td>
99
<td><span class="term"><em class="parameter"><code>palette_name</code></em> :</span></td>
97
100
<td> Initial palette name.
102
<span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
104
<td><span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
103
105
<td> A function to call when the selected palette changes.
108
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
109
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
109
110
<td> A pointer to arbitary data to be used in the call to <em class="parameter"><code>callback</code></em>.
114
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
114
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
115
115
<td> A <span class="type">GtkWidget</span> that you can use in your UI.
121
<p class="since">Since GIMP 2.2
125
125
<div class="refsect2" lang="en">
126
<a name="id2659265"></a><h3>
126
<a name="id2714635"></a><h3>
127
127
<a name="gimp-palette-select-widget-close"></a>gimp_palette_select_widget_close ()</h3>
128
<a class="indexterm" name="id2659278"></a><pre class="programlisting">void gimp_palette_select_widget_close
129
(GtkWidget *widget);</pre>
128
<a class="indexterm" name="id2714648"></a><a class="indexterm" name="id2714656"></a><pre class="programlisting">void gimp_palette_select_widget_close (GtkWidget *widget);</pre>
129
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
130
<h3 class="title">Warning</h3>
131
<p><code class="literal">gimp_palette_select_widget_close</code> is deprecated and should not be used in newly-written code.</p>
131
134
Closes the popup window associated with <em class="parameter"><code>widget</code></em>.</p>
135
138
<div class="variablelist"><table border="0">
136
139
<col align="left" valign="top">
139
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
141
<td><span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
140
142
<td> A palette select widget.
146
<p class="since">Since GIMP 2.2
148
150
<div class="refsect2" lang="en">
149
<a name="id2659338"></a><h3>
151
<a name="id2714727"></a><h3>
150
152
<a name="gimp-palette-select-widget-set"></a>gimp_palette_select_widget_set ()</h3>
151
<a class="indexterm" name="id2659351"></a><pre class="programlisting">void gimp_palette_select_widget_set (GtkWidget *widget,
152
const gchar *palette_name);</pre>
153
<a class="indexterm" name="id2714740"></a><a class="indexterm" name="id2714748"></a><pre class="programlisting">void gimp_palette_select_widget_set (GtkWidget *widget,
154
const gchar *palette_name);</pre>
155
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
156
<h3 class="title">Warning</h3>
157
<p><code class="literal">gimp_palette_select_widget_set</code> is deprecated and should not be used in newly-written code.</p>
154
160
Sets the current palette for the palette select widget. Calls the
155
161
callback function if one was supplied in the call to
161
167
<col align="left" valign="top">
165
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
170
<td><span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
166
171
<td> A palette select widget.
171
<span class="term"><em class="parameter"><code>palette_name</code></em> :</span></td>
175
<td><span class="term"><em class="parameter"><code>palette_name</code></em> :</span></td>
172
176
<td> Palette name to set; <code class="literal">NULL</code> means no change.
181
<p class="since">Since GIMP 2.2