From bd3764e17606734f4b7dca0f3b07a0c49441408d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 4 Sep 2015 17:56:13 -0400 Subject: [PATCH] Compilation fixes. --- gtkarea/area.c | 2 +- gtkarea/area.h | 1 + gtkarea/main.c | 2 ++ gtkarea/ui.h | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gtkarea/area.c b/gtkarea/area.c index f78d7cc2..0701870d 100644 --- a/gtkarea/area.c +++ b/gtkarea/area.c @@ -129,7 +129,7 @@ static void onValueChanged(GtkAdjustment *a, gpointer data) static void replaceAdjustment(areaWidget *a, GtkAdjustment **adj, const GValue *value) { if (*adj != NULL) { - g_signal_handlers_disconnect_by_func(*adj, G_CALLBACK(onValueChanged), cc); + g_signal_handlers_disconnect_by_func(*adj, G_CALLBACK(onValueChanged), a); g_object_unref(*adj); } *adj = GTK_ADJUSTMENT(g_value_get_object(value)); diff --git a/gtkarea/area.h b/gtkarea/area.h index 7a0a3931..24871e39 100644 --- a/gtkarea/area.h +++ b/gtkarea/area.h @@ -4,6 +4,7 @@ #define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4 #define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4 #include +#include #define areaWidgetType (areaWidget_get_type()) #define areaWidget(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), areaWidgetType, areaWidget)) diff --git a/gtkarea/main.c b/gtkarea/main.c index 81c9457b..71c9ce97 100644 --- a/gtkarea/main.c +++ b/gtkarea/main.c @@ -1,6 +1,8 @@ // 4 september 2015 #include "area.h" +// #qo pkg-config: gtk+-3.0 + struct handler { uiAreaHandler ah; }; diff --git a/gtkarea/ui.h b/gtkarea/ui.h index 923f2f2d..2a8eb925 100644 --- a/gtkarea/ui.h +++ b/gtkarea/ui.h @@ -7,7 +7,7 @@ typedef struct uiAreaDrawParams uiAreaDrawParams; struct uiAreaHandler { // TODO draw void (*HScrollConfig)(uiAreaHandler *, uiArea *, uintmax_t *, uintmax_t *); - void (*VScrollConfig)(uiAreaHandler *, uiArea *, uintmax_t *, uintmx_t *); + void (*VScrollConfig)(uiAreaHandler *, uiArea *, uintmax_t *, uintmax_t *); }; // TODO uiAreaDrawParams