## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: File_Selection

- Goto spec source

# Description

    package Gtk.File_Selection is

A Gtk_File_Selection is a general widget to interactively select file.

It displays a dialog in which the user can navigate through directories, select a file, and even manipulate files with operations like removing, renaming,...

Currently, only one file can be selected in the dialog.

Binding from C File version 2.8.17

<testgtk>create_file_selection.adb</testgtk>

### Screenshot

# Classes

### Gtk_File_Selection_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_File_Selection_Record is new
         Gtk.Dialog.Gtk_Dialog_Record with private;

#### Ancestors:

Gtk.Dialog.Gtk_Dialog_Record
Gtk.Window.Gtk_Window_Record
Gtk.Bin.Gtk_Bin_Record
Gtk.Container.Gtk_Container_Record
Gtk.Widget.Gtk_Widget_Record
Glib.Object.GObject_Record

#### Immediate Children:

Gtkada.File_Selection.Gtkada_File_Selection_Record

#### Primitive operations:

Complete

- To API doc
- To spec

Get_Action_Area

- To API doc
- To spec

(overriding Gtk.Dialog.Get_Action_Area)
Get_Button_Area

- To API doc
- To spec

Get_Cancel_Button

- To API doc
- To spec

Get_Dir_List

- To API doc
- To spec

Get_File_List

- To API doc
- To spec

Get_Filename

- To API doc
- To spec

Get_Help_Button

- To API doc
- To spec

Get_History_Pulldown

- To API doc
- To spec

Get_Ok_Button

- To API doc
- To spec

Get_Select_Multiple

- To API doc
- To spec

Get_Selection_Entry

- To API doc
- To spec

Get_Selection_Text

- To API doc
- To spec

Get_Selections

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Bin.Get_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Add

- To API doc
- To spec

(Inherited)
Gtk.Container.Check_Resize

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Set_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Type

- To API doc
- To spec

(Inherited)
Gtk.Container.Forall

- To API doc
- To spec

(Inherited)
Gtk.Container.Foreach

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Propagate_Expose

- To API doc
- To spec

(Inherited)
Gtk.Container.Remove

- To API doc
- To spec

(Inherited)
Gtk.Container.Resize_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Reallocate_Redraws

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Unset_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Add_Action_Widget

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Add_Button

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Get_Content_Area

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Get_Has_Separator

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Get_Response_For_Widget

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Get_Vbox

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Get_Widget_For_Response

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Response

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Run

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Set_Alternative_Button_Order_From_Array

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Set_Default_Response

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Set_Has_Separator

- To API doc
- To spec

(Inherited)
Gtk.Dialog.Set_Response_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Widget.Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Can_Activate_Accel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Layout

- To API doc
- To spec

(Inherited)
Gtk.Widget.Destroy

- To API doc
- To spec

(Inherited)
Gtk.Widget.Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Ensure_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Error_Bell

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flag_Is_Set

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Freeze_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Height

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Width

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_X

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Y

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Requisition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pointer

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Root_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Snapshot

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Toplevel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Visual

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Default

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Has_Screen

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Input_Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Composited

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Keynav_Failed

- To API doc
- To spec

(Inherited)
Gtk.Widget.List_Mnemonic_Labels

- To API doc
- To spec

(Inherited)
Gtk.Widget.Map

- To API doc
- To spec

(Inherited)
Gtk.Widget.Mnemonic_Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Base

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Bg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Cursor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Fg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Font

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize_No_Redraw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Realize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Region_Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Render_Icon

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reparent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Rc_Styles

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Shapes

- To API doc
- To spec

(Inherited)
Gtk.Widget.Restore_Default_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Send_Expose

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_App_Paintable

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Double_Buffered

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Redraw_On_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Scroll_Adjustments

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_UPosition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_USize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_Now

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Style_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Widget.Thaw_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Trigger_Tooltip_Query

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unmap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unrealize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unset_Flags

- To API doc
- To spec

(Inherited)
Gtk.Window.Activate_Default

- To API doc
- To spec

(Inherited)
Gtk.Window.Activate_Focus

- To API doc
- To spec

(Inherited)
Gtk.Window.Activate_Key

- To API doc
- To spec

(Inherited)
Gtk.Window.Add_Accel_Group

- To API doc
- To spec

