Top | ![]() |
![]() |
![]() |
![]() |
void | (*FmSidePaneUpdatePopup) () |
FmSidePane * | fm_side_pane_new () |
FmPath * | fm_side_pane_get_cwd () |
void | fm_side_pane_chdir () |
void | fm_side_pane_set_mode () |
FmSidePaneMode | fm_side_pane_get_mode () |
GtkWidget * | fm_side_pane_get_title_bar () |
void | fm_side_pane_set_popup_updater () |
const char * | fm_side_pane_get_mode_name () |
FmSidePaneMode | fm_side_pane_get_mode_by_name () |
gint | fm_side_pane_get_n_modes () |
const char * | fm_side_pane_get_mode_label () |
const char * | fm_side_pane_get_mode_tooltip () |
gboolean | fm_side_pane_set_show_hidden () |
gboolean | fm_side_pane_set_home_dir () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GtkVBox ╰── FmSidePane
include
: libfm/fm-gtk.h
The FmSidePane widget displays side pane for fast navigation across places.
void (*FmSidePaneUpdatePopup) (FmSidePane *sp
,GtkUIManager *ui
,GtkActionGroup *act_grp
,FmFileInfo *file
,gpointer user_data
);
The callback to update popup menu. It can disable items of menu, add
some new, replace actions, etc. depending of the window and files.
In some cases file
may be incomplete so callback should check that.
sp |
the side pane widget |
|
ui |
the object to add interface |
|
act_grp |
group of actions to add action |
|
file |
the file the popup menu was created for |
|
user_data |
pointer passed to |
FmPath *
fm_side_pane_get_cwd (FmSidePane *sp
);
Retrieves current active path in the side pane. Returned data are owned by side pane and should not be freed by caller.
Since: 0.1.12
void fm_side_pane_chdir (FmSidePane *sp
,FmPath *path
);
Changes active path in the side pane.
Since: 0.1.12
void fm_side_pane_set_mode (FmSidePane *sp
,FmSidePaneMode mode
);
Changes side pane view mode.
Since: 0.1.12
FmSidePaneMode
fm_side_pane_get_mode (FmSidePane *sp
);
Retrieves side pane view mode.
Since: 0.1.12
GtkWidget *
fm_side_pane_get_title_bar (FmSidePane *sp
);
Retrieves side pane title bar widget.
Since: 0.1.14
void fm_side_pane_set_popup_updater (FmSidePane *sp
,FmSidePaneUpdatePopup update_popup
,gpointer user_data
);
Sets up the callback to update context menu on any item in the sidebar widget.
sp |
a widget to set |
|
update_popup |
a callback to update popup. |
[allow-none] |
user_data |
user data supplied for callback |
Since: 1.2.0
const char *
fm_side_pane_get_mode_name (FmSidePaneMode mode
);
Retrieves the name of the specified side pane mode
, or NULL
if mode
is invalid. The name of mode may be used for config save or another
similar purpose. Returned data are owned by implementation and should
be not freed by caller.
Since: 1.2.0
FmSidePaneMode
fm_side_pane_get_mode_by_name (const char *str
);
Finds mode which have an associated name equal to str
.
Since: 1.2.0
gint
fm_side_pane_get_n_modes (void
);
Tests how many view modes are known to create FmSidePane widget. The returned value is the highest FmSidePaneMode that can be used due to historical reasons since FmSidePaneMode equal to 0 is invalid.
Since: 1.2.0
const char *
fm_side_pane_get_mode_label (FmSidePaneMode mode
);
Retrieves label for mode
which can be used in menus. Returned
data should not be freed by caller.
Since: 1.2.0
const char *
fm_side_pane_get_mode_tooltip (FmSidePaneMode mode
);
Retrieves tooltip for mode
which can be used in menus. Returned
data should not be freed by caller.
Since: 1.2.0
gboolean fm_side_pane_set_show_hidden (FmSidePane *sp
,gboolean show_hidden
);
Changes visibility of hidden files in side pane sp
.
Since: 1.2.0
gboolean fm_side_pane_set_home_dir (FmSidePane *sp
,const char *home_dir
);
Changes path used by side pane view for "Home" items if view mode has any such items.
Since: 1.2.0
Mode of side pane view.
struct FmSidePaneClass { GtkVBoxClass parent_class; void (*chdir)(FmSidePane* sp, guint button, FmPath* path); void (*mode_changed)(FmSidePane* sp); };
“chdir”
signalvoid user_function (FmSidePane *pane, guint button, gpointer path, gpointer user_data)
The “chdir” signal is emitted when current selected
directory in the pane
is changed.
pane |
the widget which emitted the signal |
|
button |
the button path was activated with |
|
path |
(FmPath *) new directory path |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.1.12
“mode-changed”
signalvoid user_function (FmSidePane *pane, gpointer user_data)
The “mode-changed” signal is emitted when view mode in the pane is changed.
pane |
the widget which emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.1.12