aboutsummaryrefslogtreecommitdiff
path: root/src/shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shape.c')
-rw-r--r--src/shape.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shape.c b/src/shape.c
index 3fddaa6..84f8f03 100644
--- a/src/shape.c
+++ b/src/shape.c
@@ -251,7 +251,8 @@ static int add_text_box(struct wrap_line *line,
void add_callback_box(struct wrap_line *line, double w, double h,
- SCCallbackDrawFunc func, void *bvp, void *vp)
+ SCCallbackDrawFunc draw_func,
+ SCCallbackClickFunc click_func, void *bvp, void *vp)
{
struct wrap_box *box;
@@ -269,7 +270,8 @@ void add_callback_box(struct wrap_line *line, double w, double h,
box->width = pango_units_from_double(w);
box->ascent = pango_units_from_double(h);
box->height = pango_units_from_double(h);
- box->draw_func = func;
+ box->draw_func = draw_func;
+ box->click_func = click_func;
box->bvp = bvp;
box->vp = vp;
box->editable = 0;