Compilation fixes.

This commit is contained in:
Pietro Gagliardi 2015-09-04 17:56:13 -04:00
parent 706d250292
commit bd3764e176
4 changed files with 5 additions and 2 deletions

View File

@ -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));

View File

@ -4,6 +4,7 @@
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4
#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4
#include <gtk/gtk.h>
#include <stdint.h>
#define areaWidgetType (areaWidget_get_type())
#define areaWidget(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), areaWidgetType, areaWidget))

View File

@ -1,6 +1,8 @@
// 4 september 2015
#include "area.h"
// #qo pkg-config: gtk+-3.0
struct handler {
uiAreaHandler ah;
};

View File

@ -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