diff --git a/CMakeLists.txt b/CMakeLists.txt index 5169ef1..636b37a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,8 +52,6 @@ set(sources src/callbacks.h src/config.c src/config.h - src/parser.c - src/parser.h src/drawing.c src/drawing.h src/main.c diff --git a/src/callbacks.c b/src/callbacks.c index c4a1594..918a616 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -403,7 +403,7 @@ gboolean on_motion (GtkWidget *win, if (type == GROMIT_LINE) { draw_line (data, ev->device, devdata->lastx, devdata->lasty, ev->x, ev->y); - if (devdata->cur_context->arrowsize > 0) + if (devdata->cur_context->arrowsize > 0.0) { GromitArrowType atype = devdata->cur_context->arrow_type; gint width = devdata->cur_context->arrowsize * devdata->cur_context->width / 2; diff --git a/src/config.c b/src/config.c index 5fac102..687ffd5 100644 --- a/src/config.c +++ b/src/config.c @@ -226,7 +226,7 @@ gboolean parse_tool(GromitData *data, GScanner *scanner, GromitPaintContext *sty } else { - g_printerr ("Expected Tool-definition or name of template tool\n"); + g_printerr ("Expected tool definition or name of template tool\n"); goto cleanup; } return TRUE; @@ -235,7 +235,6 @@ gboolean parse_tool(GromitData *data, GScanner *scanner, GromitPaintContext *sty if (color_allocated) { g_free(style->paint_color); - g_printerr("parse_tool: free color @ %p\n", style->paint_color); style->paint_color = NULL; } return FALSE; @@ -279,7 +278,7 @@ ToolAttribute parse_attribute(GScanner *scanner, GromitPaintContext *style) { gfloat v = parse_float(scanner, "Missing arrowsize"); if (isnan(v)) return SYM_ERROR; - style->arrowsize = v + 0.5; + style->arrowsize = v; } else if (id == SYM_ARROWTYPE) {