GtkRecentChooserDialog: GtkRecentChooserDialog

Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Author(s) References See Also

Description

Displays recently used files in a dialog

Methods and Functions

gtkRecentChooserDialogNew(title = NULL, parent = NULL, ..., show = TRUE)
gtkRecentChooserDialogNewForManager(title = NULL, parent = NULL, manager, ..., show = TRUE)
gtkRecentChooserDialog(title = NULL, parent = NULL, ..., show = TRUE)

Hierarchy

1
2
3
4
5
6
7
8
9
GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkDialog
                                             +----GtkRecentChooserDialog

Interfaces

GtkRecentChooserDialog implements AtkImplementorIface, GtkBuildable and GtkRecentChooser.

Detailed Description

GtkRecentChooserDialog is a dialog box suitable for displaying the recently used documents. This widgets works by putting a GtkRecentChooserWidget inside a GtkDialog. It exposes the GtkRecentChooserIface interface, so you can use all the GtkRecentChooser functions on the recent chooser dialog as well as those for GtkDialog.

Note that GtkRecentChooserDialog does not have any methods of its own. Instead, you should use the functions that work on a GtkRecentChooser.

Typical usage

1
2
3
4
5
6
7
8
9
dialog <- gtkRecentChooserDialog("Recent Documents", parent_window,
                                 "gtk-cancel", GtkResponseType["cancel"],
                                 "gtk-open", GtkResponseType["accept"])
					
if (dialog$run() == GtkResponseType["accept"])
{
  info <- dialog$getCurrentItem()
  open_file(info$getUri())
}

Recently used files are supported since GTK+ 2.10.

Structures

GtkRecentChooserDialog

undocumented

Convenient Construction

gtkRecentChooserDialog is the equivalent of gtkRecentChooserDialogNew.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

https://developer.gnome.org/gtk2/stable/GtkRecentChooserDialog.html

See Also

GtkRecentChooser GtkDialog


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.