[gtk+/portal] Move code after declarations



commit bd9ceb31241108c8724425debc14b5053a893a4d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 6 22:50:34 2016 -0400

    Move code after declarations

 gtk/gtkprintoperation-portal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprintoperation-portal.c b/gtk/gtkprintoperation-portal.c
index 70fb1a1..b71c1e3 100644
--- a/gtk/gtkprintoperation-portal.c
+++ b/gtk/gtkprintoperation-portal.c
@@ -381,7 +381,6 @@ prepare_print_response (GDBusConnection *connection,
 
   if (portal->do_print)
     {
-      portal->result = GTK_PRINT_OPERATION_RESULT_APPLY;
       GVariant *v;
       GtkPrintSettings *settings;
       GtkPageSetup *page_setup;
@@ -390,6 +389,8 @@ prepare_print_response (GDBusConnection *connection,
       char *uri;
       int fd;
 
+      portal->result = GTK_PRINT_OPERATION_RESULT_APPLY;
+
       v = g_variant_lookup_value (options, "settings", G_VARIANT_TYPE_VARDICT);
       settings = gtk_print_settings_new_from_gvariant (v);
       g_variant_unref (v);


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