diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-03-26 21:21:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-03-26 21:21:24 (GMT) |
commit | 4bc86c5dc8d3cfa9780103b56f52024a49913c22 (patch) | |
tree | b71c0e7868441fa22067d6dc1bad0cfcc8bbec1d /src/gtkext/gtkbufferview.c | |
parent | 9895df71ae6ea14e09478cc243227b7b3a2139a3 (diff) |
Fixed various bugs and mistakes.
Diffstat (limited to 'src/gtkext/gtkbufferview.c')
-rw-r--r-- | src/gtkext/gtkbufferview.c | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c index d54560c..f775de5 100644 --- a/src/gtkext/gtkbufferview.c +++ b/src/gtkext/gtkbufferview.c @@ -73,6 +73,9 @@ static void gtk_buffer_view_compute_scroll_inc(GtkBufferView *, gint, GtkOrienta /* Réagit à un défilement chez une barre associée au composant. */ static void gtk_buffer_view_adjust_scroll_value(GtkBufferView *, GtkAdjustment *, GtkOrientation); +/* Indique la position courante du curseur. */ +static const vmpa2t *gtk_buffer_view_get_caret_location(const GtkBufferView *); + /* Indique la position d'affichage d'une adresse donnée. */ static bool gtk_buffer_view_get_address_coordinates(const GtkBufferView *, const vmpa2t *, gint *, gint *, ScrollPositionTweak); @@ -145,6 +148,8 @@ static void gtk_buffer_view_class_init(GtkBufferViewClass *class) panel_class->compute_size = (compute_requested_size_fc)gtk_buffer_view_compute_requested_size; panel_class->compute_inc = (compute_scroll_inc_fc)gtk_buffer_view_compute_scroll_inc; panel_class->adjust = (adjust_scroll_value_fc)gtk_buffer_view_adjust_scroll_value; + + panel_class->get_caret_loc = (get_caret_location_fc)gtk_buffer_view_get_caret_location; panel_class->get_coordinates = (get_addr_coordinates_fc)gtk_buffer_view_get_address_coordinates; panel_class->get_position = (get_view_position_fc)gtk_buffer_view_get_position; panel_class->move_caret_to = (move_caret_to_fc)_gtk_buffer_view_move_caret_to; @@ -723,6 +728,25 @@ static void gtk_buffer_view_adjust_scroll_value(GtkBufferView *view, GtkAdjustme /****************************************************************************** * * +* Paramètres : view = composant GTK à manipuler. * +* * +* Description : Indique la position courante du curseur. * +* * +* Retour : Emplacement courant du curseur ou NULL si aucun. * +* * +* Remarques : - * +* * +******************************************************************************/ + +static const vmpa2t *gtk_buffer_view_get_caret_location(const GtkBufferView *view) +{ + return view->caret_addr; + +} + + +/****************************************************************************** +* * * Paramètres : view = composant GTK à consulter. * * addr = adresse à présenter à l'écran. * * x = position horizontale au sein du composant. [OUT] * @@ -1052,25 +1076,6 @@ static void gtk_buffer_view_relocate_caret(GtkBufferView *view, const GdkRectang * * * Paramètres : view = composant GTK à manipuler. * * * -* Description : Indique la position courante du curseur. * -* * -* Retour : Emplacement courant du curseur. * -* * -* Remarques : - * -* * -******************************************************************************/ - -const vmpa2t *gtk_buffer_view_get_caret_location(const GtkBufferView *view) -{ - return view->caret_addr; - -} - - -/****************************************************************************** -* * -* Paramètres : view = composant GTK à manipuler. * -* * * Description : Redémarre l'affichage du curseur à l'emplacement courant. * * * * Retour : - * |