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;
|
2015-06-27 18:48:01 -05:00
|
|
|
GtkSeparator *separator;
|
2015-06-11 18:07:06 -05:00
|
|
|
};
|
|
|
|
|
2015-08-27 22:00:34 -05:00
|
|
|
uiUnixDefineControl(
|
2016-04-24 14:04:36 -05:00
|
|
|
uiSeparator // type name
|
2015-08-27 22:00:34 -05:00
|
|
|
)
|
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
|
|
|
|
2016-04-24 15:59:46 -05:00
|
|
|
s = (uiSeparator *) uiNewControl(uiSeparator);
|
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);
|
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
|
|
|
}
|