aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 33609eb..1d254b1 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -40,6 +40,7 @@
#include "pr_clock.h"
#include "print.h"
#include "utils.h"
+#include "stylesheet_editor.h"
struct _narrative_window
@@ -313,6 +314,18 @@ static gint load_ss_response_sig(GtkWidget *d, gint response,
}
+static void edit_ss_sig(GSimpleAction *action, GVariant *parameter,
+ gpointer vp)
+{
+ NarrativeWindow *nw = vp;
+ StylesheetEditor *se;
+
+ se = stylesheet_editor_new(nw->p);
+ gtk_window_set_transient_for(GTK_WINDOW(se), GTK_WINDOW(nw->window));
+ gtk_widget_show_all(GTK_WIDGET(se));
+}
+
+
static void load_ss_sig(GSimpleAction *action, GVariant *parameter,
gpointer vp)
{
@@ -741,6 +754,7 @@ GActionEntry nw_entries[] = {
{ "deleteslide", delete_slide_sig, NULL, NULL, NULL },
{ "slide", add_slide_sig, NULL, NULL, NULL },
{ "loadstylesheet", load_ss_sig, NULL, NULL, NULL },
+ { "stylesheet", edit_ss_sig, NULL, NULL, NULL },
{ "startslideshow", start_slideshow_sig, NULL, NULL, NULL },
{ "startslideshowhere", start_slideshow_here_sig, NULL, NULL, NULL },
{ "startslideshownoslides", start_slideshow_noslides_sig, NULL, NULL, NULL },