Top | ![]() |
![]() |
![]() |
![]() |
FmStandardView * | fm_standard_view_new () |
void | fm_standard_view_set_mode () |
FmStandardViewMode | fm_standard_view_get_mode () |
const char * | fm_standard_view_mode_to_str () |
FmStandardViewMode | fm_standard_view_mode_from_str () |
gint | fm_standard_view_get_n_modes () |
const char * | fm_standard_view_get_mode_label () |
const char * | fm_standard_view_get_mode_tooltip () |
const char * | fm_standard_view_get_mode_icon () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkScrolledWindow ╰── FmStandardView
include
: libfm/fm-gtk.h
The FmStandardView represents view of content of a folder with support of drag & drop and other file/directory operations.
FmStandardView * fm_standard_view_new (FmStandardViewMode mode
,FmFolderViewUpdatePopup update_popup
,FmLaunchFolderFunc open_folders
);
Creates new folder view.
mode |
initial mode of view |
|
update_popup |
callback to update context menu for files. |
[allow-none] |
open_folders |
callback to open folder on activation. |
[allow-none] |
Since: 1.0.1
void fm_standard_view_set_mode (FmStandardView *fv
,FmStandardViewMode mode
);
Before 1.0.1 this API had name fm_folder_view_set_mode.
Changes current view mode for folder in fv
.
Since: 0.1.0
FmStandardViewMode
fm_standard_view_get_mode (FmStandardView *fv
);
Retrieves current view mode for folder in fv
.
Before 1.0.1 this API had name fm_folder_view_get_mode.
Since: 0.1.0
const char *
fm_standard_view_mode_to_str (FmStandardViewMode mode
);
Retrieves string name of rendering mode
. That name may be used for
config save or similar purposes. Returned data are owned by the
implementation and should be not freed by caller.
Since: 1.0.2
FmStandardViewMode
fm_standard_view_mode_from_str (const char *str
);
Finds mode which have an associated name equal to str
.
Since: 1.0.2
gint
fm_standard_view_get_n_modes (void
);
Tests how many view modes are known to create FmStandardView widget.
Since: 1.2.0
const char *
fm_standard_view_get_mode_label (FmStandardViewMode 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_standard_view_get_mode_tooltip (FmStandardViewMode mode
);
Retrieves detailed description for mode
which can be used in tooltip.
Returned data should not be freed by caller.
Since: 1.2.0
const char *
fm_standard_view_get_mode_icon (FmStandardViewMode mode
);
Retrieves icon name for mode
which can be used in menus. Returned
data should not be freed by caller.
Since: 1.2.0