Top |
ThunarClipboardManager *
thunar_clipboard_manager_get_for_display
(GdkDisplay *display
);
Determines the ThunarClipboardManager that is used to manage
the clipboard on the given display
.
The caller is responsible for freeing the returned object
using g_object_unref()
when it's no longer needed.
gboolean
thunar_clipboard_manager_get_can_paste
(ThunarClipboardManager *manager
);
Tells whether the contents of the clipboard represented
by manager
can be pasted into a folder.
gboolean thunar_clipboard_manager_has_cutted_file (ThunarClipboardManager *manager
,const ThunarFile *file
);
Checks whether file
was cutted to the given manager
earlier.
void thunar_clipboard_manager_copy_files (ThunarClipboardManager *manager
,GList *files
);
Sets the clipboard represented by manager
to
contain the files
and marks them to be copied
when the user pastes from the clipboard.
void thunar_clipboard_manager_cut_files (ThunarClipboardManager *manager
,GList *files
);
Sets the clipboard represented by manager
to
contain the files
and marks them to be moved
when the user pastes from the clipboard.
void thunar_clipboard_manager_paste_files (ThunarClipboardManager *manager
,GFile *target_file
,GtkWidget *widget
,GClosure *new_files_closure
);
Pastes the contents from the clipboard associated with manager
to the directory
referenced by target_file
.
manager |
||
target_file |
the GFile of the folder to which the contents on the clipboard should be pasted. |
|
widget |
a GtkWidget, on which to perform the paste or |
|
new_files_closure |
a GClosure to connect to the job's "new-files" signal,
which will be emitted when the job finishes with the
list of GFiles created by the job, or
|
“can-paste”
property “can-paste” gboolean
This property tells whether the current clipboard content of this ThunarClipboardManager can be pasted into a folder displayed by a ThunarView.
Owner: ThunarClipboardManager
Flags: Read
Default value: FALSE
“changed”
signalvoid user_function (ThunarClipboardManager *manager, gpointer user_data)
This signal is emitted whenever the contents of the
clipboard associated with manager
changes.
Flags: Run First