libui/unix/separator.c

23 lines
386 B
C
Raw Normal View History

2015-06-11 18:07:06 -05:00
// 11 june 2015
#include "uipriv_unix.h"
2015-08-27 22:00:34 -05:00
struct uiSeparator {
uiUnixControl c;
2015-06-11 18:07:06 -05:00
GtkWidget *widget;
GtkSeparator *separator;
2015-06-11 18:07:06 -05:00
};
uiUnixControlAllDefaults(uiSeparator)
2015-06-11 18:07:06 -05:00
uiSeparator *uiNewHorizontalSeparator(void)
{
2015-08-27 22:00:34 -05:00
uiSeparator *s;
2015-06-11 18:07:06 -05:00
uiUnixNewControl(uiSeparator, s);
2015-06-11 18:07:06 -05:00
s->widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
s->separator = GTK_SEPARATOR(s->widget);
2015-06-11 18:07:06 -05:00
2015-08-27 22:00:34 -05:00
return s;
2015-06-11 18:07:06 -05:00
}