~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkFontSelectionDialog.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-06-11 12:19:30 UTC
  • mfrom: (1.11.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 175.
  • Revision ID: james.westby@ubuntu.com-20100611121930-n4pklvkoqdsg12vm
Tags: 2.21.2-1
* New upstream development release:
  + debian/rules,
    debian/libgtk2.0-0.symbols:
    - Update for new API symbols.
  + debian/patches/070_mandatory-relibtoolize.patch:
    - Regenerated for the new version.
  + debian/control.in:
    - Update GLib (build-) dependency to >= 2.25.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include <gtk/gtk.h>
46
46
 
47
47
                    <a class="link" href="GtkFontSelectionDialog.html#GtkFontSelectionDialog-struct" title="GtkFontSelectionDialog">GtkFontSelectionDialog</a>;
48
 
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-new" title="gtk_font_selection_dialog_new ()">gtk_font_selection_dialog_new</a>       (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
49
 
<a href="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>*            <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font" title="gtk_font_selection_dialog_get_font ()">gtk_font_selection_dialog_get_font</a>  (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
50
 
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>*              <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font-name" title="gtk_font_selection_dialog_get_font_name ()">gtk_font_selection_dialog_get_font_name</a>
 
48
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-new" title="gtk_font_selection_dialog_new ()">gtk_font_selection_dialog_new</a>       (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
 
49
<a href="http://library.gnome.org/devel/gdk/unstable/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>*            <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font" title="gtk_font_selection_dialog_get_font ()">gtk_font_selection_dialog_get_font</a>  (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
 
50
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>*              <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font-name" title="gtk_font_selection_dialog_get_font_name ()">gtk_font_selection_dialog_get_font_name</a>
51
51
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
52
 
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-font-name" title="gtk_font_selection_dialog_set_font_name ()">gtk_font_selection_dialog_set_font_name</a>
 
52
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-font-name" title="gtk_font_selection_dialog_set_font_name ()">gtk_font_selection_dialog_set_font_name</a>
53
53
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
54
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);
55
 
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-preview-text" title="gtk_font_selection_dialog_get_preview_text ()">gtk_font_selection_dialog_get_preview_text</a>
 
54
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);
 
55
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-preview-text" title="gtk_font_selection_dialog_get_preview_text ()">gtk_font_selection_dialog_get_preview_text</a>
56
56
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
57
57
<span class="returnvalue">void</span>                <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-set-preview-text" title="gtk_font_selection_dialog_set_preview_text ()">gtk_font_selection_dialog_set_preview_text</a>
58
58
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
59
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
 
59
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
60
60
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-apply-button" title="gtk_font_selection_dialog_get_apply_button ()">gtk_font_selection_dialog_get_apply_button</a>
61
61
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);
62
62
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-cancel-button" title="gtk_font_selection_dialog_get_cancel_button ()">gtk_font_selection_dialog_get_cancel_button</a>
68
68
<div class="refsect1" title="Object Hierarchy">
69
69
<a name="GtkFontSelectionDialog.object-hierarchy"></a><h2>Object Hierarchy</h2>
70
70
<pre class="synopsis">
71
 
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
72
 
   +----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
