Compilation fixes.
This commit is contained in:
parent
706d250292
commit
bd3764e176
|
@ -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));
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
// 4 september 2015
|
||||
#include "area.h"
|
||||
|
||||
// #qo pkg-config: gtk+-3.0
|
||||
|
||||
struct handler {
|
||||
uiAreaHandler ah;
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue