diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-14 09:16:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-14 09:16:39 (GMT) |
commit | e0af5dc9c01a5b9649c68ec63109ba98b6843329 (patch) | |
tree | 678f88b1338d57838e4d2d31747da8c645487662 /src | |
parent | 91e69d0a853af5de0cc47161106520d4e52ed1d9 (diff) |
Removed the unused address parameter when relocating carets.
Diffstat (limited to 'src')
-rw-r--r-- | src/gtkext/gtkblockdisplay.c | 5 | ||||
-rw-r--r-- | src/gtkext/gtkbufferdisplay-int.h | 2 | ||||
-rw-r--r-- | src/gtkext/gtkbufferdisplay.c | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/gtkext/gtkblockdisplay.c b/src/gtkext/gtkblockdisplay.c index 48ca2b8..1e677ca 100644 --- a/src/gtkext/gtkblockdisplay.c +++ b/src/gtkext/gtkblockdisplay.c @@ -82,7 +82,7 @@ static GLineCursor *gtk_block_display_get_cursor(const GtkBlockDisplay *); static void gtk_block_display_set_cursor(GtkBlockDisplay *, const GLineCursor *); /* Réagit à un déplacement de curseur. */ -static bool gtk_block_display_notify_caret_relocation(GtkBlockDisplay *, const GdkRectangle *, const vmpa2t *); +static bool gtk_block_display_notify_caret_relocation(GtkBlockDisplay *, const GdkRectangle *); @@ -442,7 +442,6 @@ static void gtk_block_display_set_cursor(GtkBlockDisplay *display, const GLineCu * * * Paramètres : display = composant GTK à manipuler. * * area = emplacement pour le dessin d'un curseur. * -* addr = position dans la mémoire représentée du curseur. * * * * Description : Réagit à un déplacement de curseur. * * * @@ -452,7 +451,7 @@ static void gtk_block_display_set_cursor(GtkBlockDisplay *display, const GLineCu * * ******************************************************************************/ -static bool gtk_block_display_notify_caret_relocation(GtkBlockDisplay *display, const GdkRectangle *area, const vmpa2t *addr) +static bool gtk_block_display_notify_caret_relocation(GtkBlockDisplay *display, const GdkRectangle *area) { bool result; /* Bilan à retourner */ GBufferView *view; /* Vue du tampon représenté */ diff --git a/src/gtkext/gtkbufferdisplay-int.h b/src/gtkext/gtkbufferdisplay-int.h index 079d271..2d1dbe3 100644 --- a/src/gtkext/gtkbufferdisplay-int.h +++ b/src/gtkext/gtkbufferdisplay-int.h @@ -33,7 +33,7 @@ /* Réagit à un déplacement de curseur. */ -typedef bool (* notify_caret_relocation_fc) (GtkBufferDisplay *, const GdkRectangle *, const vmpa2t *); +typedef bool (* notify_caret_relocation_fc) (GtkBufferDisplay *, const GdkRectangle *); /* Composant d'affichage de tampon de lignes (instance) */ diff --git a/src/gtkext/gtkbufferdisplay.c b/src/gtkext/gtkbufferdisplay.c index ad0589e..45c7193 100644 --- a/src/gtkext/gtkbufferdisplay.c +++ b/src/gtkext/gtkbufferdisplay.c @@ -943,7 +943,7 @@ static void gtk_buffer_display_relocate_caret(GtkBufferDisplay *display, const c copy_vmpa(&display->caret_addr, addr); if (GTK_BUFFER_DISPLAY_GET_CLASS(display)->notify_caret != NULL) - need_redraw = GTK_BUFFER_DISPLAY_GET_CLASS(display)->notify_caret(display, area, addr); + need_redraw = GTK_BUFFER_DISPLAY_GET_CLASS(display)->notify_caret(display, area); else need_redraw = false; |