From 03c25960764a6b168739f6b799f84b800fd0e12a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 15 Apr 2019 23:12:37 +0200 Subject: Initial stylesheet editor --- src/narrative_window.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/narrative_window.c') diff --git a/src/narrative_window.c b/src/narrative_window.c index 2e557a6..f8d9127 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -44,7 +44,7 @@ #include "pr_clock.h" #include "slideshow.h" #include "print.h" -//#include "stylesheet_editor.h" +#include "stylesheet_editor.h" struct _narrative_window { @@ -271,14 +271,14 @@ static void stylesheet_changed_sig(GtkWidget *da, NarrativeWindow *nw) static void edit_ss_sig(GSimpleAction *action, GVariant *parameter, gpointer vp) { -// NarrativeWindow *nw = vp; -// StylesheetEditor *se; -// -// se = stylesheet_editor_new(nw->n); -// gtk_window_set_transient_for(GTK_WINDOW(se), GTK_WINDOW(nw->window)); -// g_signal_connect(G_OBJECT(se), "changed", -// G_CALLBACK(stylesheet_changed_sig), nw); -// gtk_widget_show_all(GTK_WIDGET(se)); + NarrativeWindow *nw = vp; + StylesheetEditor *se; + + se = stylesheet_editor_new(nw->n); + gtk_window_set_transient_for(GTK_WINDOW(se), GTK_WINDOW(nw->window)); + g_signal_connect(G_OBJECT(se), "changed", + G_CALLBACK(stylesheet_changed_sig), nw); + gtk_widget_show_all(GTK_WIDGET(se)); } -- cgit v1.2.3