From 7cafbd223aeb5b64dd440b4fa53b8eda55a02560 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 27 Jun 2015 19:48:01 -0400 Subject: [PATCH] More GTK+ control stubbing. Incidentally, this actually finishes the implementation of uiSeparator. --- redo/unix/separator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redo/unix/separator.c b/redo/unix/separator.c index 6d3535ac..b8df34de 100644 --- a/redo/unix/separator.c +++ b/redo/unix/separator.c @@ -4,6 +4,7 @@ struct separator { uiSeparator s; GtkWidget *widget; + GtkSeparator *separator; }; uiDefineControlType(uiSeparator, uiTypeSeparator, struct separator) @@ -21,7 +22,9 @@ uiSeparator *uiNewHorizontalSeparator(void) s = (struct separator *) uiNewControl(uiTypeSeparator()); - PUT_CODE_HERE; + s->widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); + s->separator = GTK_SEPARATOR(s->widget); + uiUnixMakeSingleWidgetControl(uiControl(s), s->widget); uiControl(s)->Handle = separatorHandle;