3
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<title>gimpimagecombobox</title>
5
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
7
<link rel="up" href="libgimpui.html" title="Part III. GIMP User Interface Library">
8
<link rel="prev" href="libgimp-gimpdrawablecombobox.html" title="gimpdrawablecombobox">
9
<link rel="next" href="libgimp-gimppixbuf.html" title="gimppixbuf">
10
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
11
<link rel="stylesheet" href="style.css" type="text/css">
12
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
13
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
18
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
21
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
22
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
23
<td><a accesskey="p" href="libgimp-gimpdrawablecombobox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
24
<td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
25
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
26
<th width="100%" align="center">GIMP Library Reference Manual</th>
27
<td><a accesskey="n" href="libgimp-gimppixbuf.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
29
<div class="refentry" lang="en">
30
<a name="libgimp-gimpimagecombobox"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle">gimpimagecombobox</span></h2>
34
<p>gimpimagecombobox — A widget providing a popup menu of images.</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
40
<pre class="synopsis">
44
gboolean (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">*GimpImageConstraintFunc</a>) (gint32 image_id,
47
href="../gtk/GtkWidget.html"
48
>GtkWidget</a>* <a href="libgimp-gimpimagecombobox.html#gimp-image-combo-box-new">gimp_image_combo_box_new</a> (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">GimpImageConstraintFunc</a> constraint,
52
<div class="refsect1" lang="en">
53
<a name="id2645478"></a><h2>Description</h2>
55
A widget providing a popup menu of images.
58
<div class="refsect1" lang="en">
59
<a name="id2645490"></a><h2>Details</h2>
60
<div class="refsect2" lang="en">
61
<a name="id2645496"></a><h3>
62
<a name="GimpImageConstraintFunc"></a>GimpImageConstraintFunc ()</h3>
63
<a class="indexterm" name="id2645505"></a><pre class="programlisting">gboolean (*GimpImageConstraintFunc) (gint32 image_id,
68
<div class="variablelist"><table border="0">
69
<col align="left" valign="top">
73
<span class="term"><em class="parameter"><code>image_id</code></em> :</span></td>
79
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
85
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
95
<div class="refsect2" lang="en">
96
<a name="id2645581"></a><h3>
97
<a name="gimp-image-combo-box-new"></a>gimp_image_combo_box_new ()</h3>
98
<a class="indexterm" name="id2645590"></a><pre class="programlisting"><a
99
href="../gtk/GtkWidget.html"
100
>GtkWidget</a>* gimp_image_combo_box_new (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">GimpImageConstraintFunc</a> constraint,
101
gpointer data);</pre>
104
href="../libgimpwidgets/GimpIntComboBox.html"
105
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
106
images. If a <em class="parameter"><code>constraint</code></em> function is specified, it is called for
107
each image and only if the function returns <code class="literal">TRUE</code>, the image is
108
added to the combobox.
111
You should use <code class="function">gimp_int_combo_connect()</code> to initialize and connect
113
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
114
><code class="function">gimp_int_combo_box_set_active()</code></a> to get the active
116
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
117
><code class="function">gimp_int_combo_box_get_active()</code></a> to retrieve the ID of
118
the selected image.</p>
122
<div class="variablelist"><table border="0">
123
<col align="left" valign="top">
127
<span class="term"><em class="parameter"><code>constraint</code></em> :</span></td>
128
<td> a <a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc"><span class="type">GimpImageConstraintFunc</span></a> or <code class="literal">NULL</code>
133
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
134
<td> a pointer that is passed to <em class="parameter"><code>constraint</code></em>
139
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
141
href="../libgimpwidgets/GimpIntComboBox.html"
142
><span class="type">GimpIntComboBox</span></a>.
153
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
154
<td align="left"><a accesskey="p" href="libgimp-gimpdrawablecombobox.html"><b><< gimpdrawablecombobox</b></a></td>
155
<td align="right"><a accesskey="n" href="libgimp-gimppixbuf.html"><b>gimppixbuf >></b></a></td>