Interface

Gtk-3.0GtkRecentChooserInterface

Interface for implementing RecentChooser. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_add_filter(filter: Gtk.RecentFilter): void;
    vfunc_get_current_uri(): string;
    vfunc_get_items(): Gtk.RecentInfo[];
    vfunc_item_activated(): void;
    vfunc_list_filters(): Gtk.RecentFilter[];
    vfunc_remove_filter(filter: Gtk.RecentFilter): void;
    vfunc_select_all(): void;
    vfunc_select_uri(uri: string): boolean;
    vfunc_selection_changed(): void;
    vfunc_set_current_uri(uri: string): boolean;
    vfunc_set_sort_func(
        sort_func: RecentSortFunc,
        data_destroy?: DestroyNotify,
    ): void;
    vfunc_unselect_all(): void;
    vfunc_unselect_uri(uri: string): void;
}

Hierarchy (View Summary)

Index

Methods

  • Signal emitted when the user “activates” a recent item in the recent chooser.

    Returns void

  • Selects all the items inside chooser, if the chooser supports multiple selection.

    Returns void

  • Selects uri inside chooser.

    Parameters

    • uri: string

      a URI

    Returns boolean

  • Signal emitted when there is a change in the set of selected recently used resources.

    Returns void

  • Sets uri as the current URI for chooser.

    Parameters

    • uri: string

      a URI

    Returns boolean

  • Sets the comparison function used when sorting to be sort_func. If the chooser has the sort type set to #GTK_RECENT_SORT_CUSTOM then the chooser will sort using this function.

    To the comparison function will be passed two Gtk.RecentInfo structs and sort_data; sort_func should return a positive integer if the first item comes before the second, zero if the two items are equal and a negative integer if the first item comes after the second.

    Parameters

    Returns void

  • Unselects uri inside chooser.

    Parameters

    • uri: string

      a URI

    Returns void