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

« back to all changes in this revision

Viewing changes to docs/reference/gtk/xml/gtkrecentchooserdialog.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-05-04 12:24:25 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070504122425-0m8midgzrp40y8w2
Tags: 2.10.12-1ubuntu1
* Sync with Debian
* New upstream version:
  Fixed bugs:
  - 379414 file chooser warnings when changing path in the entry
  - 418585 GtkFileChooserDefault sizing code is not DPI independent
  - 419568 Crash in search if start with special letter
  - 435062 build dies with icon cache validation
  - 379399 Segfault to call gtk_print_operation_run twice.
  - 387889 cups backend has problems when there are too many printers
  - 418531 invalid read to gtkicontheme.c gtk_icon_theme_lookup_icon...
  - 423916 crash in color scheme code
  - 424042 Segmentation fault while quickly pressing Alt+arrows
  - 415260 Protect against negative indices when setting values in G...
  - 419171 XGetVisualInfo() may not set nxvisuals
  - 128852 Gdk cursors don't look good on win32
  - 344657 Ctrl-H doesn't toggle "Show Hidden Files" setting
  - 345345 PrintOperation::paginate is not emitted for class handler
  - 347567 GtkPrintOperation::end-print is not emitted if it's cance...
  - 369112 gtk_ui_manager_add_ui should accept unnamed separator
  - 392015 Selected menu item invisible on Windows Vista
  - 399253 MS-Windows Theme Bottom Tab placement rendering glitches
  - 399425 gtk_input_dialog_fill_axes() adds child to gtkscrolledwin...
  - 403251 [patch] little memory leak in GtkPrintJob
  - 403267 [patch] memory leak in GtkPageSetupUnixDialog
  - 403470 MS-Windows Theme tab placement other than on top leaks a ...
  - 404506 Windows system fonts that have multi-byte font names cann...
  - 405089 Incorrect window placement for GtkEventBox private window
  - 405515 Minor leak in gtkfilesystemmodel.c
  - 405539 gdk_pixbuf_save() for PNG saver can return FALSE without ...
  - 415681 gdk_window_clear_area includes an extra line and column o...
  - 418219 GtkRecentChooser should apply filter before sorting and c...
  - 418403 Scroll to printer after selecting it from settings
  - 421985 _gtk_print_operation_platform_backend_launch_preview
  - 421990 gtk_print_job_get_surface
  - 421993 gtk_print_operation_init
  - 423064 Conditional jump or move depends on uninitialised value(s...
  - 423722 Fix printing header in gtk-demo
  - 424168 gtk_print_operation_run on async preview
  - 425655 Don't install gtk+-unix-print-2.0.pc on non-UNIX platforms
  - 425786 GDK segfaults if XineramaQueryScreens fails
  - 428665 Lpr Backend gets stuck in infinite loop during gtk_enumer...
  - 429902 GtkPrintOperation leaks cairo contextes
  - 431997 First delay of GdkPixbufAnimationIter is wrong
  - 433242 Inconsistent scroll arrow position calculations
  - 433972 Placing gtk.Expander inside a gtk.TextView() changes gtk....
  - 434261 _gtk_toolbar_elide_underscores incorrectly handles some s...
  - 383354 ctrl-L should make 'Location' entry disappear
  - 418673 gtk_recent_manager_add_item
  - 429732 gtk_accel_group_finalize accesses invalid memory
  - 435028 WM_CLIENT_LEADER is wrong on the leader_window
  - 431067 Background of the header window is not updated
  - 338843 add recent files support inside the ui manager
  - 148535 add drop shadow to menus, tooltips, etc. under Windows XP
* debian/control.in:
  - Conflicts on ubuntulooks (<= 0.9.11-1)
* debian/patches/15_default-fallback-icon-theme.patch:
  - patch from Debian, fallback on gnome icon theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<refentry id="GtkRecentChooserDialog">
 
2
<refmeta>
 
3
<refentrytitle role="top_of_page">GtkRecentChooserDialog</refentrytitle>
 
4
<manvolnum>3</manvolnum>
 
5
<refmiscinfo>GTK Library</refmiscinfo>
 
6
</refmeta>
 
7
 
 
8
<refnamediv>
 
9
<refname>GtkRecentChooserDialog</refname>
 
10
<refpurpose>Displays recently used files in a dialog</refpurpose>
 
11
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
 
12
</refnamediv>
 
13
 
 
14
<refsynopsisdiv role="synopsis">
 
15
<title role="synopsis.title">Synopsis</title>
 
16
 
 
17
<synopsis>
 
18
 
 
19
#include &lt;gtk/gtk.h&gt;
 
20
 
 
21
 
 
22
                    <link linkend="GtkRecentChooserDialog-struct">GtkRecentChooserDialog</link>;
 
23
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-recent-chooser-dialog-new">gtk_recent_chooser_dialog_new</link>       (const <link linkend="gchar">gchar</link> *title,
 
24
                                                         <link linkend="GtkWindow">GtkWindow</link> *parent,
 
25
                                                         const <link linkend="gchar">gchar</link> *first_button_text,
 
26
                                                         ...);
 
