---
name: "Gnome2::FileEntry"
section: "3pm"
platform: "linux"
package: "libgnome2-perl"
version: "1.046-3+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::FileEntry"
---

# Gnome2::FileEntry(3pm)

wrapper for GnomeFileEntry

## NAME

Gnome2::FileEntry - wrapper for GnomeFileEntry

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Box
                           +----Gtk2::VBox
                                +----Gnome2::FileEntry
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Orientable
  Gtk2::Editable
```

## METHODS

### widget = Gnome2::FileEntry-\>new ($history\_id, $browse\_dialog\_title)

- •

  `$history_id` (string)

- •

  `$browse_dialog_title` (string)

### $fentry-\>set\_default\_path ($path)

- •

  `$path` (string)

### boolean = $fentry-\>get\_directory\_entry

### $fentry-\>set\_directory\_entry ($directory\_entry)

- •

  `$directory_entry` (boolean)

### $fentry-\>set\_filename ($filename)

- •

  `$filename` (string)

### string = $fentry-\>get\_full\_path ($file\_must\_exist)

- •

  `$file_must_exist` (boolean)

### widget = $fentry-\>gnome\_entry

### widget = $fentry-\>gtk\_entry

### boolean = $fentry-\>get\_modal

### $fentry-\>set\_modal ($is\_modal)

- •

  `$is_modal` (boolean)

### $fentry-\>set\_title ($browse\_dialog\_title)

- •

  `$browse_dialog_title` (string)

## PROPERTIES

- 'browse-dialog-title' (string : default undef : readable / writable)

  Title for the Browse file dialog.

- 'default-path' (string : default undef : readable / writable)

  Default path for the Browse file window.

- 'directory-entry' (boolean : default false : readable / writable)

  Whether the file entry is being used to enter directory names or complete filenames.

- 'filechooser-action' (Gtk2::FileChooserAction : default "open" : readable / writable)

  The type of operation that the file selector is performing.

- 'filename' (string : default undef : readable / writable)

  Filename that should be displayed in the file entry.

- 'gnome-entry' (Gnome2::Entry : default undef : readable)

  GnomeEntry that the file entry uses for entering filenames.  You can use this property to get the GnomeEntry if you need to modify or query any of its parameters.

- 'gtk-entry' (Gtk2::Entry : default undef : readable)

  GtkEntry that the file entry uses for entering filenames.  You can use this property to get the GtkEntry if you need to modify or query any of its parameters.

- 'history-id' (string : default undef : readable / writable)

  Unique identifier for the file entry.  This will be used to save the history list.

- 'modal' (boolean : default false : readable / writable)

  Whether the Browse file window should be modal.

- 'use-filechooser' (boolean : default false : readable / writable)

  Whether to use the new GtkFileChooser widget or the GtkFileSelection widget to select files.

## SIGNALS

- **activate** (Gnome2::FileEntry)

  - **browse-clicked** (Gnome2::FileEntry)

  ## ENUMS AND FLAGS

### enum Gtk2::FileChooserAction

- •

  'open' / 'GTK\_FILE\_CHOOSER\_ACTION\_OPEN'

- •

  'save' / 'GTK\_FILE\_CHOOSER\_ACTION\_SAVE'

- •

  'select-folder' / 'GTK\_FILE\_CHOOSER\_ACTION\_SELECT\_FOLDER'

- •

  'create-folder' / 'GTK\_FILE\_CHOOSER\_ACTION\_CREATE\_FOLDER'

## SEE ALSO

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::VBox

## COPYRIGHT

Copyright (C) 2003-2004 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gnome2 for a full notice.
