Top | ![]() |
![]() |
![]() |
![]() |
FmDirTreeView * | fm_dir_tree_view_new () |
FmPath * | fm_dir_tree_view_get_cwd () |
void | fm_dir_tree_view_chdir () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkTreeView ╰── FmDirTreeView
include
: libfm/fm-gtk.h
The FmDirTreeView represents view of filesystem as ierarchical tree of folders where each node can be expanded or collapsed when required.
FmDirTreeView *
fm_dir_tree_view_new (void
);
Creates new FmDirTreeView widget.
Since: 0.1.0
FmPath *
fm_dir_tree_view_get_cwd (FmDirTreeView *view
);
Retrieves current selected directory. Returned data are owned by view
and should not be freed by caller.
Since: 0.1.0
void fm_dir_tree_view_chdir (FmDirTreeView *view
,FmPath *path
);
Queries change selected directory in the view
to new path
. The
widget will expand nodes in the tree if that will be needed to
reach requested path.
Since: 0.1.0
struct FmDirTreeViewClass { GtkTreeViewClass parent_class; void (*chdir)(FmDirTreeView* view, guint button, FmPath* path); void (*item_popup)(FmDirTreeView* view, GtkUIManager* ui, GtkActionGroup* act_grp, FmFileInfo* file); };
“show-hidden”
property “show-hidden” gboolean
The “show-hidden” property defines whether any hidden files be shown in the tree or not
Owner: FmDirTreeView
Flags: Read / Write
Default value: FALSE
Since: 1.2.0
“chdir”
signalvoid user_function (FmDirTreeView *view, guint button, gpointer path, gpointer user_data)
The “chdir” signal is emitted when current selected directory in view is changed.
view |
a view instance that emitted the signal |
|
button |
always is 1 |
|
path |
(FmPath *) new directory path |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.1.0
“item-popup”
signalvoid user_function (FmDirTreeView *view, GObject *ui, GObject *act_grp, gpointer fi, gpointer user_data)
The “item-popup” signal is emitted when context menu is created for any directory in the view. Handler can modify the menu by adding or removing elements.
view |
a view instance that emitted the signal |
|
ui |
the GtkUIManager using to create the menu |
|
act_grp |
(GtkActionGroup *) the menu actions group |
|
fi |
(FmFileInfo *) the item where menu popup is activated |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 1.2.0