33 lines
686 B
C
33 lines
686 B
C
// 11 june 2015
|
|
#include "uipriv_unix.h"
|
|
|
|
struct separator {
|
|
uiSeparator s;
|
|
GtkWidget *widget;
|
|
GtkSeparator *separator;
|
|
};
|
|
|
|
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());
|
|
|
|
s->widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
|
|
s->separator = GTK_SEPARATOR(s->widget);
|
|
uiUnixMakeSingleWidgetControl(uiControl(s), s->widget);
|
|
|
|
uiControl(s)->Handle = separatorHandle;
|
|
|
|
return uiSeparator(s);
|
|
}
|