FmStandardView

FmStandardView — A folder view widget based on libexo.

Synopsis

#define             FM_STANDARD_VIEW_TYPE
                    FmStandardView;
struct              FmStandardViewClass;
enum                FmStandardViewMode;
FmStandardViewMode  fm_standard_view_get_mode           (FmStandardView *fv);
FmStandardView *    fm_standard_view_new                (FmStandardViewMode mode,
                                                         FmFolderViewUpdatePopup update_popup,
                                                         FmLaunchFolderFunc open_folders);
void                fm_standard_view_set_mode           (FmStandardView *fv,
                                                         FmStandardViewMode mode);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkScrolledWindow
                                       +----FmStandardView

Implemented Interfaces

FmStandardView implements AtkImplementorIface, GtkBuildable and FmFolderView.

Description

include: libfm/fm-standard-view.h

The FmStandardView represents view of content of a folder with support of drag & drop and other file/directory operations.

Details

FM_STANDARD_VIEW_TYPE

#define FM_STANDARD_VIEW_TYPE               (fm_standard_view_get_type())

FmStandardView

typedef struct _FmStandardView FmStandardView;

struct FmStandardViewClass

struct FmStandardViewClass {
};

enum FmStandardViewMode

typedef enum {
    FM_FV_ICON_VIEW,
    FM_FV_COMPACT_VIEW,
    FM_FV_THUMBNAIL_VIEW,
    FM_FV_LIST_VIEW
} FmStandardViewMode;

FM_FV_ICON_VIEW

standard icon view

FM_FV_COMPACT_VIEW

view with small icons and text on right of them

FM_FV_THUMBNAIL_VIEW

view with big icons/thumbnails

FM_FV_LIST_VIEW

table-form view

fm_standard_view_get_mode ()

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.

fv :

a widget to inspect

Returns :

current mode of view.

Since 0.1.0


fm_standard_view_new ()

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]

Returns :

a new FmStandardView widget.

Since 1.0.1


fm_standard_view_set_mode ()

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.

fv :

a widget to apply

mode :

new mode of view

Since 0.1.0