fm-gtk-utils

fm-gtk-utils

Synopsis

void                fm_show_error                       (GtkWindow *parent,
                                                         const char *msg);
gboolean            fm_yes_no                           (GtkWindow *parent,
                                                         const char *question,
                                                         gboolean default_yes);
gboolean            fm_ok_cancel                        (GtkWindow *parent,
                                                         const char *question,
                                                         gboolean default_ok);
int                 fm_ask                              (GtkWindow *parent,
                                                         const char *question,
                                                         ...);
int                 fm_askv                             (GtkWindow *parent,
                                                         const char *question,
                                                         const char **options);
int                 fm_ask_valist                       (GtkWindow *parent,
                                                         const char *question,
                                                         va_list options);
char*               fm_get_user_input                   (GtkWindow *parent,
                                                         const char *title,
                                                         const char *msg,
                                                         const char *default_text);
FmPath*             fm_get_user_input_path              (GtkWindow *parent,
                                                         const char *title,
                                                         const char *msg,
                                                         FmPath *default_path);
FmPath*             fm_select_folder                    (GtkWindow *parent);
gboolean            fm_mount_path                       (GtkWindow *parent,
                                                         FmPath *path,
                                                         gboolean interactive);
gboolean            fm_mount_volume                     (GtkWindow *parent,
                                                         GVolume *vol,
                                                         gboolean interactive);
gboolean            fm_unmount_mount                    (GtkWindow *parent,
                                                         GMount *mount,
                                                         gboolean interactive);
gboolean            fm_unmount_volume                   (GtkWindow *parent,
                                                         GVolume *vol,
                                                         gboolean interactive);
gboolean            fm_eject_mount                      (GtkWindow *parent,
                                                         GMount *mount,
                                                         gboolean interactive);
gboolean            fm_eject_volume                     (GtkWindow *parent,
                                                         GVolume *vol,
                                                         gboolean interactive);
void                fm_copy_files                       (FmPathList *files,
                                                         FmPath *dest_dir);
void                fm_move_files                       (FmPathList *files,
                                                         FmPath *dest_dir);
#define             fm_copy_file                        (file,
                                                         dest_dir)
#define             fm_move_file                        (file,
                                                         dest_dir)
void                fm_move_or_copy_files_to            (FmPathList *files,
                                                         gboolean is_move);
#define             fm_move_files_to                    (files)
#define             fm_copy_files_to                    (files)
void                fm_trash_files                      (FmPathList *files);
void                fm_delete_files                     (FmPathList *files);
void                fm_trash_or_delete_files            (FmPathList *files);
void                fm_untrash_files                    (FmPathList *files);
void                fm_rename_file                      (FmPath *file);
void                fm_empty_trash                      ();
gboolean            fm_launch_files_simple              (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         GList *file_infos,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);
gboolean            fm_launch_file_simple               (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         FmFileInfo *file_info,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);
gboolean            fm_launch_paths_simple              (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         GList *paths,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);
gboolean            fm_launch_path_simple               (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         FmPath *path,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);

Description

Details

fm_show_error ()

void                fm_show_error                       (GtkWindow *parent,
                                                         const char *msg);

fm_yes_no ()

gboolean            fm_yes_no                           (GtkWindow *parent,
                                                         const char *question,
                                                         gboolean default_yes);

fm_ok_cancel ()

gboolean            fm_ok_cancel                        (GtkWindow *parent,
                                                         const char *question,
                                                         gboolean default_ok);

fm_ask ()

int                 fm_ask                              (GtkWindow *parent,
                                                         const char *question,
                                                         ...);

fm_askv ()

int                 fm_askv                             (GtkWindow *parent,
                                                         const char *question,
                                                         const char **options);

fm_ask_valist ()

int                 fm_ask_valist                       (GtkWindow *parent,
                                                         const char *question,
                                                         va_list options);

fm_get_user_input ()

char*               fm_get_user_input                   (GtkWindow *parent,
                                                         const char *title,
                                                         const char *msg,
                                                         const char *default_text);

fm_get_user_input_path ()

FmPath*             fm_get_user_input_path              (GtkWindow *parent,
                                                         const char *title,
                                                         const char *msg,
                                                         FmPath *default_path);

fm_select_folder ()

FmPath*             fm_select_folder                    (GtkWindow *parent);

fm_mount_path ()

gboolean            fm_mount_path                       (GtkWindow *parent,
                                                         FmPath *path,
                                                         gboolean interactive);

fm_mount_volume ()

gboolean            fm_mount_volume                     (GtkWindow *parent,
                                                         GVolume *vol,
                                                         gboolean interactive);

fm_unmount_mount ()

gboolean            fm_unmount_mount                    (GtkWindow *parent,
                                                         GMount *mount,
                                                         gboolean interactive);

fm_unmount_volume ()

gboolean            fm_unmount_volume                   (GtkWindow *parent,
                                                         GVolume *vol,
                                                         gboolean interactive);

fm_eject_mount ()

gboolean            fm_eject_mount                      (GtkWindow *parent,
                                                         GMount *mount,
                                                         gboolean interactive);

fm_eject_volume ()

gboolean            fm_eject_volume                     (GtkWindow *parent,
                                                         GVolume *vol,
                                                         gboolean interactive);

fm_copy_files ()

void                fm_copy_files                       (FmPathList *files,
                                                         FmPath *dest_dir);

fm_move_files ()

void                fm_move_files                       (FmPathList *files,
                                                         FmPath *dest_dir);

fm_copy_file()

#define             fm_copy_file(file, dest_dir)

fm_move_file()

#define             fm_move_file(file, dest_dir)

fm_move_or_copy_files_to ()

void                fm_move_or_copy_files_to            (FmPathList *files,
                                                         gboolean is_move);

fm_move_files_to()

#define fm_move_files_to(files)   fm_move_or_copy_files_to(files, TRUE)

fm_copy_files_to()

#define fm_copy_files_to(files)   fm_move_or_copy_files_to(files, FALSE)

fm_trash_files ()

void                fm_trash_files                      (FmPathList *files);

fm_delete_files ()

void                fm_delete_files                     (FmPathList *files);

fm_trash_or_delete_files ()

void                fm_trash_or_delete_files            (FmPathList *files);

fm_untrash_files ()

void                fm_untrash_files                    (FmPathList *files);

fm_rename_file ()

void                fm_rename_file                      (FmPath *file);

fm_empty_trash ()

void                fm_empty_trash                      ();

fm_launch_files_simple ()

gboolean            fm_launch_files_simple              (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         GList *file_infos,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);

fm_launch_file_simple ()

gboolean            fm_launch_file_simple               (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         FmFileInfo *file_info,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);

fm_launch_paths_simple ()

gboolean            fm_launch_paths_simple              (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         GList *paths,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);

fm_launch_path_simple ()

gboolean            fm_launch_path_simple               (GtkWindow *parent,
                                                         GAppLaunchContext *ctx,
                                                         FmPath *path,
                                                         FmLaunchFolderFunc func,
                                                         gpointer user_data);