libui/unix/separator.c

28 lines
504 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
};
2015-08-27 22:00:34 -05:00
uiUnixDefineControl(
uiSeparator, // type name
uiSeparatorType // type function
)
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
s = (uiSeparator *) uiNewControl(uiSeparatorType());
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
uiUnixFinishNewControl(s, uiSeparator);
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
}