Top |
gchar * thunar_dialogs_show_create (gpointer parent
,const gchar *content_type
,const gchar *filename
,const gchar *title
);
Displays a Thunar create dialog with the specified parameters that asks the user to enter a name for a new file or folder.
The caller is responsible to free the returned filename using
g_free()
when no longer needed.
ThunarJob * thunar_dialogs_show_rename_file (gpointer parent
,ThunarFile *file
,ThunarOperationLogMode log_mode
);
Displays the Thunar rename dialog for a single file rename.
parent |
a GtkWidget on which the error dialog should be shown, or a GdkScreen
if no GtkWidget is known. May also be |
|
file |
the ThunarFile we're going to rename. |
void thunar_dialogs_show_about (GtkWindow *parent
,const gchar *title
,const gchar *format
,...
);
Displays the Thunar about dialog with format
as main text.
void thunar_dialogs_show_error (gpointer parent
,const GError *error
,const gchar *format
,...
);
Displays an error dialog on widget
using the format
as primary message and optionally
displaying error
as secondary error text.
If widget
is not NULL
and widget
is part of a GtkWindow, the function makes sure
that the toplevel window is visible prior to displaying the error dialog.
parent |
a GtkWidget on which the error dialog should be shown, or a GdkScreen
if no GtkWidget is known. May also be |
|
error |
a GError, which gives a more precise description of the problem or |
|
format |
the |
|
... |
argument list for the |
ThunarJobResponse thunar_dialogs_show_job_ask (GtkWindow *parent
,const gchar *question
,ThunarJobResponse choices
);
Utility function to display a question dialog for the ThunarJob::ask signal.
ThunarJobResponse thunar_dialogs_show_job_ask_replace (GtkWindow *parent
,ThunarFile *src_file
,ThunarFile *dst_file
,gboolean multiple_files
);
Asks the user whether to replace the destination file with the
source file identified by src_file
.
parent |
the parent GtkWindow or |
|
src_file |
the ThunarFile of the source file. |
|
dst_file |
the ThunarFile of the destination file that may be replaced with the source file. |
gboolean thunar_dialogs_show_insecure_program (gpointer parent
,const gchar *title
,ThunarFile *file
,const gchar *command
);
gint
thunar_dialog_confirm_close_split_pane_tabs
(GtkWindow *parent
);
Runs a dialog to ask the user whether they want to close a split pane with multiple tabs
gint thunar_dialog_ask_execute (const ThunarFile *file
,gpointer parent
,gboolean allow_open
,gboolean single_file
);
Shows a dialog where the user is asked if and how he wants to run the executable script.
file |
a ThunarFile pointer |
|
parent |
a GtkWidget on which the error dialog should be shown, or a GdkScreen
if no GtkWidget is known. May also be |
|
allow_open |
if set, the "Open" button is visible. |
|
single_file |
if set, the file name is visible in dialog message. Otherwise there is generic message about selected files. |
void thunar_dialog_show_launcher_props (ThunarFile *launcher
,gpointer parent
);
Calls the exo-desktop-item-edit command to edit the properties of a .desktop file. A dialog with the current properties will appear.
launcher |
a ThunarFile. |
|
parent |
a GdkScreen, a GtkWidget or |