![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
struct FmDirTreeView; struct FmDirTreeViewClass; void fm_dir_tree_view_chdir (FmDirTreeView *view
,FmPath *path
); FmPath * fm_dir_tree_view_get_cwd (FmDirTreeView *view
); FmDirTreeView * fm_dir_tree_view_new (void
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkTreeView +----FmDirTreeView
FmDirTreeView implements AtkImplementorIface, GtkBuildable and GtkScrollable.
include
: libfm/fm-dir-tree-view.h
The FmDirTreeView represents view of filesystem as ierarchical tree of folders where each node can be expanded or collapsed when required.
struct FmDirTreeViewClass { GtkTreeViewClass parent_class; void (*chdir)(FmDirTreeView* view, guint button, FmPath* path); };
the parent class | |
the class closure for the "chdir" signal. |
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.
|
the widget to change |
|
new directory |
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.
|
the widget to retrieve info |
Returns : |
current directory path. [transfer none] |
Since 0.1.0
FmDirTreeView * fm_dir_tree_view_new (void
);
Creates new FmDirTreeView widget.
Returns : |
a new FmDirTreeView object. |
Since 0.1.0
"chdir"
signalvoid user_function (FmDirTreeView *view,
guint button,
gpointer path,
gpointer user_data) : Run Last
The "chdir" signal is emitted when current selected directory in view is changed.
|
a view instance that emitted the signal |
|
always is 1 |
|
(FmPath *) new directory path |
|
user data set when the signal handler was connected. |
Since 0.1.0