summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkgraphview.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-26 21:21:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-26 21:21:24 (GMT)
commit4bc86c5dc8d3cfa9780103b56f52024a49913c22 (patch)
treeb71c0e7868441fa22067d6dc1bad0cfcc8bbec1d /src/gtkext/gtkgraphview.c
parent9895df71ae6ea14e09478cc243227b7b3a2139a3 (diff)
Fixed various bugs and mistakes.
Diffstat (limited to 'src/gtkext/gtkgraphview.c')
-rw-r--r--src/gtkext/gtkgraphview.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c
index c10d9c1..a2c0cd3 100644
--- a/src/gtkext/gtkgraphview.c
+++ b/src/gtkext/gtkgraphview.c
@@ -83,6 +83,9 @@ static void gtk_graph_view_prepare_resize(GtkGraphView *);
/* Réagit à la sélection externe d'une adresse. */
static void gtk_graph_view_define_main_address(GtkGraphView *, const vmpa2t *);
+/* Indique la position courante du curseur. */
+static const vmpa2t *gtk_graph_view_get_caret_location(const GtkGraphView *);
+
/* Indique la position d'affichage d'une adresse donnée. */
static bool gtk_graph_view_get_address_coordinates(const GtkGraphView *, const vmpa2t *addr, gint *x, gint *y, ScrollPositionTweak tweak);
@@ -131,6 +134,8 @@ static void gtk_graph_view_class_init(GtkGraphViewClass *class)
panel_class->compute_size = (compute_requested_size_fc)gtk_graph_view_compute_requested_size;
panel_class->adjust = (adjust_scroll_value_fc)gtk_graph_view_adjust_scroll_value;
panel_class->define = (define_address_fc)gtk_graph_view_define_main_address;
+
+ panel_class->get_caret_loc = (get_caret_location_fc)gtk_graph_view_get_caret_location;
panel_class->get_coordinates = (get_addr_coordinates_fc)gtk_graph_view_get_address_coordinates;
panel_class->move_caret_to = (move_caret_to_fc)gtk_graph_view_move_caret_to;
panel_class->cache_glance = (cache_glance_fc)gtk_graph_view_cache_glance;
@@ -380,6 +385,25 @@ static void gtk_graph_view_define_main_address(GtkGraphView *view, const vmpa2t
/******************************************************************************
* *
+* 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_graph_view_get_caret_location(const GtkGraphView *view)
+{
+ return NULL; /* FIXME */
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : view = composant GTK à consulter. *
* addr = adresse à présenter à l'écran. *
* x = position horizontale au sein du composant. [OUT] *