summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkbufferview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/gtkbufferview.c')
-rw-r--r--src/gtkext/gtkbufferview.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c
index 0d74176..ef4f985 100644
--- a/src/gtkext/gtkbufferview.c
+++ b/src/gtkext/gtkbufferview.c
@@ -125,6 +125,8 @@ static void gtk_buffer_view_class_init(GtkBufferViewClass *class)
panel_class->adjust = (adjust_scroll_value_fc)gtk_buffer_view_adjust_scroll_value;
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->cache_glance = (cache_glance_fc)gtk_buffer_view_cache_glance;
+
g_signal_new("caret-moved",
GTK_TYPE_BUFFER_VIEW,
@@ -151,12 +153,6 @@ static void gtk_buffer_view_class_init(GtkBufferViewClass *class)
static void gtk_buffer_view_init(GtkBufferView *view)
{
- GtkViewPanel *viewpanel; /* Instance parente */
-
- viewpanel = GTK_VIEW_PANEL(view);
-
- viewpanel->cache_glance = (cache_glance_fc)gtk_buffer_view_cache_glance;
-
view->caret.x = 10;
view->caret.y = 10;
view->caret.width = 100;