aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-10-12 00:53:34 +0200
committerThomas White <taw@bitwiz.org.uk>2012-10-12 00:53:34 +0200
commit350c51a006edba2a46e7f17bf05098b398a4cb80 (patch)
treeb6a996032b7131eb72c5b070325c78a005087ed0 /src/mainwindow.c
parenteea7bf93ada2a57fad1dac3e5233f703d1af02ff (diff)
Move "frame" to new module
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c5
1 files changed, 4 insertions, 1 deletions
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;
}