[nautilus] view-icon-controller: Fix rename popover position
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view-icon-controller: Fix rename popover position
- Date: Fri, 4 Mar 2022 18:20:51 +0000 (UTC)
commit 0db1f3ed95425473d62386e505577c02812d5ea9
Author: Ignacy Kuchciński <ignacykuchcinski gmail com>
Date: Wed Feb 23 15:40:21 2022 +0100
view-icon-controller: Fix rename popover position
This also fixes the position of the popover menu when triggered from the
keyboard menu key.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2086
src/nautilus-view-icon-controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c
index 215b82b39..8561c5106 100644
--- a/src/nautilus-view-icon-controller.c
+++ b/src/nautilus-view-icon-controller.c
@@ -677,7 +677,7 @@ get_rectangle_for_item_ui (NautilusViewIconController *self,
gtk_widget_get_allocation (item_ui, rectangle);
content_widget = nautilus_files_view_get_content_widget (NAUTILUS_FILES_VIEW (self));
- gtk_widget_translate_coordinates (GTK_WIDGET (self->view_ui), content_widget,
+ gtk_widget_translate_coordinates (item_ui, content_widget,
rectangle->x, rectangle->y,
&view_x, &view_y);
rectangle->x = view_x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]