libui/redo/unix/separator.c

30 lines
517 B
C
Raw Normal View History

2015-06-11 18:07:06 -05:00
// 11 june 2015
#include "uipriv_unix.h"
struct separator {
uiSeparator s;
GtkWidget *widget;
};
uiDefineControlType(uiSeparator, uiTypeSeparator, struct separator)
static uintptr_t separatorHandle(uiControl *c)
{
struct separator *s = (struct separator *) c;
return (uintptr_t) (s->widget);
}
uiSeparator *uiNewHorizontalSeparator(void)
{
struct separator *s;
s = (struct separator *) uiNewControl(uiTypeSeparator());
2015-06-11 18:07:06 -05:00
PUT_CODE_HERE;
uiControl(s)->Handle = separatorHandle;
return uiSeparator(s);
}