| Libfm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
int fm_ask (GtkWindow *parent,const char *title,const char *question,...); int fm_ask_valist (GtkWindow *parent,const char *title,const char *question,va_list options); int fm_askv (GtkWindow *parent,const char *title,const char *question,char * const*options); #define fm_copy_file (parent, file, dest_dir) void fm_copy_files (GtkWindow *parent,FmPathList *files,FmPath *dest_dir); #define fm_copy_files_to (parent, files) void fm_delete_files (GtkWindow *parent,FmPathList *files); gboolean fm_eject_mount (GtkWindow *parent,GMount *mount,gboolean interactive); gboolean fm_eject_volume (GtkWindow *parent,GVolume *vol,gboolean interactive); void fm_empty_trash (GtkWindow *parent); 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); void fm_link_files (GtkWindow *parent,FmPathList *files,FmPath *dest_dir); gboolean fm_mount_path (GtkWindow *parent,FmPath *path,gboolean interactive); gboolean fm_mount_volume (GtkWindow *parent,GVolume *vol,gboolean interactive); #define fm_move_file (parent, file, dest_dir) void fm_move_files (GtkWindow *parent,FmPathList *files,FmPath *dest_dir); #define fm_move_files_to (parent, files) void fm_move_or_copy_files_to (GtkWindow *parent,FmPathList *files,gboolean is_move); gboolean fm_ok_cancel (GtkWindow *parent,const char *title,const char *question,gboolean default_ok); void fm_rename_file (GtkWindow *parent,FmPath *file); FmPath * fm_select_file (GtkWindow *parent,const char *title,const char *default_folder,gboolean local_only,gboolean show_preview,...); FmPath * fm_select_folder (GtkWindow *parent,const char *title); void fm_set_busy_cursor (GtkWidget *widget); void fm_show_error (GtkWindow *parent,const char *title,const char *msg); void fm_trash_files (GtkWindow *parent,FmPathList *files); void fm_trash_or_delete_files (GtkWindow *parent,FmPathList *files); gboolean fm_unmount_mount (GtkWindow *parent,GMount *mount,gboolean interactive); gboolean fm_unmount_volume (GtkWindow *parent,GVolume *vol,gboolean interactive); void fm_unset_busy_cursor (GtkWidget *widget); void fm_untrash_files (GtkWindow *parent,FmPathList *files); gboolean fm_yes_no (GtkWindow *parent,const char *title,const char *question,gboolean default_yes);
int fm_ask (GtkWindow *parent,const char *title,const char *question,...);
Ask the user a question with several options provided.
|
toplevel parent widget |
|
title for the window with 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. |
int fm_ask_valist (GtkWindow *parent,const char *title,const char *question,va_list options);
Ask the user a question with several options provided.
|
toplevel parent widget |
|
title for the window with question |
|
the question to show to the user |
|
va_arg list of button labels |
Returns : |
the index of selected button, or -1 if the dialog is closed. |
int fm_askv (GtkWindow *parent,const char *title,const char *question,char * const*options);
Ask the user a question with several options provided.
|
toplevel parent widget |
|
title for the window with 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. |
#define fm_copy_files_to(parent, files) fm_move_or_copy_files_to(parent, files, FALSE)
gboolean fm_eject_volume (GtkWindow *parent,GVolume *vol,gboolean interactive);
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);
void fm_link_files (GtkWindow *parent,FmPathList *files,FmPath *dest_dir);
Create symbolic links for some files in the target directory with progress dialog.
|
window to base progress dialog over it |
|
list of files to make symbolic links to |
|
directory where symbolic links should be created |
gboolean fm_mount_volume (GtkWindow *parent,GVolume *vol,gboolean interactive);
#define fm_move_files_to(parent, files) fm_move_or_copy_files_to(parent, files, TRUE)
void fm_move_or_copy_files_to (GtkWindow *parent,FmPathList *files,gboolean is_move);
gboolean fm_ok_cancel (GtkWindow *parent,const char *title,const char *question,gboolean default_ok);
FmPath * fm_select_file (GtkWindow *parent,const char *title,const char *default_folder,gboolean local_only,gboolean show_preview,...);
gboolean fm_unmount_mount (GtkWindow *parent,GMount *mount,gboolean interactive);
gboolean fm_unmount_volume (GtkWindow *parent,GVolume *vol,gboolean interactive);