[nautilus/wip/antoniof/experimental-gtk4-build: 23/52] double or nothing!
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/experimental-gtk4-build: 23/52] double or nothing!
- Date: Fri, 31 Dec 2021 23:58:45 +0000 (UTC)
commit d5f6da70b440960fa5b0951dc82e3eef8890daa4
Author: António Fernandes <antoniof gnome org>
Date: Fri Dec 24 00:48:32 2021 +0000
double or nothing!
src/nautilus-floating-bar.c | 2 +-
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 6d7b00529..bad69ed7a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]