[five-or-more/arnaudb/wip/gtk4: 62/80] Replace queue_draw_area().
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 62/80] Replace queue_draw_area().
- Date: Sun, 25 Oct 2020 18:51:47 +0000 (UTC)
commit 0b9a89a1ee7171e8a9d9f8a1aa3bbc59628847f6
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Mar 13 10:18:15 2020 +0100
Replace queue_draw_area().
src/view.vala | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index 9e9a0b8..a5ff89d 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -143,7 +143,7 @@ private class View : DrawingArea
if (!show_cursor)
{
show_cursor = true;
- queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
+ // queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
}
keyboard_cursor_x += x;
@@ -161,8 +161,9 @@ private class View : DrawingArea
if (keyboard_cursor_x == prev_x && keyboard_cursor_y == prev_y)
return;
- queue_draw_area (prev_x * piece_size, prev_y * piece_size, piece_size, piece_size);
- queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
+ // queue_draw_area (prev_x * piece_size, prev_y * piece_size, piece_size, piece_size);
+ // queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
+ queue_draw ();
}
private void init_keyboard ()
@@ -306,7 +307,8 @@ private class View : DrawingArea
if (show_cursor)
{
show_cursor = false;
- queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
+ // queue_draw_area (keyboard_cursor_x * piece_size, keyboard_cursor_y * piece_size, piece_size,
piece_size);
+ queue_draw ();
}
cell_x = (int)event_x / piece_size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]