[nautilus] general: Fix typo in nautilus_dnd_get_preferred_action()
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] general: Fix typo in nautilus_dnd_get_preferred_action()
- Date: Thu, 7 Jul 2022 22:43:47 +0000 (UTC)
commit 90201524b2e89ea998a7fc4d0009563b375e3ec4
Author: Corey Berla <corey berla me>
Date: Sun Jul 3 08:48:05 2022 -0700
general: Fix typo in nautilus_dnd_get_preferred_action()
src/nautilus-dnd.c | 4 ++--
src/nautilus-dnd.h | 4 ++--
src/nautilus-list-base.c | 4 ++--
src/nautilus-window-slot-dnd.c | 2 +-
src/nautilus-window.c | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-dnd.c b/src/nautilus-dnd.c
index eb25b5d4e..d13136946 100644
--- a/src/nautilus-dnd.c
+++ b/src/nautilus-dnd.c
@@ -160,8 +160,8 @@ nautilus_drag_drop_action_ask (GtkWidget *widget,
}
GdkDragAction
-nautilus_dnd_get_prefered_action (NautilusFile *target_file,
- GFile *dropped)
+nautilus_dnd_get_preferred_action (NautilusFile *target_file,
+ GFile *dropped)
{
g_return_val_if_fail (NAUTILUS_IS_FILE (target_file), 0);
g_return_val_if_fail (dropped == NULL || G_IS_FILE (dropped), 0);
diff --git a/src/nautilus-dnd.h b/src/nautilus-dnd.h
index 5fec2858b..2c5c924c7 100644
--- a/src/nautilus-dnd.h
+++ b/src/nautilus-dnd.h
@@ -26,7 +26,7 @@
GdkDragAction nautilus_drag_drop_action_ask (GtkWidget *widget,
GdkDragAction possible_actions);
-GdkDragAction nautilus_dnd_get_prefered_action (NautilusFile *target_file,
- GFile *dropped);
+GdkDragAction nautilus_dnd_get_preferred_action (NautilusFile *target_file,
+ GFile *dropped);
GdkPaintable * get_paintable_for_drag_selection (GList *selection,
int scale);
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index fe7e25589..16840239b 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -588,12 +588,12 @@ get_preferred_action (NautilusFile *target_file,
if (value == NULL)
{
- action = nautilus_dnd_get_prefered_action (target_file, NULL);
+ action = nautilus_dnd_get_preferred_action (target_file, NULL);
}
else if (G_VALUE_HOLDS (value, GDK_TYPE_FILE_LIST))
{
GSList *source_file_list = g_value_get_boxed (value);
- action = nautilus_dnd_get_prefered_action (target_file, source_file_list->data);
+ action = nautilus_dnd_get_preferred_action (target_file, source_file_list->data);
}
return action;
diff --git a/src/nautilus-window-slot-dnd.c b/src/nautilus-window-slot-dnd.c
index 556d18f4f..a04adc453 100644
--- a/src/nautilus-window-slot-dnd.c
+++ b/src/nautilus-window-slot-dnd.c
@@ -197,7 +197,7 @@ slot_proxy_drag_motion (GtkDropTarget *target,
if (G_VALUE_HOLDS (value, GDK_TYPE_FILE_LIST))
{
GSList *items = g_value_get_boxed (value);
- action = nautilus_dnd_get_prefered_action (file, items->data);
+ action = nautilus_dnd_get_preferred_action (file, items->data);
}
}
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 37b3b097b..80f580fc7 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -945,7 +945,7 @@ places_sidebar_drag_action_requested_cb (NautilusGtkPlacesSidebar *sidebar,
NautilusFile *dest_file,
GList *source_file_list)
{
- return nautilus_dnd_get_prefered_action (dest_file, source_file_list->data);
+ return nautilus_dnd_get_preferred_action (dest_file, source_file_list->data);
}
#if 0 && NAUTILUS_DND_NEEDS_GTK4_REIMPLEMENTATION
/* Callback used when the places sidebar needs us to pop up a menu with possible drag actions */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]