aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/colloquium.ui4
-rw-r--r--src/mainwindow.c4
-rw-r--r--src/presentation.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/data/colloquium.ui b/data/colloquium.ui
index dee6882..936ffd3 100644
--- a/data/colloquium.ui
+++ b/data/colloquium.ui
@@ -5,6 +5,10 @@
<menuitem name="quit" action="QuitAction" />
</menu>
+ <menu name="tools" action="ToolsAction">
+ <menuitem name="slideshow" action="TSlideshowAction" />
+ </menu>
+
<menu name="help" action="HelpAction">
<menuitem name="about" action="AboutAction" />
</menu>
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 6feaddc..87bb07d 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -206,6 +206,10 @@ static void add_menu_bar(struct presentation *p, GtkWidget *vbox)
{ "QuitAction", GTK_STOCK_QUIT, "_Quit", NULL, NULL,
G_CALLBACK(quit_sig) },
+ { "ToolsAction", NULL, "_Tools", NULL, NULL, NULL },
+ { "TSlideshowAction", GTK_STOCK_FULLSCREEN, "_Start slideshow",
+ "F5", NULL, G_CALLBACK(start_slideshow_sig) },
+
{ "HelpAction", NULL, "_Help", NULL, NULL, NULL },
{ "AboutAction", GTK_STOCK_ABOUT, "_About...",
NULL, NULL, G_CALLBACK(about_sig) },
diff --git a/src/presentation.h b/src/presentation.h
index d9583fe..ba4dd90 100644
--- a/src/presentation.h
+++ b/src/presentation.h
@@ -57,6 +57,7 @@ struct presentation
GtkIMContext *im_context;
GtkWidget *slideshow;
GtkWidget *ss_drawingarea;
+ GdkCursor *blank_cursor;
double slide_width;
double slide_height;