#include <stdio.h>
#include <stdlib.h>
#include "toolbar.h"
#include "menu.h"
#include "../common/context.h"
void ui_toolitem(
char *name,
char *label, ui_callback f,
void *udata) {
UIcallback cb =
NULL;
void *e =
NULL;
if (f) {
UiEventData *event = malloc(
sizeof(UiEventData));
event->obj =
NULL;
event->user_data = udata;
event->callback = f;
event->value =
0;
cb = (UIcallback)ui_obj_callback;
e = event;
}
UItoolitem(name, label, cb, e);
}
void ui_toolbar_add_default(
char *name) {
UItoolbar_add_default(name);
}