summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkdisplaypanel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/gtkdisplaypanel.c')
-rw-r--r--src/gtkext/gtkdisplaypanel.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gtkext/gtkdisplaypanel.c b/src/gtkext/gtkdisplaypanel.c
index 2cb05ea..12a6af4 100644
--- a/src/gtkext/gtkdisplaypanel.c
+++ b/src/gtkext/gtkdisplaypanel.c
@@ -931,10 +931,10 @@ GObject *gtk_display_panel_get_active_object(const GtkDisplayPanel *panel)
/******************************************************************************
* *
-* Paramètres : panel = composant GTK à manipuler. *
-* addr = adresse à présenter à l'écran. *
-* tweak = adaptation finale à effectuer. *
-* move = doit-on déplacer le curseur à l'adresse indiquée ? *
+* Paramètres : panel = composant GTK à manipuler. *
+* cursor = emplacement à présenter à l'écran. *
+* tweak = adaptation finale à effectuer. *
+* move = doit-on déplacer le curseur à l'adresse indiquée ? *
* *
* Description : S'assure qu'une adresse donnée est visible à l'écran. *
* *
@@ -944,7 +944,7 @@ GObject *gtk_display_panel_get_active_object(const GtkDisplayPanel *panel)
* *
******************************************************************************/
-void _gtk_display_panel_scroll_to_address(GtkDisplayPanel *panel, const vmpa2t *addr, ScrollPositionTweak tweak, bool move)
+void _gtk_display_panel_scroll_to_cursor(GtkDisplayPanel *panel, const GLineCursor *cursor, ScrollPositionTweak tweak, bool move)
{
GtkWidget *parent; /* Support parent à valider */
gint x; /* Abscisse à garantir */
@@ -966,10 +966,12 @@ void _gtk_display_panel_scroll_to_address(GtkDisplayPanel *panel, const vmpa2t *
if (GTK_IS_DISPLAY_PANEL(parent))
panel = GTK_DISPLAY_PANEL(parent);
+ /*
if (GTK_DISPLAY_PANEL_GET_CLASS(panel)->define != NULL)
GTK_DISPLAY_PANEL_GET_CLASS(panel)->define(panel, addr);
+ */
- if (GTK_DISPLAY_PANEL_GET_CLASS(panel)->get_coordinates(panel, addr, &x, &y, tweak))
+ if (GTK_DISPLAY_PANEL_GET_CLASS(panel)->get_coordinates(panel, cursor, &x, &y, tweak))
{
viewport = gtk_widget_get_parent(GTK_WIDGET(panel));
@@ -1003,7 +1005,7 @@ void _gtk_display_panel_scroll_to_address(GtkDisplayPanel *panel, const vmpa2t *
/* Déplacement du curseur */
- if (move && GTK_DISPLAY_PANEL_GET_CLASS(panel)->get_coordinates(panel, addr, &x, &y, SPT_RAW))
+ if (move && GTK_DISPLAY_PANEL_GET_CLASS(panel)->get_coordinates(panel, cursor, &x, &y, SPT_RAW))
GTK_DISPLAY_PANEL_GET_CLASS(panel)->move_caret_to(panel, x, y);
}