diff options
author | António Fernandes <antoniof@gnome.org> | 2021-12-24 00:48:32 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-01-05 12:56:32 +0000 |
commit | 48df2289a8fd3a4ee365c4286384cfb0acb96cda (patch) | |
tree | c0f1bae627f6e27ba1e08e6303c5160296463f7c | |
parent | 899c2278dc5a6a7bba793a4d2b73563beaebb9d1 (diff) | |
download | nautilus-48df2289a8fd3a4ee365c4286384cfb0acb96cda.tar.gz |
general: Adapt to coordinate parameter type changes
Coordinates are generally doubles now.
-rw-r--r-- | src/nautilus-floating-bar.c | 2 | ||||
-rw-r--r-- | src/nautilus-view-icon-controller.c | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c index 1dd33b25b..3caa37fc8 100644 --- a/src/nautilus-floating-bar.c +++ b/src/nautilus-floating-bar.c @@ -245,7 +245,7 @@ on_event_controller_motion_enter (GtkEventControllerMotion *controller, NautilusFloatingBar *self = NAUTILUS_FLOATING_BAR (user_data); GtkWidget *parent; CheckPointerData *data; - gint y_pos; + gdouble y_pos; self->pointer_y_in_parent_coordinates = y; diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c index 47998774e..ffd12e432 100644 --- a/src/nautilus-view-icon-controller.c +++ b/src/nautilus-view-icon-controller.c @@ -427,8 +427,8 @@ static void reveal_item_ui (NautilusViewIconController *self, GtkWidget *item_ui) { - int item_y; - int item_height; + gdouble item_y; + gdouble item_height; gtk_widget_translate_coordinates (item_ui, GTK_WIDGET (self->view_ui), 0, 0, @@ -776,8 +776,8 @@ on_button_press_event (GtkGestureClick *gesture, NautilusViewIconController *self; guint button; GdkModifierType modifiers = 0; - gint view_x; - gint view_y; + gdouble view_x; + gdouble view_y; GtkFlowBoxChild *child_at_pos; self = NAUTILUS_VIEW_ICON_CONTROLLER (user_data); @@ -887,8 +887,8 @@ on_longpress_gesture_pressed_callback (GtkGestureLongPress *gesture, { NautilusViewIconController *self; GtkFlowBoxChild *child_at_pos; - gint view_x; - gint view_y; + gdouble view_x; + gdouble view_y; self = NAUTILUS_VIEW_ICON_CONTROLLER (user_data); @@ -942,9 +942,9 @@ static GtkFlowBoxChild * get_first_visible_item_ui (NautilusViewIconController *self) { GtkFlowBoxChild *child_at_0; - gint x0; - gint y0; - gint scrolled_y; + gdouble x0; + gdouble y0; + gdouble scrolled_y; child_at_0 = gtk_flow_box_get_child_at_index (self->view_ui, 0); if (child_at_0 == NULL) @@ -999,7 +999,7 @@ scroll_to_file_on_idle (ScrollToFileData *data) g_autoptr (NautilusFile) file = NULL; NautilusViewItemModel *item; GtkWidget *item_ui; - int item_y; + gdouble item_y; file = nautilus_file_get_existing_by_uri (data->uri); item = nautilus_view_model_get_item_from_file (self->model, file); @@ -1211,7 +1211,7 @@ prioritize_thumbnailing_on_idle (NautilusViewIconController *self) GtkFlowBoxChild *next_child; gint first_index; gint next_index; - gint y; + gdouble y; gint last_index; gpointer item; NautilusFile *file; |