summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2013-06-09 23:01:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2013-06-09 23:01:31 (GMT)
commitaed45245289e3e16d421aa6154dcb803e86addaa (patch)
tree4c55410d7b46cb108c7ef9c69cac88644ef97f48 /src/gtkext
parented59530ca0cc8e4cf03ea8328122bb3d279840a9 (diff)
Fixed a bug when drawing carets at high addresses.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@352 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkbufferview.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c
index 6556eb8..7cb1e9b 100644
--- a/src/gtkext/gtkbufferview.c
+++ b/src/gtkext/gtkbufferview.c
@@ -231,8 +231,7 @@ static gboolean gtk_buffer_view_button_press(GtkWidget *widget, GdkEventButton *
if (addr != VMPA_INVALID)
{
- //gtk_buffer_view_compute_fake_coord(view, &view->caret.x, &view->caret.y);
-
+ gtk_buffer_view_compute_relative_coords(view, &view->caret.x, &view->caret.y);
printf(" mouse --old-- :: (%d ; %d)\n",
view->caret.x, view->caret.y);
@@ -436,7 +435,7 @@ static gboolean gtk_buffer_view_expose(GtkWidget *widget, GdkEventExpose *event)
gdk_window_begin_paint_region(drawable, event->region);
- gdk_gc_set_clip_region(pview->gc, event->region);
+ //gdk_gc_set_clip_region(pview->gc, event->region);
style = gtk_widget_get_style(GTK_WIDGET(view));