Class

GntFileSel

Description

class Gnt.FileSel : Gnt.Window {
  parent_instance: GntWindow
}
No description available.

Constructors

gnt_file_sel_new

Create a new file selector.

Instance methods

gnt_file_sel_get_dirs_only

Check whether the file selector allows only selecting directories.

gnt_file_sel_get_must_exist

Check whether the selector allows selecting non-existent files.

gnt_file_sel_get_selected_file

Get the selected file in the selector.

gnt_file_sel_get_selected_multi_files

Get the list of selected files in the selector.

gnt_file_sel_set_current_location

Set the current location of the file selector.

gnt_file_sel_set_dirs_only

Set whether to only allow selecting directories.

gnt_file_sel_set_multi_select

Allow selecting multiple files.

gnt_file_sel_set_must_exist

Set whether a selected file must exist.

gnt_file_sel_set_suggested_filename

Set the suggested file to have selected at startup.

Methods inherited from GntWindow (7)
gnt_window_get_accel_item

Return the id of a menuitem specified to a keystroke.

since: 2.3

gnt_window_get_maximize

Get the maximization state of a window.

since: 2.3

gnt_window_get_menu

Get the menu for a window.

since: 2.14

gnt_window_set_maximize

Maximize a window, either horizontally or vertically, or both.

since: 2.3

gnt_window_set_menu

Set the menu for a window.

gnt_window_workspace_hiding
No description available.

gnt_window_workspace_showing
No description available.

Methods inherited from GntBox (15)
gnt_box_add_widget

Add a widget in the box.

gnt_box_add_widget_in_front

Add a widget in the box at its front.

since: 3.0

gnt_box_get_children

Returns a list of the children of the widget.

since: 2.14

gnt_box_get_title

Get the title for a box.

since: 3.0

gnt_box_give_focus_to_child

Give focus to a specific child widget.

gnt_box_move_focus

Move the focus from one widget to the other.

gnt_box_readjust

Readjust the size of each child widget, reposition the child widgets and recalculate the size of the box.

gnt_box_remove

Remove a widget from the box. Calling this does NOT destroy the removed widget.

gnt_box_remove_all

Remove all widgets from the box. This DOES destroy all widgets in the box.

gnt_box_set_alignment

Set the alignment for the widgets in the box.

gnt_box_set_fill

Set whether the widgets in the box should fill the empty spaces.

gnt_box_set_pad

Set the padding to use between the widgets in the box.

gnt_box_set_title

Set a title for the box.

gnt_box_set_toplevel

Set whether it’s a toplevel box (ie, a window) or not. If a box is toplevel, then it will show borders, the title (if set) and shadow (if enabled in .gntrc)

gnt_box_sync_children

Reposition and refresh the widgets in the box.

Methods inherited from GntWidget (48)

Please see GntWidget for a full list of methods.

Methods inherited from GntBindable (6)
gnt_bindable_bindings_view

Returns a GntTree populated with “key” -> “binding” for the widget.

since: 2.1.1

gnt_bindable_build_help_window

Builds a window that list the key bindings for a GntBindable object. From this window a user can select a listing to rebind a new key for the given action.

since: 2.1.1

gnt_bindable_check_key

Discover if a key is bound.

since: 2.4.2

gnt_bindable_perform_action_key

Perform an action from a keybinding.

gnt_bindable_perform_action_named

Perform an action on a bindable object.

gnt_bindable_remap_keys
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Properties inherited from GntBox (2)
Gnt.Box:homogeneous
No description available.

Gnt.Box:vertical
No description available.

Signals

Gnt.FileSel::cancelled
No description available.

Gnt.FileSel::file-selected
No description available.

Signals inherited from GntWindow (2)
GntWindow::workspace-hidden
No description available.

GntWindow::workspace-shown
No description available.

Signals inherited from GntWidget (15)
GntWidget::activate
No description available.

GntWidget::clicked
No description available.

GntWidget::confirm-size
No description available.

GntWidget::context-menu
No description available.

GntWidget::destroy
No description available.

GntWidget::draw
No description available.

GntWidget::expose
No description available.

GntWidget::gained-focus
No description available.

GntWidget::hide
No description available.

GntWidget::key-pressed
No description available.

GntWidget::lost-focus
No description available.

GntWidget::map
No description available.

GntWidget::position-set
No description available.

GntWidget::size-changed
No description available.

GntWidget::size-request
No description available.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GntFileSelClass {
  void (* file_selected) (
    GntFileSel* sel,
    const char* path,
    const char* filename
  );
  void (* cancelled) (
    GntFileSel* sel
  );
  
}

The class structure for GntFileSel.

Class members
file_selected: void (* file_selected) ( GntFileSel* sel, const char* path, const char* filename )
No description available.
cancelled: void (* cancelled) ( GntFileSel* sel )
No description available.

Virtual methods

Gnt.FileSelClass.cancelled
No description available.

Gnt.FileSelClass.file_selected
No description available.