27
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-recent-chooser-dialog-new-for-manager">gtk_recent_chooser_dialog_new_for_manager</link>
 
28
                                                        (const <link linkend="gchar">gchar</link> *title,
 
29
                                                         <link linkend="GtkWindow">GtkWindow</link> *parent,
 
30
                                                         <link linkend="GtkRecentManager">GtkRecentManager</link> *manager,
 
31
                                                         const <link linkend="gchar">gchar</link> *first_button_text,
 
32
                                                         ...);
 
33
 
 
34
 
 
35
</synopsis>
 
36
</refsynopsisdiv>
 
37
 
 
38
<refsect1 role="object_hierarchy">
 
39
<title role="object_hierarchy.title">Object Hierarchy</title>
 
40
<synopsis>
 
41
 
 
42
  <link linkend="GObject">GObject</link>
 
43
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
 
44
         +----<link linkend="GtkObject">GtkObject</link>
 
45
               +----<link linkend="GtkWidget">GtkWidget</link>
 
46
                     +----<link linkend="GtkContainer">GtkContainer</link>
 
47
                           +----<link linkend="GtkBin">GtkBin</link>
 
48
                                 +----<link linkend="GtkWindow">GtkWindow</link>
 
49
                                       +----<link linkend="GtkDialog">GtkDialog</link>
 
50
                                             +----GtkRecentChooserDialog
 
51
</synopsis>
 
52
 
 
53
</refsect1>
 
54
 
 
55
 
 
56
 
 
57
<refsect1 role="impl_interfaces">
 
58
<title role="impl_interfaces.title">Implemented Interfaces</title>
 
59
<para>
 
60
GtkRecentChooserDialog implements
 
61
 <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkRecentChooser">GtkRecentChooser</link>.</para>
 
62
 
 
63
</refsect1>
 
64
 
 
65
 
 
66
 
 
67
 
 
68
 
 
69
<refsect1 role="desc">
 
70
<title role="desc.title">Description</title>
 
71
<para>
 
72
<link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link> is a dialog box suitable for displaying the recently
 
73
used documents.  This widgets works by putting a <link linkend="GtkRecentChooserWidget"><type>GtkRecentChooserWidget</type></link> inside
 
74
a <link linkend="GtkDialog"><type>GtkDialog</type></link>.  It exposes the <link linkend="GtkRecentChooserIface"><type>GtkRecentChooserIface</type></link> interface, so you can use
 
75
all the <link linkend="GtkRecentChooser"><type>GtkRecentChooser</type></link> functions on the recent chooser dialog as well as
 
76
those for <link linkend="GtkDialog"><type>GtkDialog</type></link>.
 
77
</para>
 
78
 
 
79
<para>
 
80
Note that <link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link> does not have any methods of its own.
 
81
Instead, you should use the functions that work on a <link linkend="GtkRecentChooser"><type>GtkRecentChooser</type></link>.
 
82
</para>
 
83
 
 
84
<example id="gtkrecentchooser-typical-usage">
 
85
  <title>Typical usage</title>
 
86
 
 
87
  <para>
 
88
    In the simplest of cases, you can use the following code to use
 
89
    a <link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link> to select a recently used file:
 
90
  </para>
 
91
 
 
92
  <programlisting>
 
93
GtkWidget *dialog;
 
94
 
 
95
dialog = gtk_recent_chooser_dialog_new ("Recent Documents",
 
96
                                        parent_window,
 
97
                                        GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 
98
                                        GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
 
99
                                        NULL);
 
100
                                        
 
101
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
 
102
  {
 
103
    GtkRecentInfo *info;
 
104
 
 
105
    info = gtk_recent_chooser_get_current_item (GTK_RECENT_CHOOSER (dialog));
 
106
    open_file (gtk_recent_info_get_uri (info));
 
107
    gtk_recent_info_unref (info);
 
108
  }
 
109
 
 
110
gtk_widget_destroy (dialog);
 
111
  </programlisting>
 
112
</example>
 
113
 
 
114
<para>
 
115
Recently used files are supported since GTK+ 2.10.
 
116
</para>
 
117
</refsect1>
 
118
 
 
119
<refsect1 role="details">
 
120
<title role="details.title">Details</title>
 
121
<refsect2>
 
122
<title><anchor id="GtkRecentChooserDialog-struct" role="struct"/>GtkRecentChooserDialog</title>
 
123
<indexterm><primary>GtkRecentChooserDialog</primary></indexterm><programlisting>typedef struct _GtkRecentChooserDialog GtkRecentChooserDialog;</programlisting>
 
124
<para>
 
125
 
 
126
</para></refsect2>
 
