![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
#define FM_PLACES_VIEW_TYPE struct FmPlacesView; struct FmPlacesViewClass; void fm_places_view_chdir (FmPlacesView *pv
,FmPath *path
); FmPlacesView * fm_places_view_new (void
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----FmPlacesView
include
: libfm/fm-gtk.h
The FmPlacesView displays list of pseudo-folders which contains such items as Home directory, Trash bin, mounted removable drives, bookmarks, etc.
struct FmPlacesViewClass { GtkTreeViewClass parent_class; void (*chdir)(FmPlacesView* view, guint button, FmPath* path); void (*item_popup)(FmPlacesView* view, GtkUIManager* ui, GtkActionGroup* act_grp, FmFileInfo* file); };
the parent class | |
the class closure for the "chdir" signal | |
the class closure for the "item-popup" signal |
void fm_places_view_chdir (FmPlacesView *pv
,FmPath *path
);
Changes active path and eventually sends the "chdir" signal.
Before 1.0.0 this call had name fm_places_chdir. Before 0.1.12 this call had name fm_places_select.
|
a widget to apply |
|
the new path |
Since 0.1.0
FmPlacesView * fm_places_view_new (void
);
Creates new FmPlacesView widget.
Returns : |
a new FmPlacesView object. [transfer full] |
Since 0.1.0
"home-dir-path"
property "home-dir-path" gchar* : Read / Write
The "home-dir-path" property defines which path will
be used on Home item activation. Value of NULL
resets it to the
default.
Default value: "/usr/src"
Since 1.2.0
"chdir"
signalvoid user_function (FmPlacesView *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 |
|
the button row was activated with |
|
(FmPath *) new directory path |
|
user data set when the signal handler was connected. |
Since 0.1.0
"item-popup"
signalvoid user_function (FmPlacesView *view,
GObject *ui,
GObject *act_grp,
gpointer fi,
gpointer user_data) : Run Last
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.
|
a view instance that emitted the signal |
|
the GtkUIManager using to create the menu |
|
(GtkActionGroup *) the menu actions group |
|
(FmFileInfo *) the item where menu popup is activated |
|
user data set when the signal handler was connected. |
Since 1.2.0