diff options
Diffstat (limited to 'src/fr-command.c')
-rw-r--r-- | src/fr-command.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/fr-command.c b/src/fr-command.c index 255a229..dcbe9ad 100644 --- a/src/fr-command.c +++ b/src/fr-command.c @@ -79,7 +79,7 @@ const char *action_names[] = { "NONE", "CREATING_ARCHIVE", "SAVING_REMOTE_ARCHIVE" }; -#if MATE_ENABLE_DEBUG +#ifdef MATE_ENABLE_DEBUG const char * get_action_name (FrAction action) { return action_names[action]; @@ -176,7 +176,7 @@ base_fr_command_get_mime_types (FrCommand *comm) return void_mime_types; } -static FrCommandCap +static FrCommandCaps base_fr_command_get_capabilities (FrCommand *comm, const char *mime_type, gboolean check_command) @@ -608,14 +608,19 @@ fr_command_list (FrCommand *comm) fr_process_use_standard_locale (comm->process, TRUE); comm->multi_volume = FALSE; - if (! comm->fake_load) + if (! comm->fake_load) { FR_COMMAND_GET_CLASS (G_OBJECT (comm))->list (comm); - else + } else { + comm->process->error.type = FR_PROC_ERROR_NONE; + comm->process->error.status = 0; + g_clear_error (&comm->process->error.gerror); + g_signal_emit (G_OBJECT (comm), fr_command_signals[DONE], 0, comm->action, &comm->process->error); + } } void @@ -716,7 +721,7 @@ fr_command_update_capabilities (FrCommand *comm) comm->capabilities = fr_command_get_capabilities (comm, comm->mime_type, TRUE); } -FrCommandCap +FrCommandCaps fr_command_get_capabilities (FrCommand *comm, const char *mime_type, gboolean check_command) |