summaryrefslogtreecommitdiff
path: root/src/eggtreemultidnd.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-13 12:05:34 +0100
committerraveit65 <[email protected]>2022-01-29 14:15:50 +0100
commit3664a2d2a6d2f18aaeadd355f2ae0bbf91b8a9c1 (patch)
treed97ee213fe891cbb579b5f8a3e13a56752a8965a /src/eggtreemultidnd.c
parentd2a04c51cf8ee50a390248192fdfb9a427bec6a3 (diff)
downloadengrampa-3664a2d2a6d2f18aaeadd355f2ae0bbf91b8a9c1.tar.bz2
engrampa-3664a2d2a6d2f18aaeadd355f2ae0bbf91b8a9c1.tar.xz
Fix some -Wfloat-conversion warnings
Diffstat (limited to 'src/eggtreemultidnd.c')
-rw-r--r--src/eggtreemultidnd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/eggtreemultidnd.c b/src/eggtreemultidnd.c
index 720c352..28fda8e 100644
--- a/src/eggtreemultidnd.c
+++ b/src/eggtreemultidnd.c
@@ -285,8 +285,8 @@ egg_tree_multi_drag_motion_event (GtkWidget *widget,
if (gtk_drag_check_threshold (widget,
priv_data->x,
priv_data->y,
- event->x,
- event->y))
+ (gint) event->x,
+ (gint) event->y))
{
GList *path_list = NULL;
GtkTreeSelection *selection;
@@ -316,8 +316,8 @@ egg_tree_multi_drag_motion_event (GtkWidget *widget,
GDK_ACTION_COPY,
priv_data->pressed_button,
(GdkEvent*) event,
- event->x,
- event->y);
+ (gint) event->x,
+ (gint) event->y);
set_context_data (context, path_list);
if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget),
@@ -395,7 +395,7 @@ egg_tree_multi_drag_button_press_event (GtkWidget *widget,
return FALSE;
gtk_tree_view_get_path_at_pos (tree_view,
- event->x, event->y,
+ (gint) event->x, (gint) event->y,
&path, &column,
&cell_x, &cell_y);
@@ -413,8 +413,8 @@ egg_tree_multi_drag_button_press_event (GtkWidget *widget,
if (gtk_tree_selection_path_is_selected (selection, path))
{
priv_data->pressed_button = event->button;
- priv_data->x = event->x;
- priv_data->y = event->y;
+ priv_data->x = (gint) event->x;
+ priv_data->y = (gint) event->y;
priv_data->pending_event = TRUE;
if (!call_parent)