[easytag] Correctly update the artwork description



commit 8f4cd655595f7067f44ba6541cce527bb1cec6ea
Author: David King <amigadave amigadave com>
Date:   Thu Feb 12 17:30:58 2015 +0000

    Correctly update the artwork description
    
    An EtPicture was fetched from the model containing all the images for a
    file, and the description was updated depending on what the user entered
    into the artwork properties dialog.
    
    However, the updated EtPicture (which was a copy of the one in the
    model, as EtPicture is a boxed type and was fetched from the model with
    gtk_tree_model_get()) was not set on the model, and so any change to the
    description was lost on exiting the dialog.
    
    Include the EtPicture as part of the gtk_list_store_set() call when
    closing the dialog, and update the description correctly.

 src/tag_area.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tag_area.c b/src/tag_area.c
index fd77689..fd19885 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -1763,7 +1763,8 @@ on_picture_properties_button_clicked (GObject *object,
                 pic_info = et_picture_format_info (pic,
                                                    ETCore->ETFileDisplayed->ETFileDescription->TagType);
                 gtk_list_store_set (GTK_LIST_STORE (model), &iter,
-                                    PICTURE_COLUMN_TEXT, pic_info, -1);
+                                    PICTURE_COLUMN_TEXT, pic_info,
+                                    PICTURE_COLUMN_DATA, pic, -1);
                 g_free (pic_info);
             }
         }


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