(Inherited)
Gtk.Window.Add_Mnemonic

- To API doc
- To spec

(Inherited)
Gtk.Window.Begin_Move_Drag

- To API doc
- To spec

(Inherited)
Gtk.Window.Begin_Resize_Drag

- To API doc
- To spec

(Inherited)
Gtk.Window.Deiconify

- To API doc
- To spec

(Inherited)
Gtk.Window.Fullscreen

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Accept_Focus

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Decorated

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Default_Size

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Default_Widget

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Deletable

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Destroy_With_Parent

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Focus

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Focus_On_Map

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Frame_Dimensions

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Gravity

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Group

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Has_Frame

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Icon

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Icon_List

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Icon_Name

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Mnemonic_Modifier

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Modal

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Opacity

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Position

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Resizable

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Role

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Size

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Skip_Pager_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Skip_Taskbar_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Title

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Transient_For

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Type_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Get_Urgency_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Has_Toplevel_Focus

- To API doc
- To spec

(Inherited)
Gtk.Window.Iconify

- To API doc
- To spec

(Inherited)
Gtk.Window.Is_Active

- To API doc
- To spec

(Inherited)
Gtk.Window.Maximize

- To API doc
- To spec

(Inherited)
Gtk.Window.Mnemonic_Activate

- To API doc
- To spec

(Inherited)
Gtk.Window.Move

- To API doc
- To spec

(Inherited)
Gtk.Window.Parse_Geometry

- To API doc
- To spec

(Inherited)
Gtk.Window.Present

- To API doc
- To spec

(Inherited)
Gtk.Window.Present_With_Time

- To API doc
- To spec

(Inherited)
Gtk.Window.Propagate_Key_Event

- To API doc
- To spec

(Inherited)
Gtk.Window.Remove_Accel_Group

- To API doc
- To spec

(Inherited)
Gtk.Window.Remove_Mnemonic

- To API doc
- To spec

(Inherited)
Gtk.Window.Reshow_With_Initial_Size

- To API doc
- To spec

(Inherited)
Gtk.Window.Resize

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Accept_Focus

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Decorated

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Default

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Default_Size

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Deletable

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Destroy_With_Parent

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Focus

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Focus_On_Map

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Frame_Dimensions

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Geometry_Hints

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Gravity

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Has_Frame

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Icon

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Icon_From_File

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Icon_List

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Icon_Name

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Keep_Above

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Keep_Below

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Mnemonic_Modifier

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Modal

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Opacity

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Policy

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Position

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Resizable

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Role

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Skip_Pager_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Skip_Taskbar_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Startup_Id

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Title

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Transient_For

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Type_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Urgency_Hint

- To API doc
- To spec

(Inherited)
Gtk.Window.Set_Wmclass

- To API doc
- To spec

(Inherited)
Gtk.Window.Stick

- To API doc
- To spec

(Inherited)
Gtk.Window.Unfullscreen

- To API doc
- To spec

(Inherited)
Gtk.Window.Unmaximize

- To API doc
- To spec

(Inherited)
Gtk.Window.Unstick

- To API doc
- To spec

(Inherited)
Hide_Fileop_Buttons

- To API doc
- To spec

Set_Filename

- To API doc
- To spec

Set_Select_Multiple

- To API doc
- To spec

Set_Show_File_Op_Buttons

- To API doc
- To spec

Show_Fileop_Buttons

- To API doc
- To spec

# Types

### Gtk_File_Selection

- Goto declaration in source

    type Gtk_File_Selection is access all Gtk_File_Selection_Record'Class;

# Constants & Global variables

### Filename_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Filename_Property        : constant Glib.Properties.Property_String;

### Show_Fileops_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Show_Fileops_Property    : constant Glib.Properties.Property_Boolean;

### Select_Multiple_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Select_Multiple_Property : constant Glib.Properties.Property_Boolean;

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (File_Selection: out Gtk_File_Selection;Title: UTF8_String);

### Initialize

