[file-roller] window: Remove unnecesary return value
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] window: Remove unnecesary return value
- Date: Sat, 21 May 2022 13:33:42 +0000 (UTC)
commit 267039a0e738e884b791f722ae2d6d9154c64afe
Author: Maximiliano Sandoval R <msandova protonmail com>
Date: Sat May 21 14:56:05 2022 +0200
window: Remove unnecesary return value
It is not used anywhere
src/fr-window.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index f448ae6c..d638e189 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -9209,7 +9209,7 @@ open_extracted_files_with_native_appchooser (OpenFilesData *odata)
}
}
#else
-static gboolean
+static void
open_extracted_files_with_nonnative_appchooser (OpenFilesData *odata)
{
GList *file_list = odata->cdata->file_list;
@@ -9218,21 +9218,20 @@ open_extracted_files_with_nonnative_appchooser (OpenFilesData *odata)
GAppInfo *app;
GList *files_to_open = NULL;
GdkAppLaunchContext *context;
- gboolean result;
GError *error = NULL;
- g_return_val_if_fail (file_list != NULL, FALSE);
+ g_return_if_fail (file_list != NULL);
first_file = G_FILE (file_list->data);
if (first_file == NULL)
- return FALSE;
+ return;
if (! odata->window->archive->read_only)
monitor_extracted_files (odata);
if (odata->ask_application) {
dlg_open_with (odata->window, file_list);
- return FALSE;
+ return;
}
first_mime_type = _g_file_get_mime_type (first_file, FALSE);
@@ -9240,7 +9239,7 @@ open_extracted_files_with_nonnative_appchooser (OpenFilesData *odata)
if (app == NULL) {
dlg_open_with (odata->window, file_list);
- return FALSE;
+ return;
}
files_to_open = g_list_append (files_to_open, g_file_get_uri (first_file));
@@ -9273,8 +9272,7 @@ open_extracted_files_with_nonnative_appchooser (OpenFilesData *odata)
context = gdk_display_get_app_launch_context (gtk_widget_get_display (GTK_WIDGET (odata->window)));
gdk_app_launch_context_set_screen (context, gtk_widget_get_screen (GTK_WIDGET (odata->window)));
gdk_app_launch_context_set_timestamp (context, 0);
- result = g_app_info_launch_uris (app, files_to_open, G_APP_LAUNCH_CONTEXT (context), &error);
- if (! result) {
+ if (! g_app_info_launch_uris (app, files_to_open, G_APP_LAUNCH_CONTEXT (context), &error)) {
_gtk_error_dialog_run (GTK_WINDOW (odata->window),
_("Could not perform the operation"),
"%s",
@@ -9285,8 +9283,6 @@ open_extracted_files_with_nonnative_appchooser (OpenFilesData *odata)
g_object_unref (context);
g_object_unref (app);
_g_string_list_free (files_to_open);
-
- return result;
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]