Codebase list xapp / 24c2247
xapp-favorites.c: Unescape the file uri before using it for display. The original display name was being unescaped. During deduplication, the full uri wasn't being escaped before being added to the unique display name. Fixes #150 Michael Webster 2 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
469469 while (g_hash_table_iter_next (&iter, &key, &value))
470470 {
471471 GList *same_names_list, *uri_ptr;
472 const gchar *common_display_name;
472 gchar *common_display_name = NULL;
473473
474474 if (((GList *) value)->next == NULL)
475475 {
479479 }
480480 // Now we know we have a list of uris that would have identical display names
481481 // Add a part of the uri after each to distinguish them.
482 common_display_name = (const gchar *) key;
482 common_display_name = g_uri_unescape_string ((const gchar *) key, NULL);
483483 same_names_list = (GList *) value;
484484
485485 for (uri_ptr = same_names_list; uri_ptr != NULL; uri_ptr = uri_ptr->next)
577577 info->display_name = g_string_free (new_display_string, FALSE);
578578 }
579579
580 g_free (common_display_name);
580581 g_list_free_full (same_names_list, g_free);
581582 }
582583