fm-gtk-utils

fm-gtk-utils

Synopsis

void                fm_show_error                       (GtkWindow *parent,
                                                         const char *title,
                                                         const char *msg);
gboolean            fm_yes_no                           (GtkWindow *parent,
                                                         const char *title,
                                                         const char *question,
                                                         gboolean default_yes);
gboolean            fm_ok_cancel                        (GtkWindow *parent,
                                                         const char *title,
                                                         const char *question,
                                                         gboolean default_ok);
int                 fm_ask                              (GtkWindow *parent,
                                                         const char *title,
                                                         const char *question,
                                                         ...);
int                 fm_askv                             (GtkWindow *parent,
                                                         const char *title,
                                                         const char *question,
                                                         const char **options);
int                 fm_ask_valist                       (GtkWindow *parent,
                                                         const char *title,
                                                         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,
                                                         const char *title);
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                       (GtkWindow *parent,
                                                         FmPathList *files,
                                                         FmPath *dest_dir);
void                fm_move_files                       (GtkWindow *parent,
                                                         FmPathList *files,
                                                         FmPath *dest_dir);
#define             fm_copy_file                        (parent,
                                                         file,
                                                         dest_dir)
#define             fm_move_file                        (parent,
                                                         file,
                                                         dest_dir)
void                fm_move_or_copy_files_to            (GtkWindow *parent,
                                                         FmPathList *files,
                                                         gboolean is_move);
#define             fm_move_files_to                    (parent,
                                                         files)
#define             fm_copy_files_to                    (parent,
                                                         files)
void                fm_trash_files                      (GtkWindow *parent,
                                                         FmPathList *files);
void                fm_delete_files                     (GtkWindow *parent,
                                                         FmPathList *files);
void                fm_trash_or_delete_files            (GtkWindow *parent,
                                                         FmPathList *files);
void                fm_untrash_files                    (GtkWindow *parent,
                                                         FmPathList *files);
void                fm_rename_file                      (GtkWindow *parent,
                                                         FmPath *file);
void                fm_empty_trash                      (GtkWindow *parent);

Description

Details

fm_show_error ()

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

parent :

title :

msg :


fm_yes_no ()

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

parent :

title :

question :

default_yes :

Returns :


fm_ok_cancel ()

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

parent :

title :

question :

default_ok :

Returns :


fm_ask ()

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

parent :

toplevel parent widget

title :

question :

the question to show to the user

... :

a NULL terminated list of button labels Returns: the index of selected button, or -1 if the dialog is closed.

Returns :


fm_askv ()

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

parent :

toplevel parent widget

title :

question :

the question to show to the user

options :

a NULL terminated list of button labels Returns: the index of selected button, or -1 if the dialog is closed.

Returns :


fm_ask_valist ()

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

parent :

toplevel parent widget

title :

question :

the question to show to the user

options :

a NULL terminated list of button labels Returns: the index of selected button, or -1 if the dialog is closed.

Returns :


fm_get_user_input ()

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

parent :

title :

msg :

default_text :

Returns :


fm_get_user_input_path ()

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

parent :

title :

msg :

default_path :

Returns :


fm_select_folder ()

FmPath*             fm_select_folder                    (GtkWindow *parent,
                                                         const char *title);

parent :

title :

Returns :


fm_mount_path ()

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

parent :

path :

interactive :

Returns :


fm_mount_volume ()

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

parent :

vol :

interactive :

Returns :


fm_unmount_mount ()

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

parent :

mount :

interactive :

Returns :


fm_unmount_volume ()

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

parent :

vol :

interactive :

Returns :


fm_eject_mount ()

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

parent :

mount :

interactive :

Returns :


fm_eject_volume ()

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

parent :

vol :

interactive :

Returns :


fm_copy_files ()

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

parent :

files :

dest_dir :


fm_move_files ()

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

parent :

files :

dest_dir :


fm_copy_file()

#define             fm_copy_file(parent, file, dest_dir)

parent :

file :

dest_dir :


fm_move_file()

#define             fm_move_file(parent, file, dest_dir)

parent :

file :

dest_dir :


fm_move_or_copy_files_to ()

void                fm_move_or_copy_files_to            (GtkWindow *parent,
                                                         FmPathList *files,
                                                         gboolean is_move);

parent :

files :

is_move :


fm_move_files_to()

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

parent :

files :


fm_copy_files_to()

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

parent :

files :


fm_trash_files ()

void                fm_trash_files                      (GtkWindow *parent,
                                                         FmPathList *files);

parent :

files :


fm_delete_files ()

void                fm_delete_files                     (GtkWindow *parent,
                                                         FmPathList *files);

parent :

files :


fm_trash_or_delete_files ()

void                fm_trash_or_delete_files            (GtkWindow *parent,
                                                         FmPathList *files);

parent :

files :


fm_untrash_files ()

void                fm_untrash_files                    (GtkWindow *parent,
                                                         FmPathList *files);

parent :

files :


fm_rename_file ()

void                fm_rename_file                      (GtkWindow *parent,
                                                         FmPath *file);

parent :

file :


fm_empty_trash ()

void                fm_empty_trash                      (GtkWindow *parent);

parent :