From 350c51a006edba2a46e7f17bf05098b398a4cb80 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 12 Oct 2012 00:53:34 +0200 Subject: Move "frame" to new module --- src/mainwindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.c') diff --git a/src/mainwindow.c b/src/mainwindow.c index a4221a6..1a5f7d9 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -35,6 +35,7 @@ #include "presentation.h" #include "mainwindow.h" #include "render.h" +#include "frame.h" static void redraw_slide(struct slide *s) @@ -517,13 +518,15 @@ static gint add_furniture(GtkWidget *widget, struct presentation *p) { gchar *name; struct style *sty; + struct frame *fr; g_object_get(G_OBJECT(widget), "label", &name, NULL); sty = find_style(p->ss, name); g_free(name); if ( sty == NULL ) return 0; - /* FIXME: Create it */ + fr = add_subframe(p->cur_edit_slide->top); + fr->style = sty; return 0; } -- cgit v1.2.3