aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 6afd548..26fcfaf 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -42,6 +42,7 @@
#include "tool_select.h"
#include "tool_text.h"
#include "tool_image.h"
+#include "notes.h"
static void add_ui_sig(GtkUIManager *ui, GtkWidget *widget,
@@ -393,6 +394,10 @@ void notify_slide_changed(struct presentation *p, struct slide *np)
update_toolbar(p);
redraw_slide(p->cur_edit_slide);
+ if ( p->notes != NULL ) {
+ notify_notes_slide_changed(p, np);
+ }
+
if ( (p->slideshow != NULL) && p->slideshow_linked ) {
notify_slideshow_slide_changed(p, np);
}
@@ -464,6 +469,13 @@ static gint open_stylesheet_sig(GtkWidget *widget, struct presentation *p)
}
+static gint open_notes_sig(GtkWidget *widget, struct presentation *p)
+{
+ open_notes(p);
+ return FALSE;
+}
+
+
enum tool_id
{
TOOL_SELECT,
@@ -579,6 +591,8 @@ static void add_menu_bar(struct presentation *p, GtkWidget *vbox)
{ "ToolsAction", NULL, "_Tools", NULL, NULL, NULL },
{ "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) },
{ "PrefsAction", GTK_STOCK_PREFERENCES, "_Preferences",
NULL, NULL, NULL },