Formatting
authorThomas White <taw@bitwiz.me.uk>
Thu, 2 May 2019 19:29:01 +0000 (21:29 +0200)
committerThomas White <taw@bitwiz.me.uk>
Thu, 2 May 2019 21:02:40 +0000 (23:02 +0200)
libstorycode/stylesheet.c
src/narrative_window.c
src/stylesheet_editor.c

index 2b549db..3bbddb3 100644 (file)
@@ -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;
 }
 
 
index 2a955de..3ef43af 100644 (file)
@@ -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;
 }
 
 
index a694f8f..c70b678 100644 (file)
@@ -630,4 +630,3 @@ StylesheetEditor *stylesheet_editor_new(Stylesheet *ss)
 
        return se;
 }
-