if (gtk_tree_path_get_depth (tpath) == 1)
{
- path = g_strdup ("");
+ path = g_strdup ("/");
}
else
{
- path = g_strdup_printf ("%s/%s", path, parent_name);
+ path = g_strdup_printf ("%s/%s", g_strcmp0 (path, "/") != 0 ? path : "", parent_name);
}
gtk_tree_store_append (storeFolders, &child, &parent);
if (g_strcmp0 (path, "") != 0)
{
- path = g_strdup_printf ("%s/%s", path, parent_name);
+ path = g_strdup_printf ("%s%s%s", path, g_strcmp0 (path, "/") != 0 ? "/" : "", parent_name);
}
gtk_entry_set_text (GTK_ENTRY (txtConfig), config);