Imported Upstream version 2.4.1

This commit is contained in:
Ari Pollak
2010-08-11 01:23:35 -04:00
parent 258b1471f0
commit 69250d2dd6
266 changed files with 77744 additions and 54804 deletions

View File

@ -51,7 +51,7 @@
<a name="id2605626"></a><span class="refentrytitle">GimpUnitMenu</span>
</h2>
<p>GimpUnitMenu &#8212; Widget for selecting a <a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
><span class="type">GimpUnit</span></a>.</p>
</td>
<td valign="top" align="right"><img src="gimp-unit-menu.png"></td>
@ -64,35 +64,35 @@ href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
<a class="link" href="GimpUnitMenu.html#GimpUnitMenu-struct">GimpUnitMenu</a>;
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
href="../gtk/GtkWidget.html"
>GtkWidget</a>* <a class="link" href="GimpUnitMenu.html#gimp-unit-menu-new">gimp_unit_menu_new</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *format,
<a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> unit,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_pixels,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_percent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_custom);
void <a class="link" href="GimpUnitMenu.html#gimp-unit-menu-set-unit">gimp_unit_menu_set_unit</a> (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu,
<a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> <a class="link" href="GimpUnitMenu.html#gimp-unit-menu-get-unit">gimp_unit_menu_get_unit</a> (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="GimpUnitMenu.html#gimp-unit-menu-get-pixel-digits">gimp_unit_menu_get_pixel_digits</a> (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu);
void <a class="link" href="GimpUnitMenu.html#gimp-unit-menu-set-pixel-digits">gimp_unit_menu_set_pixel_digits</a> (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
href="../glib/glib-Basic-Types.html#gint"
>gint</a> digits);
</pre>
@ -102,28 +102,28 @@ href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
<pre class="synopsis">
<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
href="../gtk/GtkObject.html"
>GtkObject</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
href="../gtk/GtkWidget.html"
>GtkWidget</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
href="../gtk/GtkContainer.html"
>GtkContainer</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
href="../gtk/GtkBin.html"
>GtkBin</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkButton.html"
href="../gtk/GtkButton.html"
>GtkButton</a>
+----<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
href="../gtk/GtkOptionMenu.html"
>GtkOptionMenu</a>
+----GimpUnitMenu
</pre>
@ -145,9 +145,9 @@ GimpUnitMenu implements
<a name="id2650223"></a><h2>Description</h2>
<p>
This widget provides a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
href="../gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> which contains a list of <a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
><span class="type">GimpUnit</span></a>'s.
</p>
<p>
@ -179,21 +179,21 @@ Whenever the user selects a unit from the menu or the dialog, the
<a name="id2649511"></a><h3>
<a name="gimp-unit-menu-new"></a>gimp_unit_menu_new ()</h3>
<a class="indexterm" name="id2649524"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
href="../gtk/GtkWidget.html"
>GtkWidget</a>* gimp_unit_menu_new (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *format,
<a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> unit,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_pixels,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_percent,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_custom);</pre>
<p>
Creates a new <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a> widget.
@ -255,7 +255,7 @@ The <em class="parameter"><code>format</code></em> string supports the following
<tr>
<td><p><span class="term"><em class="parameter"><code>show_pixels</code></em>&#160;:</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the unit menu should contain an item for
GIMP_UNIT_PIXEL.
</td>
@ -263,7 +263,7 @@ href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
<tr>
<td><p><span class="term"><em class="parameter"><code>show_percent</code></em>&#160;:</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> in the unit menu should contain an item for
GIMP_UNIT_PERCENT.
</td>
@ -271,7 +271,7 @@ href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
<tr>
<td><p><span class="term"><em class="parameter"><code>show_custom</code></em>&#160;:</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the unit menu should contain a "More..." item for
opening the user-defined-unit selection dialog.
</td>
@ -290,11 +290,11 @@ href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
<a name="gimp-unit-menu-set-unit"></a>gimp_unit_menu_set_unit ()</h3>
<a class="indexterm" name="id2649835"></a><pre class="programlisting">void gimp_unit_menu_set_unit (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu,
<a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> unit);</pre>
<p>
Sets a new <a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
><span class="type">GimpUnit</span></a> for the specified <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.</p>
<p>
@ -320,11 +320,11 @@ href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
<a name="id2654651"></a><h3>
<a name="gimp-unit-menu-get-unit"></a>gimp_unit_menu_get_unit ()</h3>
<a class="indexterm" name="id2654663"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> gimp_unit_menu_get_unit (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu);</pre>
<p>
Returns the <a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
><span class="type">GimpUnit</span></a> the user has selected from the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.</p>
<p>
@ -350,7 +350,7 @@ href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
<a name="id2654738"></a><h3>
<a name="gimp-unit-menu-get-pixel-digits"></a>gimp_unit_menu_get_pixel_digits ()</h3>
<a class="indexterm" name="id2654749"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_unit_menu_get_pixel_digits (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu);</pre>
<p>
Retrieve the number of digits for a pixel size as set by
@ -380,7 +380,7 @@ Retrieve the number of digits for a pixel size as set by
<a name="gimp-unit-menu-set-pixel-digits"></a>gimp_unit_menu_set_pixel_digits ()</h3>
<a class="indexterm" name="id2654838"></a><pre class="programlisting">void gimp_unit_menu_set_pixel_digits (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *menu,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
href="../glib/glib-Basic-Types.html#gint"
>gint</a> digits);</pre>
<p>
A GimpUnitMenu can be setup to control the number of digits shown
@ -420,11 +420,11 @@ here. You should do this after attaching your spinbuttons.</p>
<a name="GimpUnitMenu-unit-changed"></a>The <code class="literal">"unit-changed"</code> signal</h3>
<a class="indexterm" name="id2654963"></a><pre class="programlisting">void user_function (<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu">GimpUnitMenu</a> *arg0,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run First</pre>
<p>
This signal is emitted whenever the user selects a <a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
><span class="type">GimpUnit</span></a> from
the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.</p>
<p>
@ -443,7 +443,7 @@ the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="t
<a name="id2655036"></a><h2>See Also</h2>
<p>
<a
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
><span class="type">GimpUnit</span></a>
</p>
<p>