[recipes] Trivial formatting fix



commit 1de5d6cf2eb69046082ea97ba54fcb7a34825065
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 7 12:23:40 2017 -0500

    Trivial formatting fix

 src/gr-recipe-printer.c |   52 +++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 28 deletions(-)
---
diff --git a/src/gr-recipe-printer.c b/src/gr-recipe-printer.c
index 73bd923..99ca72e 100644
--- a/src/gr-recipe-printer.c
+++ b/src/gr-recipe-printer.c
@@ -450,34 +450,30 @@ print_done (GtkPrintOperation       *operation,
 {
        GError *error = NULL;
 
-  if (res == GTK_PRINT_OPERATION_RESULT_ERROR)
-    {
-
-      GtkWidget *error_dialog;
-
-      gtk_print_operation_get_error (operation, &error);
-
-      error_dialog = gtk_message_dialog_new (GTK_WINDOW (printer->window),
-                                             GTK_DIALOG_DESTROY_WITH_PARENT,
-                                             GTK_MESSAGE_ERROR,
-                                             GTK_BUTTONS_CLOSE,
-                                             "%s\n%s",
-                                             _("Error printing file:"),
-                                             error ? error->message : _("No details"));
-      g_signal_connect (error_dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
-      gtk_widget_show (error_dialog);
-    }
-  else if (res == GTK_PRINT_OPERATION_RESULT_APPLY)
-    {
-            /* TODO: print settings */
-    }
-
-  if (!gtk_print_operation_is_finished (operation))
-    {
-            /* TODO monitoring */
-    }
-
-  g_object_unref (operation);
+        if (res == GTK_PRINT_OPERATION_RESULT_ERROR) {
+                GtkWidget *error_dialog;
+
+                gtk_print_operation_get_error (operation, &error);
+
+                error_dialog = gtk_message_dialog_new (GTK_WINDOW (printer->window),
+                                                       GTK_DIALOG_DESTROY_WITH_PARENT,
+                                                       GTK_MESSAGE_ERROR,
+                                                       GTK_BUTTONS_CLOSE,
+                                                       "%s\n%s",
+                                                       _("Error printing file:"),
+                                                       error ? error->message : _("No details"));
+                g_signal_connect (error_dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
+                gtk_widget_show (error_dialog);
+        }
+        else if (res == GTK_PRINT_OPERATION_RESULT_APPLY) {
+                /* TODO: print settings */
+        }
+
+        if (!gtk_print_operation_is_finished (operation)) {
+                /* TODO monitoring */
+        }
+
+        g_object_unref (operation);
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]