Package: gtk

Class gtk-recent-chooser-dialog

Superclasses

Documented Subclasses

None

Direct Slots

None

Details

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

Note that gtk-recent-chooser-dialog does not have any methods of its own. Instead, you should use the functions that work on a gtk-recent-chooser.

Example

In the simplest of cases, you can use the following code to use a gtk-recent-chooser-dialog to select a recently used file:
GtkWidget *dialog;

dialog = gtk_recent_chooser_dialog_new ("Recent Documents", parent_window, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);

if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) { GtkRecentInfo *info;

info= gtk_recent_chooser_get_current_item (GTK_RECENT_CHOOSER (dialog)); open_file (gtk_recent_info_get_uri (info)); gtk_recent_info_unref (info); }

gtk_widget_destroy (dialog);
 

Inherited Slot Access Functions

gtk-recent-chooser-filter
gtk-recent-chooser-limit
gtk-recent-chooser-local-only
gtk-recent-chooser-recent-manager
gtk-recent-chooser-select-multiple
gtk-recent-chooser-show-icons
gtk-recent-chooser-show-not-found
gtk-recent-chooser-show-private
gtk-recent-chooser-show-tips
gtk-recent-chooser-sort-type
gtk-container-border-width
gtk-container-child
gtk-container-resize-mode
gtk-window-accept-focus
gtk-window-application
gtk-window-attached-to
gtk-window-decorated
gtk-window-default-height
gtk-window-default-width
gtk-window-deletable
gtk-window-destroy-with-parent
gtk-window-focus-on-map
gtk-window-focus-visible
gtk-window-gravity
gtk-window-has-resize-grip
gtk-window-has-toplevel-focus
gtk-window-hide-titlebar-when-maximized
gtk-window-icon
gtk-window-icon-name
gtk-window-is-active
gtk-window-mnemonics-visible
gtk-window-modal
gtk-window-opacity
gtk-window-resizable
gtk-window-resize-grip-visible
gtk-window-role
gtk-window-screen
gtk-window-skip-pager-hint
gtk-window-skip-taskbar-hint
gtk-window-startup-id
gtk-window-title
gtk-window-transient-for
gtk-window-type
gtk-window-type-hint
gtk-window-urgency-hint
gtk-window-window-position
gtk-dialog-use-header-bar
gtk-widget-app-paintable
gtk-widget-can-default
gtk-widget-can-focus
gtk-widget-composite-child
gtk-widget-double-buffered
gtk-widget-events
gtk-widget-expand
gtk-widget-focus-on-click
gtk-widget-halign
gtk-widget-has-default
gtk-widget-has-focus
gtk-widget-has-tooltip
gtk-widget-height-request
gtk-widget-hexpand
gtk-widget-hexpand-set
gtk-widget-is-focus
gtk-widget-margin
gtk-widget-margin-bottom
gtk-widget-margin-end
gtk-widget-margin-left
gtk-widget-margin-right
gtk-widget-margin-start
gtk-widget-margin-top
gtk-widget-name
gtk-widget-no-show-all
gtk-widget-opacity
gtk-widget-parent
gtk-widget-receives-default
gtk-widget-scale-factor
gtk-widget-sensitive
gtk-widget-style
gtk-widget-tooltip-markup
gtk-widget-tooltip-text
gtk-widget-valign
gtk-widget-vexpand
gtk-widget-vexpand-set
gtk-widget-visible
gtk-widget-width-request
gtk-widget-window
g-object-has-reference
g-object-pointer
g-object-signal-handlers

See also

2020-9-13