From e0af5dc9c01a5b9649c68ec63109ba98b6843329 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sat, 14 Jul 2018 11:16:39 +0200 Subject: Removed the unused address parameter when relocating carets. --- src/gtkext/gtkblockdisplay.c | 5 ++--- src/gtkext/gtkbufferdisplay-int.h | 2 +- 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; -- cgit v0.11.2-87-g4458