diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-05-29 17:38:31 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-05-29 17:38:31 +0200 |
commit | 6e8575670fd9f5ab9fb9163a572df59aea7d05aa (patch) | |
tree | b65537d555d09659c5d5e971618c909ef35db4f3 | |
parent | 039b0185c985cbd0c7ef504df32afa73094235fc (diff) |
Add menu item (and hotkey) to start presentation
-rw-r--r-- | data/colloquium.ui | 4 | ||||
-rw-r--r-- | src/mainwindow.c | 4 | ||||
-rw-r--r-- | src/presentation.h | 1 |
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; |