71
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
72
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
73
73
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
74
74
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
75
75
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
125
125
<hr>
126
126
<div class="refsect2" title="gtk_font_selection_dialog_new ()">
127
127
<a name="gtk-font-selection-dialog-new"></a><h3>gtk_font_selection_dialog_new ()</h3>
128
 
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_font_selection_dialog_new       (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
 
128
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_font_selection_dialog_new       (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
129
129
<p>
130
130
Creates a new <a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a>.
131
131
</p>
148
148
<hr>
149
149
<div class="refsect2" title="gtk_font_selection_dialog_get_font ()">
150
150
<a name="gtk-font-selection-dialog-get-font"></a><h3>gtk_font_selection_dialog_get_font ()</h3>
151
 
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>*            gtk_font_selection_dialog_get_font  (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
 
151
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Fonts.html#GdkFont"><span class="returnvalue">GdkFont</span></a>*            gtk_font_selection_dialog_get_font  (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
152
152
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
153
153
<h3 class="title">Warning</h3>
154
154
<p><code class="literal">gtk_font_selection_dialog_get_font</code> has been deprecated since version 2.0 and should not be used in newly-written code. Use <a class="link" href="GtkFontSelectionDialog.html#gtk-font-selection-dialog-get-font-name" title="gtk_font_selection_dialog_get_font_name ()"><code class="function">gtk_font_selection_dialog_get_font_name()</code></a> instead.</p>
166
166
</tr>
167
167
<tr>
168
168
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
169
 
<td> the <a href="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="type">GdkFont</span></a> from the <a class="link" href="GtkFontSelection.html" title="GtkFontSelection"><span class="type">GtkFontSelection</span></a> for the
170
 
    currently selected font in the dialog, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font is selected
 
169
<td> the <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Fonts.html#GdkFont"><span class="type">GdkFont</span></a> from the <a class="link" href="GtkFontSelection.html" title="GtkFontSelection"><span class="type">GtkFontSelection</span></a> for the
 
170
    currently selected font in the dialog, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font is selected
171
171
 
172
172
</td>
173
173
</tr>
177
177
<hr>
178
178
<div class="refsect2" title="gtk_font_selection_dialog_get_font_name ()">
179
179
<a name="gtk-font-selection-dialog-get-font-name"></a><h3>gtk_font_selection_dialog_get_font_name ()</h3>
180
 
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>*              gtk_font_selection_dialog_get_font_name
 
180
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>*              gtk_font_selection_dialog_get_font_name
181
181
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
182
182
<p>
183
183
Gets the currently-selected font name.
200
200
</tr>
201
201
<tr>
202
202
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
203
 
<td> A string with the name of the current font, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no 
204
 
    font is selected. You must free this string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
 
203
<td> A string with the name of the current font, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no 
 
204
    font is selected. You must free this string with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
205
205
</td>
206
206
</tr>
207
207
</tbody>
210
210
<hr>
211
211
<div class="refsect2" title="gtk_font_selection_dialog_set_font_name ()">
212
212
<a name="gtk-font-selection-dialog-set-font-name"></a><h3>gtk_font_selection_dialog_set_font_name ()</h3>
213
 
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_font_selection_dialog_set_font_name
 
213
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_font_selection_dialog_set_font_name
214
214
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
215
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);</pre>
 
215
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *fontname</code></em>);</pre>
216
216
<p>
217
217
Sets the currently selected font.
218
218
</p>
231
231
</tr>
232
232
<tr>
233
233
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
234
 
<td> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the font selected in <em class="parameter"><code>fsd</code></em> is now the
235
 
    <em class="parameter"><code>fontname</code></em> specified, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise. 
 
234
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the font selected in <em class="parameter"><code>fsd</code></em> is now the
 
235
    <em class="parameter"><code>fontname</code></em> specified, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise. 
236
236
</td>
237
237
</tr>
238
238
</tbody>
241
241
<hr>
242
242
<div class="refsect2" title="gtk_font_selection_dialog_get_preview_text ()">
243
243
<a name="gtk-font-selection-dialog-get-preview-text"></a><h3>gtk_font_selection_dialog_get_preview_text ()</h3>
244
 
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_font_selection_dialog_get_preview_text
 
244
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_font_selection_dialog_get_preview_text
245
245
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>);</pre>
246
246
<p>
247
247
Gets the text displayed in the preview area.
269
269
<a name="gtk-font-selection-dialog-set-preview-text"></a><h3>gtk_font_selection_dialog_set_preview_text ()</h3>
270
270
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_font_selection_dialog_set_preview_text
271
271
                                                        (<em class="parameter"><code><a class="link" href="GtkFontSelectionDialog.html" title="GtkFontSelectionDialog"><span class="type">GtkFontSelectionDialog</span></a> *fsd</code></em>,
272
 
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
 
272
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
273
273
<p>
274
274
Sets the text displayed in the preview area.
275
275
</p>