32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
diff --git a/src/appfinder-model.c b/src/appfinder-model.c
|
|
index 9357fc9..b10490a 100644
|
|
--- a/src/appfinder-model.c
|
|
+++ b/src/appfinder-model.c
|
|
@@ -917,17 +917,6 @@ xfce_appfinder_model_item_compare (gconstpointer a,
|
|
|
|
|
|
|
|
-static gint
|
|
-xfce_appfinder_model_item_compare_command (gconstpointer a,
|
|
- gconstpointer b)
|
|
-{
|
|
- const ModelItem *item_a = a, *item_b = b;
|
|
-
|
|
- return g_utf8_collate (item_a->command, item_b->command);
|
|
-}
|
|
-
|
|
-
|
|
-
|
|
static gchar *
|
|
xfce_appfinder_model_item_key (GarconMenuItem *item)
|
|
{
|
|
@@ -1188,7 +1177,7 @@ xfce_appfinder_model_history_insert (XfceAppfinderModel *model,
|
|
/* add new command */
|
|
item = g_slice_new0 (ModelItem);
|
|
item->command = g_strdup (command);
|
|
- if (g_slist_find_custom (model->items, item, xfce_appfinder_model_item_compare_command) != NULL)
|
|
+ if (g_slist_find_custom (model->items, item, xfce_appfinder_model_item_compare) != NULL)
|
|
{
|
|
APPFINDER_DEBUG ("Skip adding %s to the model as it's already contained.", command);
|
|
g_slice_free (ModelItem, item);
|