2015-06-11 18:07:06 -05:00
|
|
|
// 11 june 2015
|
|
|
|
#include "uipriv_unix.h"
|
|
|
|
|
|
|
|
struct separator {
|
|
|
|
uiSeparator s;
|
|
|
|
GtkWidget *widget;
|
2015-06-27 18:48:01 -05:00
|
|
|
GtkSeparator *separator;
|
2015-06-11 18:07:06 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2015-06-14 19:02:38 -05:00
|
|
|
s = (struct separator *) uiNewControl(uiTypeSeparator());
|
2015-06-11 18:07:06 -05:00
|
|
|
|
2015-06-27 18:48:01 -05:00
|
|
|
s->widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
|
|
|
|
s->separator = GTK_SEPARATOR(s->widget);
|
|
|
|
uiUnixMakeSingleWidgetControl(uiControl(s), s->widget);
|
2015-06-11 18:07:06 -05:00
|
|
|
|
|
|
|
uiControl(s)->Handle = separatorHandle;
|
|
|
|
|
|
|
|
return uiSeparator(s);
|
|
|
|
}
|