- Goto spec in source

    procedure Initialize (File_Selection: access Gtk_File_Selection_Record'Class;Title: UTF8_String);

Creates or initializes a new file selection dialog. Title is the name of the dialog, as displayed in its title bar.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_File_Selection.

### Set_Filename

- Goto spec in source

    procedure Set_Filename (File_Selection: access Gtk_File_Selection_Record;Filename: UTF8_String);

### Get_Filename

- Goto spec in source

    function Get_Filename (File_Selection: access Gtk_File_Selection_Record) return UTF8_String;

Highlight the given file in the dialog. Note that this does not close the dialog. You can also use this procedure to select the directory to be displayed in the dialog. Along with Complete, this allows you to set some filters in the dialog.

### Get_Selections

- Goto spec in source

    function Get_Selections (Filesel: access Gtk_File_Selection_Record) return GNAT.Strings.String_List;

Retrieves the list of file selections the user has made in the dialog box. This function is intended for use when the user can select multiple files in the file list. The filenames are in the GLib file name encoding. To convert to UTF-8, call g_filename_to_utf8() on each string. The returned value must be freed by the caller

### Complete

- Goto spec in source

    procedure Complete (File_Selection: access Gtk_File_Selection_Record;Pattern: UTF8_String);

Set the filter used to display the files. The pattern is displayed in the entry at the bottom of the dialog, and the list of files displayed in the list.

### Show_Fileop_Buttons

- Goto spec in source

    procedure Show_Fileop_Buttons (File_Selection: access Gtk_File_Selection_Record);

### Hide_Fileop_Buttons

- Goto spec in source

    procedure Hide_Fileop_Buttons (File_Selection: access Gtk_File_Selection_Record);

When this function is called, the dialog includes a series of buttons for file operations (create directory, rename a file, delete a file).

### Set_Show_File_Op_Buttons

- Goto spec in source

    procedure Set_Show_File_Op_Buttons (File_Selection: access Gtk_File_Selection_Record;Flag: Boolean);

Choose whether to display or not the file operation buttons. If Flag is true, calls Show_Fileop_Buttons, otherwise calls Hide_Fileop_Buttons.

### Set_Select_Multiple

- Goto spec in source

    procedure Set_Select_Multiple (Filesel: access Gtk_File_Selection_Record;Select_Multiple: Boolean);

### Get_Select_Multiple

- Goto spec in source

    function Get_Select_Multiple (Filesel: access Gtk_File_Selection_Record) return Boolean;

Sets whether the user is allowed to select multiple files in the file list. Use Get_selections to get the list of selected files.

### Get_Action_Area

- Goto spec in source

    function Get_Action_Area (File_Selection: access Gtk_File_Selection_Record) return Gtk.Box.Gtk_Box;

Return the action area. This is the area that contains the list of files, the filter entry,etc.

### Get_Button_Area

- Goto spec in source

    function Get_Button_Area (File_Selection: access Gtk_File_Selection_Record) return Gtk.Box.Gtk_Box;

Return the button area. This is the area that contains the OK and Cancel buttons.

### Get_Dir_List

- Goto spec in source

    function Get_Dir_List (File_Selection: access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget;

Return the list that display the list of directories.

### Get_File_List

- Goto spec in source

    function Get_File_List (File_Selection: access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget;

Return the list that display the list of files in the selected directory

### Get_Cancel_Button

- Goto spec in source

    function Get_Cancel_Button (File_Selection: access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button;

Return the Cancel button. To remove this button from the dialog, call Hide on the return value. The callbacks on this button should simply close the dialog, but should ignore the file selected by the user.

### Get_Help_Button

- Goto spec in source

    function Get_Help_Button (File_Selection: access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button;

Return the Help button. To remove this button from the dialog, call Hide on the return value. The callbacks on this button should display a new dialog that explain what file the user should select.

### Get_Ok_Button

- Goto spec in source

    function Get_Ok_Button (File_Selection: access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button;

Return the OK button. The callbacks on this button should close the dialog and do something with the file selected by the user.

### Get_History_Pulldown

- Goto spec in source

    function Get_History_Pulldown (File_Selection: access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget;

Return the menu that display the history of directories for easy access by the user.

### Get_Selection_Entry

- Goto spec in source

    function Get_Selection_Entry (File_Selection: access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget;

Return the entry used to set the filter on the list of directories. The simplest way to insert text in this entry is to use the Complete procedure above.

### Get_Selection_Text

- Goto spec in source

    function Get_Selection_Text (File_Selection: access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget;

Return the text displayed just above the Selection_Entry.