fix demos

This commit is contained in:
Christian Hergert 2023-02-07 16:14:18 -08:00
parent e9a0c17f45
commit 2f0104ed23
2 changed files with 3 additions and 3 deletions

View File

@ -264,7 +264,7 @@ released_cb (GtkGestureClick *gesture,
{
GtkTextIter start, end, iter;
GtkTextBuffer *buffer;
int tx, ty;
GtkTextUnit tx, ty;
if (gtk_gesture_single_get_button (GTK_GESTURE_SINGLE (gesture)) > 1)
return;
@ -290,7 +290,7 @@ motion_cb (GtkEventControllerMotion *controller,
double y,
GtkTextView *text_view)
{
int tx, ty;
GtkTextUnit tx, ty;
gtk_text_view_window_to_buffer_coords (text_view,
GTK_TEXT_WINDOW_WIDGET,

View File

@ -315,7 +315,7 @@ text_view_query_tooltip_cb (GtkWidget *widget,
}
else
{
int bx, by, trailing;
GtkTextUnit bx, by, trailing;
gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (self->text_view), GTK_TEXT_WINDOW_TEXT,
x, y, &bx, &by);