[recipes] Import chef images as well



commit c84a13bc292ab3abcad435f48440b068e134df3c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 18 16:28:26 2017 -0500

    Import chef images as well

 src/gr-chef-dialog.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-chef-dialog.c b/src/gr-chef-dialog.c
index 6caf703..cf01fd0 100644
--- a/src/gr-chef-dialog.c
+++ b/src/gr-chef-dialog.c
@@ -95,10 +95,14 @@ file_chooser_response (GtkNativeDialog *self,
                        GrChefDialog   *prefs)
 {
         if (response_id == GTK_RESPONSE_ACCEPT) {
+                g_autofree char *path = NULL;
+
+                path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self));
+
                 g_free (prefs->image_path);
-                prefs->image_path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self));
-                update_image (prefs);
+                prefs->image_path = import_image (path);
 
+                update_image (prefs);
                 field_changed (prefs);
         }
 }


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