~ubuntu-branches/ubuntu/maverick/gimp/maverick-updates

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/libgimp-gimpimagecombobox.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-09 19:44:52 UTC
  • Revision ID: james.westby@ubuntu.com-20051209194452-yggpemjlofpjqyf4
Tags: upstream-2.2.9
ImportĀ upstreamĀ versionĀ 2.2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
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&#160;III.&#160;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&#160;I.&#160;GIMP Constants">
 
13
<link rel="part" href="libgimp.html" title="Part&#160;II.&#160;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&#160;III.&#160;GIMP User Interface Library">
 
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
 
20
</head>
 
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>
 
28
</tr></table>
 
29
<div class="refentry" lang="en">
 
30
<a name="libgimp-gimpimagecombobox"></a><div class="titlepage"></div>
 
31
<div class="refnamediv"><table width="100%"><tr>
 
32
<td valign="top">
 
33
<h2><span class="refentrytitle">gimpimagecombobox</span></h2>
 
34
<p>gimpimagecombobox &#8212; A widget providing a popup menu of images.</p>
 
35
</td>
 
36
<td valign="top" align="right"></td>
 
37
</tr></table></div>
 
38
<div class="refsynopsisdiv">
 
39
<h2>Synopsis</h2>
 
40
<pre class="synopsis">
 
41
 
 
42
 
 
43
 
 
44
gboolean    (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">*GimpImageConstraintFunc</a>)      (gint32 image_id,
 
45
                                             gpointer data);
 
46
<a
 
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,
 
49
                                             gpointer data);
 
50
</pre>
 
51
</div>
 
52
<div class="refsect1" lang="en">
 
53
<a name="id2645478"></a><h2>Description</h2>
 
54
<p>
 
55
A widget providing a popup menu of images.
 
56
</p>
 
57
</div>
 
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,
 
64
                                             gpointer data);</pre>
 
65
<p>
 
66
 
 
67
</p>
 
68
<div class="variablelist"><table border="0">
 
69
<col align="left" valign="top">
 
70
<tbody>
 
71
<tr>
 
72
<td>
 
73
<span class="term"><em class="parameter"><code>image_id</code></em>&#160;:</span></td>
 
74
<td>
 
75
</td>
 
76
</tr>
 
77
<tr>
 
78
<td>
 
79
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
 
80
<td>
 
81
</td>
 
82
</tr>
 
83
<tr>
 
84
<td>
 
85
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
86
<td>
 
87
 
 
88
 
 
89
</td>
 
90
</tr>
 
91
</tbody>
 
92
</table></div>
 
93
</div>
 
94
<hr>
 
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>
 
102
<p>
 
103
Creates a new <a
 
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.
 
109
</p>
 
110
<p>
 
111
You should use <code class="function">gimp_int_combo_connect()</code> to initialize and connect
 
112
the combo. Use <a
 
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
 
115
image ID and <a
 
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>
 
119
<p>
 
120
 
 
121
</p>
 
122
<div class="variablelist"><table border="0">
 
123
<col align="left" valign="top">
 
124
<tbody>
 
125
<tr>
 
126
<td>
 
127
<span class="term"><em class="parameter"><code>constraint</code></em>&#160;:</span></td>
 
128
<td> a <a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc"><span class="type">GimpImageConstraintFunc</span></a> or <code class="literal">NULL</code>
 
129
</td>
 
130
</tr>
 
131
<tr>
 
132
<td>
 
133
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
 
134
<td>       a pointer that is passed to <em class="parameter"><code>constraint</code></em>
 
135
</td>
 
136
</tr>
 
137
<tr>
 
138
<td>
 
139
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
140
<td> a new <a
 
141
href="../libgimpwidgets/GimpIntComboBox.html"
 
142
><span class="type">GimpIntComboBox</span></a>.
 
143
 
 
144
</td>
 
145
</tr>
 
146
</tbody>
 
147
</table></div>
 
148
<p>Since  GIMP 2.2
 
149
</p>
 
150
</div>
 
151
</div>
 
152
</div>
 
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>&lt;&lt;&#160;gimpdrawablecombobox</b></a></td>
 
155
<td align="right"><a accesskey="n" href="libgimp-gimppixbuf.html"><b>gimppixbuf&#160;&gt;&gt;</b></a></td>
 
156
</tr></table>
 
157
</body>
 
158
</html>