diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-03-31 18:21:04 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-14 10:35:16 +0200 |
commit | 8c2b6f250e0b7f86619da2abfd82c923672063e3 (patch) | |
tree | af583af72a237048190ce4b5f16673ec83126b7b /libnautilus-private | |
parent | 196429f7f98dbc6676b2cdd0e69da65de8c9c196 (diff) | |
download | nautilus-8c2b6f250e0b7f86619da2abfd82c923672063e3.tar.gz |
file: rename get_drop_target_uri
This get target uri is used for those which we have special handling on
the activation uri, instead of the usual glib attribute
G_FILE_ATTRIBUTE_STANDARD_TARGET_URI. So it behaves like a supergroup
of those which have G_FILE_ATTRIBUTE_STANDARD_TARGET_URI, but we use
it in the same way.
We use for handling special files like desktop links on drag and drop,
etc.
However, this is useful for other parts of nautilus, and we will use it
in a upcoming patch, so we can rename it in order to communicate the
wide nature of the function.
https://bugzilla.gnome.org/show_bug.cgi?id=712620
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-file.c | 8 | ||||
-rw-r--r-- | libnautilus-private/nautilus-file.h | 4 | ||||
-rw-r--r-- | libnautilus-private/nautilus-tree-view-drag-dest.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index 4fc0a4dec..0f46ab754 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -3847,13 +3847,13 @@ nautilus_file_get_activation_location (NautilusFile *file) char * -nautilus_file_get_drop_target_uri (NautilusFile *file) +nautilus_file_get_target_uri (NautilusFile *file) { - return NAUTILUS_FILE_CLASS (G_OBJECT_GET_CLASS (file))->get_drop_target_uri (file); + return NAUTILUS_FILE_CLASS (G_OBJECT_GET_CLASS (file))->get_target_uri (file); } static char * -real_get_drop_target_uri (NautilusFile *file) +real_get_target_uri (NautilusFile *file) { char *uri, *target_uri; GFile *location; @@ -8018,7 +8018,7 @@ nautilus_file_class_init (NautilusFileClass *class) class->set_metadata_as_list = real_set_metadata_as_list; class->can_rename = real_can_rename; class->rename = real_rename; - class->get_drop_target_uri = real_get_drop_target_uri; + class->get_target_uri = real_get_target_uri; signals[CHANGED] = g_signal_new ("changed", diff --git a/libnautilus-private/nautilus-file.h b/libnautilus-private/nautilus-file.h index e7ed6b995..40d060baa 100644 --- a/libnautilus-private/nautilus-file.h +++ b/libnautilus-private/nautilus-file.h @@ -422,7 +422,7 @@ gboolean nautilus_file_has_activation_uri (Nautilu char * nautilus_file_get_activation_uri (NautilusFile *file); GFile * nautilus_file_get_activation_location (NautilusFile *file); -char * nautilus_file_get_drop_target_uri (NautilusFile *file); +char * nautilus_file_get_target_uri (NautilusFile *file); GIcon * nautilus_file_get_gicon (NautilusFile *file, NautilusFileIconFlags flags); @@ -568,7 +568,7 @@ typedef struct { NautilusFileOperationCallback callback, gpointer callback_data); - char* (* get_drop_target_uri) (NautilusFile *file); + char* (* get_target_uri) (NautilusFile *file); } NautilusFileClass; #endif /* NAUTILUS_FILE_H */ diff --git a/libnautilus-private/nautilus-tree-view-drag-dest.c b/libnautilus-private/nautilus-tree-view-drag-dest.c index 72268ee4a..41d1666de 100644 --- a/libnautilus-private/nautilus-tree-view-drag-dest.c +++ b/libnautilus-private/nautilus-tree-view-drag-dest.c @@ -425,7 +425,7 @@ get_drop_target_uri_for_path (NautilusTreeViewDragDest *dest, dest->details->drag_type, dest->details->drag_list); if (can) { - target = nautilus_file_get_drop_target_uri (file); + target = nautilus_file_get_target_uri (file); } nautilus_file_unref (file); |