From 7f82ae3627592facfcdb84b187e03cafa654ac13 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Sep 2013 22:24:22 +0200 Subject: Add notes --- src/mainwindow.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mainwindow.c') diff --git a/src/mainwindow.c b/src/mainwindow.c index e84dd27..e3a5329 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -39,6 +39,7 @@ #include "frame.h" #include "slideshow.h" #include "wrap.h" +#include "notes.h" /* Update a slide, once it's been edited in some way. */ @@ -630,9 +631,9 @@ void change_edit_slide(struct presentation *p, struct slide *np) update_toolbar(p); redraw_editor(p); - //if ( p->notes != NULL ) { - // notify_notes_slide_changed(p, np); - //} + if ( p->notes != NULL ) { + notify_notes_slide_changed(p, np); + } if ( (p->slideshow != NULL) && p->slideshow_linked ) { change_proj_slide(p, np); @@ -708,8 +709,7 @@ static gint open_stylesheet_sig(GtkWidget *widget, struct presentation *p) static gint open_notes_sig(GtkWidget *widget, struct presentation *p) { - /* FIXME */ - //open_notes(p); + open_notes(p); return FALSE; } @@ -765,7 +765,7 @@ static void add_menu_bar(struct presentation *p, GtkWidget *vbox) { "TSlideshowAction", GTK_STOCK_FULLSCREEN, "_Start slideshow", "F5", NULL, G_CALLBACK(start_slideshow_sig) }, { "NotesAction", NULL, "_Open slide notes", - "F5", NULL, G_CALLBACK(open_notes_sig) }, + "F8", NULL, G_CALLBACK(open_notes_sig) }, { "PrefsAction", GTK_STOCK_PREFERENCES, "_Preferences", NULL, NULL, NULL }, -- cgit v1.2.3