~ubuntu-branches/ubuntu/quantal/libfm/quantal

« back to all changes in this revision

Viewing changes to src/gtk/fm-gtk-utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2011-02-21 21:55:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110221215543-m7gn2snkhpk1kk9u
Tags: 0.1.15+git-3625952cea-0ubuntu1
* New upstream snapshot (2011-02-15)
 - Use x-schemas-handler (LP: #683922)
* debian/patches/
 - 90_add_gobject_link.patch: Remove, merged upstream.
 - 02-libfm-0.1.14-API-changes.patch: Refresh.
 - 03_disable_deprecated_gio_module.patch: Refresh.
 - 04_fix_docs_linker.patch: Fix DSO linking in docs/.
* debian/libfm0.install:
 - Remove usr/lib/libfm/gnome-terminal, dropped upstream.
 - Remove gio module, dropped upstream.
* debian/rules:
 - Add --enable-gtk-doc to configure.
* debian/libfm-gtk0.symbols:
 - Update with new symbols.
* debian/apport/source_libfm.py
 - Fix location of pcmanfm config files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
gboolean fm_eject_volume(GtkWindow* parent, GVolume* vol, gboolean interactive);
65
65
 
66
66
/* File operations */
67
 
void fm_copy_files(FmPathList* files, FmPath* dest_dir);
68
 
void fm_move_files(FmPathList* files, FmPath* dest_dir);
 
67
void fm_copy_files(GtkWindow* parent, FmPathList* files, FmPath* dest_dir);
 
68
void fm_move_files(GtkWindow* parent, FmPathList* files, FmPath* dest_dir);
69
69
 
70
 
#define fm_copy_file(file, dest_dir) \
 
70
#define fm_copy_file(parent, file, dest_dir) \
71
71
    G_STMT_START {    \
72
72
        FmPathList* files = fm_path_list_new(); \
73
73
        fm_list_push_tail(files, file); \
74
 
        fm_copy_files(files, dest_dir); \
 
74
        fm_copy_files(parent, files, dest_dir); \
75
75
        fm_list_unref(files);   \
76
76
    } G_STMT_END
77
77
 
78
 
#define fm_move_file(file, dest_dir) \
 
78
#define fm_move_file(parent, file, dest_dir) \
79
79
    G_STMT_START {    \
80
80
    FmPathList* files = fm_path_list_new(); \
81
81
    fm_list_push_tail(files, file); \
82
 
    fm_move_files(files, dest_dir); \
 
82
    fm_move_files(parent, files, dest_dir); \
83
83
    fm_list_unref(files);   \
84
84
    } G_STMT_END
85
85
 
86
 
void fm_move_or_copy_files_to(FmPathList* files, gboolean is_move);
87
 
#define fm_move_files_to(files)   fm_move_or_copy_files_to(files, TRUE)
88
 
#define fm_copy_files_to(files)   fm_move_or_copy_files_to(files, FALSE)
 
86
void fm_move_or_copy_files_to(GtkWindow* parent, FmPathList* files, gboolean is_move);
 
87
#define fm_move_files_to(parent, files)   fm_move_or_copy_files_to(parent, files, TRUE)
 
88
#define fm_copy_files_to(parent, files)   fm_move_or_copy_files_to(parent, files, FALSE)
89
89
 
90
 
void fm_trash_files(FmPathList* files);
91
 
void fm_delete_files(FmPathList* files);
 
90
void fm_trash_files(GtkWindow* parent, FmPathList* files);
 
91
void fm_delete_files(GtkWindow* parent, FmPathList* files);
92
92
/* trash or delete files according to FmConfig::use_trash. */
93
 
void fm_trash_or_delete_files(FmPathList* files);
 
93
void fm_trash_or_delete_files(GtkWindow* parent, FmPathList* files);
94
94
 
95
 
void fm_untrash_files(FmPathList* files);
 
95
void fm_untrash_files(GtkWindow* parent, FmPathList* files);
96
96
 
97
97
/* void fm_rename_files(FmPathList* files); */
98
 
void fm_rename_file(FmPath* file);
99
 
 
100
 
void fm_empty_trash();
101
 
 
102
 
gboolean fm_launch_files_simple(GtkWindow* parent, GAppLaunchContext* ctx, GList* file_infos, FmLaunchFolderFunc func, gpointer user_data);
103
 
gboolean fm_launch_file_simple(GtkWindow* parent, GAppLaunchContext* ctx, FmFileInfo* file_info, FmLaunchFolderFunc func, gpointer user_data);
104
 
 
105
 
gboolean fm_launch_paths_simple(GtkWindow* parent, GAppLaunchContext* ctx, GList* paths, FmLaunchFolderFunc func, gpointer user_data);
106
 
gboolean fm_launch_path_simple(GtkWindow* parent, GAppLaunchContext* ctx, FmPath* path, FmLaunchFolderFunc func, gpointer user_data);
 
98
void fm_rename_file(GtkWindow* parent, FmPath* file);
 
99
 
 
100
void fm_empty_trash(GtkWindow* parent);
107
101
 
108
102
G_END_DECLS
109
103