summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkbufferview.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-08-26 22:41:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-08-26 22:41:12 (GMT)
commit10b620c3f7d6a9e78aa1e9d6dabef466d0b9e3af (patch)
tree3324503e81bdbc83611aa52b4df83b51090d7104 /src/gtkext/gtkbufferview.c
parent90a79bf4c2c21715e5ef9d8a370928d218c08784 (diff)
Looked for coordinates using the new addresses definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@394 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkbufferview.c')
-rw-r--r--src/gtkext/gtkbufferview.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c
index e58ae5c..032fcf9 100644
--- a/src/gtkext/gtkbufferview.c
+++ b/src/gtkext/gtkbufferview.c
@@ -62,7 +62,7 @@ static gboolean gtk_buffer_view_draw(GtkWidget *, cairo_t *);
static gboolean gtk_buffer_view_key_press(GtkWidget *, GdkEventKey *);
/* Indique la position d'affichage d'une adresse donnée. */
-static bool gtk_buffer_view_get_address_coordinates(const GtkBufferView *, vmpa_t, gint *, gint *);
+static bool gtk_buffer_view_get_address_coordinates(const GtkBufferView *, const vmpa2t *, gint *, gint *);
/* Place en cache un rendu destiné à l'aperçu graphique rapide. */
static void gtk_buffer_view_cache_glance(GtkBufferView *, cairo_t *, const GtkAllocation *, double);
@@ -246,8 +246,11 @@ static gboolean gtk_buffer_view_button_press(GtkWidget *widget, GdkEventButton *
}
else
{
+ return FALSE;
+ /*
addr = g_buffer_view_compute_caret(view->buffer_view, line, index, real_x, &new);
if (addr == VMPA_INVALID) return FALSE;
+ */
gtk_buffer_view_compute_relative_coords(view, &view->caret.x, &view->caret.y);
@@ -586,7 +589,7 @@ static gboolean gtk_buffer_view_key_press(GtkWidget *widget, GdkEventKey *event)
* *
******************************************************************************/
-static bool gtk_buffer_view_get_address_coordinates(const GtkBufferView *view, vmpa_t addr, gint *x, gint *y)
+static bool gtk_buffer_view_get_address_coordinates(const GtkBufferView *view, const vmpa2t *addr, gint *x, gint *y)
{
return g_buffer_view_get_address_coordinates(view->buffer_view, addr, x, y);