From 0753d313b8c93a37fd4d3fbbaa24aa7b7aa26161 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 2 May 2019 21:29:01 +0200 Subject: Formatting --- libstorycode/stylesheet.c | 6 +++--- src/narrative_window.c | 16 ++++++++-------- src/stylesheet_editor.c | 1 - 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 2b549db..3bbddb3 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -73,9 +73,9 @@ struct _stylesheet static void copy_col(struct colour *to, struct colour from) { - int i; - for ( i=0; i<4; i++ ) to->rgba[i] = from.rgba[i]; - to->hexcode = from.hexcode; + int i; + for ( i=0; i<4; i++ ) to->rgba[i] = from.rgba[i]; + to->hexcode = from.hexcode; } diff --git a/src/narrative_window.c b/src/narrative_window.c index 2a955de..3ef43af 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -434,16 +434,16 @@ static void testcard_sig(GSimpleAction *action, GVariant *parameter, static gint export_pdf_response_sig(GtkWidget *d, gint response, Narrative *n) { - if ( response == GTK_RESPONSE_ACCEPT ) { - char *filename; - filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(d)); - render_slides_to_pdf(n, narrative_get_imagestore(n), filename); - g_free(filename); - } + if ( response == GTK_RESPONSE_ACCEPT ) { + char *filename; + filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(d)); + render_slides_to_pdf(n, narrative_get_imagestore(n), filename); + g_free(filename); + } - gtk_widget_destroy(d); + gtk_widget_destroy(d); - return 0; + return 0; } diff --git a/src/stylesheet_editor.c b/src/stylesheet_editor.c index a694f8f..c70b678 100644 --- a/src/stylesheet_editor.c +++ b/src/stylesheet_editor.c @@ -630,4 +630,3 @@ StylesheetEditor *stylesheet_editor_new(Stylesheet *ss) return se; } - -- cgit v1.2.3