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



commit 7ff5997c9564416548d1445eb66693627007cefb
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 7cff48186d..c2e36c652d 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -508,8 +508,6 @@ dialog_response_callback (GtkDialog              *dialog,
           g_free (filename_short);
           g_object_unref (info);
         }
-
-      g_object_unref (new_location);
     }
 
   gtk_widget_destroy (GTK_WIDGET (dialog));
@@ -572,11 +570,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]