history_list_add_to_key(bm->key, buf, 0);
g_free(buf);
+ buf = bookmark_string(".", g_strdup(history_list_find_last_path_by_key("path_list")), NULL);
+ history_list_add_to_key(bm->key, buf, 0);
+ g_free(buf);
+
path = g_build_filename(homedir(), "Desktop", NULL);
if (isname(path))
{
path = work->data;
work = work->next;
- buf = bookmark_string(name, path, NULL);
+ if (strcmp(name, ".") == 0)
+ {
+ buf = bookmark_string(name, g_strdup(history_list_find_last_path_by_key("path_list")), NULL);
+ }
+ else
+ {
+ buf = bookmark_string(name, path, NULL);
+ }
history_list_add_to_key(bm->key, buf, 0);
g_free(buf);
}
b = bookmark_from_string(work->data);
if (b)
{
+ if (strcmp(b->name, ".") == 0)
+ {
+ gchar *buf;
+
+ b->path = g_strdup(history_list_find_last_path_by_key("path_list"));
+ buf = bookmark_string(".", b->path, b->icon);
+ history_list_item_change("bookmarks", b->key, buf);
+ b->key = g_strdup(buf);
+ g_free(buf);
+ }
GtkWidget *box;
b->button = gtk_button_new();