127
<refsect2>
 
128
<title><anchor id="gtk-recent-chooser-dialog-new" role="function" condition="since:2.10"/>gtk_recent_chooser_dialog_new ()</title>
 
129
<indexterm role="2.10"><primary>gtk_recent_chooser_dialog_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_recent_chooser_dialog_new       (const <link linkend="gchar">gchar</link> *title,
 
130
                                                         <link linkend="GtkWindow">GtkWindow</link> *parent,
 
131
                                                         const <link linkend="gchar">gchar</link> *first_button_text,
 
132
                                                         ...);</programlisting>
 
133
<para>
 
134
Creates a new <link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link>.  This function is analogous to
 
135
<link linkend="gtk-dialog-new-with-buttons"><function>gtk_dialog_new_with_buttons()</function></link>.</para>
 
136
<para>
 
137
 
 
138
</para><variablelist role="params">
 
139
<varlistentry><term><parameter>title</parameter>&nbsp;:</term>
 
140
<listitem><simpara> Title of the dialog, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
 
141
</simpara></listitem></varlistentry>
 
142
<varlistentry><term><parameter>parent</parameter>&nbsp;:</term>
 
143
<listitem><simpara> Transient parent of the dialog, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>,
 
144
</simpara></listitem></varlistentry>
 
145
<varlistentry><term><parameter>first_button_text</parameter>&nbsp;:</term>
 
146
<listitem><simpara> stock ID or text to go in the first button, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
 
147
</simpara></listitem></varlistentry>
 
148
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
 
149
<listitem><simpara> response ID for the first button, then additional (button, id)
 
150
  pairs, ending with <link linkend="NULL:CAPS"><literal>NULL</literal></link>
 
151
</simpara></listitem></varlistentry>
 
152
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new <link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link>
 
153
 
 
154
</simpara></listitem></varlistentry>
 
155
</variablelist><para role="since">Since  2.10
 
156
</para></refsect2>
 
157
<refsect2>
 
158
<title><anchor id="gtk-recent-chooser-dialog-new-for-manager" role="function" condition="since:2.10"/>gtk_recent_chooser_dialog_new_for_manager ()</title>
 
159
<indexterm role="2.10"><primary>gtk_recent_chooser_dialog_new_for_manager</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_recent_chooser_dialog_new_for_manager
 
160
                                                        (const <link linkend="gchar">gchar</link> *title,
 
161
                                                         <link linkend="GtkWindow">GtkWindow</link> *parent,
 
162
                                                         <link linkend="GtkRecentManager">GtkRecentManager</link> *manager,
 
163
                                                         const <link linkend="gchar">gchar</link> *first_button_text,
 
164
                                                         ...);</programlisting>
 
165
<para>
 
166
Creates a new <link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link> with a specified recent manager.
 
167
</para>
 
168
<para>
 
169
This is useful if you have implemented your own recent manager, or if you
 
170
have a customized instance of a <link linkend="GtkRecentManager"><type>GtkRecentManager</type></link> object.</para>
 
171
<para>
 
172
 
 
173
</para><variablelist role="params">
 
174
<varlistentry><term><parameter>title</parameter>&nbsp;:</term>
 
175
<listitem><simpara> Title of the dialog, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
 
176
</simpara></listitem></varlistentry>
 
177
<varlistentry><term><parameter>parent</parameter>&nbsp;:</term>
 
178
<listitem><simpara> Transient parent of the dialog, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>,
 
179
</simpara></listitem></varlistentry>
 
180
<varlistentry><term><parameter>manager</parameter>&nbsp;:</term>
 
181
<listitem><simpara> a <link linkend="GtkRecentManager"><type>GtkRecentManager</type></link>
 
182
</simpara></listitem></varlistentry>
 
183
<varlistentry><term><parameter>first_button_text</parameter>&nbsp;:</term>
 
184
<listitem><simpara> stock ID or text to go in the first button, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
 
185
</simpara></listitem></varlistentry>
 
186
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
 
187
<listitem><simpara> response ID for the first button, then additional (button, id)
 
188
  pairs, ending with <link linkend="NULL:CAPS"><literal>NULL</literal></link>
 
189
</simpara></listitem></varlistentry>
 
190
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new <link linkend="GtkRecentChooserDialog"><type>GtkRecentChooserDialog</type></link>
 
191
 
 
192
</simpara></listitem></varlistentry>
 
193
</variablelist><para role="since">Since  2.10
 
194
</para></refsect2>
 
195
 
 
196
</refsect1>
 
197
 
 
198
 
 
199
 
 
200
<refsect1>
 
201
<title>See Also</title>
 
202
<para>
 
203
<link linkend="GtkRecentChooser"><type>GtkRecentChooser</type></link>, <link linkend="GtkDialog"><type>GtkDialog</type></link>
 
204
</para>
 
205
</refsect1>
 
206
 
 
207
</refentry>