[gtk/ebassi/run-dialog-run: 116/116] Do not release the GFile prematurely



commit 3a6b01f5834d6cd6d7e2c5b90a581f29df00befb
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri May 1 11:08:41 2020 +0100

    Do not release the GFile prematurely
    
    Otherwise we won't be able to access it to get the URI for the
    GtkPrinterOption.
    
    This fixes a regression introduced in commit 5f070ff2333.

 gtk/gtkprinteroptionwidget.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index a866abe85d..a63d614806 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -480,8 +480,6 @@ dialog_response_callback (GtkDialog              *dialog,
           g_free (filename_short);
           g_object_unref (info);
         }
-
-      g_object_unref (new_location);
     }
 
   gtk_window_destroy (GTK_WINDOW (dialog));
@@ -544,11 +542,10 @@ filesave_choose_cb (GtkWidget              *button,
     }
 
   g_signal_connect (dialog, "response",
-                    G_CALLBACK (dialog_response_callback), widget);
+                    G_CALLBACK (dialog_response_callback),
+                    widget);
   gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_window_present (GTK_WINDOW (dialog));
-  G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static gchar *


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