package Gtk.File_Chooser_Button is
package Implements_File_Chooser is new Glib.Types.Implements (Gtk.File_Chooser.Gtk_File_Chooser, Gtk_File_Chooser_Button_Record, Gtk_File_Chooser_Button);
type Gtk_File_Chooser_Button_Record is new Gtk.Box.Gtk_Hbox_Record with null record;
type Gtk_File_Chooser_Button is access all Gtk_File_Chooser_Button_Record'Class;
Dialog_Property : constant Glib.Properties.Property_Object;
Focus_On_Click_Property : constant Glib.Properties.Property_Boolean;
Title_Property : constant Glib.Properties.Property_String;
Width_Chars_Property : constant Glib.Properties.Property_Int;
function Get_Type return GType;
procedure Gtk_New
( | Button | : out Gtk_File_Chooser_Button; |
Title | : String; | |
Action | : Gtk.File_Chooser.File_Chooser_Action); |
procedure Initialize
( | Button | : access Gtk_File_Chooser_Button_Record'Class; |
Title | : String; | |
Action | : Gtk.File_Chooser.File_Chooser_Action); |
procedure Gtk_New_With_Backend
( | Button | : out Gtk_File_Chooser_Button; |
Title | : String; | |
Action | : Gtk.File_Chooser.File_Chooser_Action; | |
Backend | : String); |
procedure Initialize_With_Backend
( | Button | : access Gtk_File_Chooser_Button_Record'Class; |
Title | : String; | |
Action | : Gtk.File_Chooser.File_Chooser_Action; | |
Backend | : String); |
procedure Gtk_New_With_Dialog
( | Button | : out Gtk_File_Chooser_Button; |
Dialog | : access Gtk_File_Chooser_Dialog_Record'Class); |
procedure Initialize_With_Dialog
( | Button | : access Gtk_File_Chooser_Button_Record'Class; |
Dialog | : access Gtk_File_Chooser_Dialog_Record'Class); |
procedure Set_Title
( | Button | : access Gtk_File_Chooser_Button_Record; |
Title | : String); |
function Get_Title
( | Button | : access Gtk_File_Chooser_Button_Record) return String; |
procedure Set_Width_Chars
( | Button | : access Gtk_File_Chooser_Button_Record; |
N_Chars | : Gint); |
function Get_Width_Chars
( | Button | : access Gtk_File_Chooser_Button_Record) return Gint; |
function Get_Focus_On_Click
( | Button | : access Gtk_File_Chooser_Button_Record) return Boolean; |
procedure Set_Focus_On_Click
( | Button | : access Gtk_File_Chooser_Button_Record; |
Focus_On_Click | : Boolean); |
function "+"
( | Button | : access Gtk_File_Chooser_Button_Record'Class) return Gtk.File_Chooser.Gtk_File_Chooser renames Implements_File_Chooser.To_Interface; |
function "-"
( | File | : Gtk.File_Chooser.Gtk_File_Chooser) return Gtk_File_Chooser_Button renames Implements_File_Chooser.To_Object; |
The Gtk_File_Chooser_Button is a widget that lets the user select a file.
It implements the Gtk_File_Chooser interface. Visually, it is a file name with a button to bring up a Gtk_File_Chooser_Dialog. The user can then use that dialog to change the file associated with that button. This widget does not support setting the "select-multiple" property to TRUE.
The Gtk_File_Chooser_Button supports the File_Chooser_Actions Action_Open and Action_Select_Folder.
The Gtk_File_Chooser_Button will ellipsize the label, and thus will request little horizontal space. To give the button more space, you should call Gtk.Widget.Size_Request, Set_Width_Chars, or pack the button in such a way that other interface elements give space to the widget.
Binding from C File version 2.16.6