[nautilus] files-view: correct method name
- From: Răzvan-Mihai Chițu <razvanchitu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: correct method name
- Date: Fri, 19 Aug 2016 12:52:45 +0000 (UTC)
commit e99319019f0018c623210264cf1d905471ce2448
Author: Razvan Chitu <razvan ch95 gmail com>
Date: Sun Jul 31 18:02:32 2016 +0300
files-view: correct method name
The method 'compute_rename_popover_relative_to' has a misleading name because it
actually computes the item that the popover will point to.
https://bugzilla.gnome.org/show_bug.cgi?id=769336
src/nautilus-canvas-view.c | 4 ++--
src/nautilus-files-view.c | 6 +++---
src/nautilus-files-view.h | 2 +-
src/nautilus-list-view.c | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c
index 8a618d3..2867358 100644
--- a/src/nautilus-canvas-view.c
+++ b/src/nautilus-canvas-view.c
@@ -1110,7 +1110,7 @@ nautilus_canvas_view_reveal_selection (NautilusFilesView *view)
}
static GdkRectangle*
-nautilus_canvas_view_compute_rename_popover_relative_to (NautilusFilesView *view)
+nautilus_canvas_view_compute_rename_popover_pointing_to (NautilusFilesView *view)
{
GArray *bounding_boxes;
GdkRectangle *bounding_box;
@@ -1827,7 +1827,7 @@ nautilus_canvas_view_class_init (NautilusCanvasViewClass *klass)
nautilus_files_view_class->clear = nautilus_canvas_view_clear;
nautilus_files_view_class->end_loading = nautilus_canvas_view_end_loading;
nautilus_files_view_class->file_changed = nautilus_canvas_view_file_changed;
- nautilus_files_view_class->compute_rename_popover_relative_to =
nautilus_canvas_view_compute_rename_popover_relative_to;
+ nautilus_files_view_class->compute_rename_popover_pointing_to =
nautilus_canvas_view_compute_rename_popover_pointing_to;
nautilus_files_view_class->get_selection = nautilus_canvas_view_get_selection;
nautilus_files_view_class->get_selection_for_file_transfer = nautilus_canvas_view_get_selection;
nautilus_files_view_class->is_empty = nautilus_canvas_view_is_empty;
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 7f6ae11..3f549c0 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -1695,9 +1695,9 @@ context_menu_to_file_operation_position (NautilusFilesView *view)
}
static GdkRectangle*
-nautilus_files_view_compute_rename_popover_relative_to (NautilusFilesView *view)
+nautilus_files_view_compute_rename_popover_pointing_to (NautilusFilesView *view)
{
- return NAUTILUS_FILES_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->compute_rename_popover_relative_to
(view);
+ return NAUTILUS_FILES_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->compute_rename_popover_pointing_to
(view);
}
static void
@@ -1746,7 +1746,7 @@ nautilus_files_view_rename_file_popover_new (NautilusFilesView *view,
return;
}
- pointing_to = nautilus_files_view_compute_rename_popover_relative_to (view);
+ pointing_to = nautilus_files_view_compute_rename_popover_pointing_to (view);
view->details->rename_file_controller =
nautilus_rename_file_popover_controller_new (target_file,
diff --git a/src/nautilus-files-view.h b/src/nautilus-files-view.h
index e0f8c3c..1a42f4e 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -259,7 +259,7 @@ struct NautilusFilesViewClass {
NautilusWindow * (*get_window) (NautilusFilesView *view);
- GdkRectangle * (*compute_rename_popover_relative_to) (NautilusFilesView *view);
+ GdkRectangle * (* compute_rename_popover_pointing_to) (NautilusFilesView *view);
GIcon * (* get_icon) (NautilusFilesView *view);
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 9df4ae8..4e69434 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -3079,7 +3079,7 @@ nautilus_list_view_get_id (NautilusFilesView *view)
}
static GdkRectangle*
-nautilus_list_view_compute_rename_popover_relative_to (NautilusFilesView *view)
+nautilus_list_view_compute_rename_popover_pointing_to (NautilusFilesView *view)
{
GtkTreeSelection *selection;
GtkTreePath *path;
@@ -3163,7 +3163,7 @@ nautilus_list_view_class_init (NautilusListViewClass *class)
nautilus_files_view_class->get_view_id = nautilus_list_view_get_id;
nautilus_files_view_class->get_first_visible_file = nautilus_list_view_get_first_visible_file;
nautilus_files_view_class->scroll_to_file = list_view_scroll_to_file;
- nautilus_files_view_class->compute_rename_popover_relative_to =
nautilus_list_view_compute_rename_popover_relative_to;
+ nautilus_files_view_class->compute_rename_popover_pointing_to =
nautilus_list_view_compute_rename_popover_pointing_to;
nautilus_files_view_class->get_icon = nautilus_list_view_get_icon;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]