1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Displays recently used files in a dialog
7 <!-- ##### SECTION Long_Description ##### -->
9 #GtkRecentChooserDialog is a dialog box suitable for displaying the recently
10 used documents. This widgets works by putting a #GtkRecentChooserWidget inside
11 a #GtkDialog. It exposes the #GtkRecentChooserIface interface, so you can use
12 all the #GtkRecentChooser functions on the recent chooser dialog as well as
17 Note that #GtkRecentChooserDialog does not have any methods of its own.
18 Instead, you should use the functions that work on a #GtkRecentChooser.
21 <example id="gtkrecentchooser-typical-usage">
22 <title>Typical usage</title>
25 In the simplest of cases, you can use the following code to use
26 a #GtkRecentChooserDialog to select a recently used file:
32 dialog = gtk_recent_chooser_dialog_new ("Recent Documents",
34 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
35 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
38 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
42 info = gtk_recent_chooser_get_current_item (GTK_RECENT_CHOOSER (dialog));
43 open_file (gtk_recent_info_get_uri (info));
44 gtk_recent_info_unref (info);
47 gtk_widget_destroy (dialog);
52 Recently used files are supported since GTK+ 2.10.
55 <!-- ##### SECTION See_Also ##### -->
57 #GtkRecentChooser, #GtkDialog
60 <!-- ##### SECTION Stability_Level ##### -->
63 <!-- ##### SECTION Image ##### -->
66 <!-- ##### STRUCT GtkRecentChooserDialog ##### -->
72 <!-- ##### FUNCTION gtk_recent_chooser_dialog_new ##### -->
84 <!-- ##### FUNCTION gtk_recent_chooser_dialog_new_for_manager ##### -->