| libfm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
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);
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);
|
|
|
|
|
|
|
|
Returns : |
gboolean fm_ok_cancel (GtkWindow *parent,const char *title,const char *question,gboolean default_ok);
|
|
|
|
|
|
|
|
Returns : |
int fm_ask (GtkWindow *parent,const char *title,const char *question,...);
|
toplevel parent widget |
|
|
|
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 : |
int fm_askv (GtkWindow *parent,const char *title,const char *question,const char **options);
|
toplevel parent widget |
|
|
|
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 : |
int fm_ask_valist (GtkWindow *parent,const char *title,const char *question,va_list options);
|
toplevel parent widget |
|
|
|
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 : |
char* fm_get_user_input (GtkWindow *parent,const char *title,const char *msg,const char *default_text);
|
|
|
|
|
|
|
|
Returns : |
FmPath* fm_get_user_input_path (GtkWindow *parent,const char *title,const char *msg,FmPath *default_path);
|
|
|
|
|
|
|
|
Returns : |
FmPath* fm_select_folder (GtkWindow *parent,const char *title);
|
|
|
|
Returns : |
gboolean fm_mount_path (GtkWindow *parent,FmPath *path,gboolean interactive);
|
|
|
|
|
|
Returns : |
gboolean fm_mount_volume (GtkWindow *parent,GVolume *vol,gboolean interactive);
|
|
|
|
|
|
Returns : |
gboolean fm_unmount_mount (GtkWindow *parent,GMount *mount,gboolean interactive);
|
|
|
|
|
|
Returns : |
gboolean fm_unmount_volume (GtkWindow *parent,GVolume *vol,gboolean interactive);
|
|
|
|
|
|
Returns : |
gboolean fm_eject_mount (GtkWindow *parent,GMount *mount,gboolean interactive);
|
|
|
|
|
|
Returns : |
gboolean fm_eject_volume (GtkWindow *parent,GVolume *vol,gboolean interactive);
|
|
|
|
|
|
Returns : |
void fm_copy_files (GtkWindow *parent,FmPathList *files,FmPath *dest_dir);
|
|
|
|
|
void fm_move_files (GtkWindow *parent,FmPathList *files,FmPath *dest_dir);
|
|
|
|
|
void fm_move_or_copy_files_to (GtkWindow *parent,FmPathList *files,gboolean is_move);
|
|
|
|
|
#define fm_move_files_to(parent, files) fm_move_or_copy_files_to(parent, files, TRUE)
|
|
|
#define fm_copy_files_to(parent, files) fm_move_or_copy_files_to(parent, files, FALSE)
|
|
|
void fm_trash_or_delete_files (GtkWindow *parent,FmPathList *files);
|
|
|