summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-11-22 12:33:17 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-11-22 12:33:17 +0100
commit575de1c6cb614229604436afead46f259f254da6 (patch)
treeed7de99d2590e2f40f4f9e292257ca5daa8065cd
parentf879c81b4e6af0cfb13329c33e7fd1717db92b79 (diff)
downloadnautilus-575de1c6cb614229604436afead46f259f254da6.tar.gz
mime-actions: use GQueue functions instead of private pointers
It's just more correct.
-rw-r--r--src/nautilus-mime-actions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 64108bb5d..90902bfa6 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -1723,7 +1723,7 @@ activate_files (ActivateParameters *parameters)
}
}
- for (l = launch_desktop_files->head; l != NULL; l = l->next)
+ for (l = g_queue_peek_head_link (launch_desktop_files); l != NULL; l = l->next)
{
file = NAUTILUS_FILE (l->data);
@@ -1739,7 +1739,7 @@ activate_files (ActivateParameters *parameters)
}
screen = gtk_widget_get_screen (GTK_WIDGET (parameters->parent_window));
- for (l = launch_files->head; l != NULL; l = l->next)
+ for (l = g_queue_peek_head_link (launch_files); l != NULL; l = l->next)
{
g_autofree char *uri = NULL;
g_autofree char *executable_path = NULL;
@@ -1756,7 +1756,7 @@ activate_files (ActivateParameters *parameters)
nautilus_launch_application_from_command (screen, quoted_path, FALSE, NULL);
}
- for (l = launch_in_terminal_files->head; l != NULL; l = l->next)
+ for (l = g_queue_peek_head_link (launch_in_terminal_files); l != NULL; l = l->next)
{
g_autofree char *uri = NULL;
g_autofree char *executable_path = NULL;
@@ -1829,7 +1829,7 @@ activate_files (ActivateParameters *parameters)
closed_window = FALSE;
- for (l = open_in_view_files->head; l != NULL; l = l->next)
+ for (l = g_queue_peek_head_link (open_in_view_files); l != NULL; l = l->next)
{
g_autofree char *uri = NULL;
g_autoptr (GFile) location = NULL;
@@ -1880,7 +1880,7 @@ activate_files (ActivateParameters *parameters)
if (open_in_app_uris != NULL)
{
- open_in_app_parameters = make_activation_parameters (open_in_app_uris->head,
+ open_in_app_parameters = make_activation_parameters (g_queue_peek_head_link (open_in_app_uris),
&unhandled_open_in_app_uris);
}