[easytag] Fix Add_String_To_Combo_List()



commit 3b52bee75ac57574db0d661d4e7566884070e9cb
Author: David King <amigadave amigadave com>
Date:   Sun Jun 23 18:48:11 2019 +0100

    Fix Add_String_To_Combo_List()
    
    Rather than appending the string to the list store, and immediately
    removing it if the history is full, instead add the new string to the
    start of the list, matching the comment above.
    
    Patch by Thomas Zajic.
    
    Closes https://gitlab.gnome.org/GNOME/easytag/issues/29

 src/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/misc.c b/src/misc.c
index 6d21dd2..65a7634 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -122,7 +122,7 @@ gboolean Add_String_To_Combo_List (GtkListStore *liststore, const gchar *str)
     }
 
     /* We add the string to the beginning of the list store. */
-    gtk_list_store_insert_with_values (liststore, &iter, -1, MISC_COMBO_TEXT,
+    gtk_list_store_insert_with_values (liststore, &iter, 0, MISC_COMBO_TEXT,
                                        string, -1);
 
     // Limit list size to HISTORY_MAX_LENGTH


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