value = sqlite3_column_int64 (stmt, column);
katze_item_set_meta_integer (item, name, value);
}
+ else if (g_str_equal (name, "folder"))
+ {
+ const unsigned char* folder;
+ folder = sqlite3_column_text (stmt, column);
+ katze_item_set_meta_string (item, name, (gchar*)folder);
+ }
else
g_warn_if_reached ();
}
if (!db)
return;
- sqlcmd = "SELECT uri, title, app FROM bookmarks WHERE "
+ sqlcmd = "SELECT uri, title, app, folder FROM bookmarks WHERE "
" toolbar = 1 ORDER BY type ASC";
array = katze_array_from_sqlite (db, sqlcmd);
db = g_object_get_data (G_OBJECT (bookmarks->array), "db");
- sqlcmd = "SELECT uri, title, type, app, toolbar from bookmarks where folder = ?"
+ sqlcmd = "SELECT uri, title, type, app, toolbar, folder from bookmarks where folder = ?"
" ORDER BY type DESC";
result = sqlite3_prepare_v2 (db, sqlcmd, -1, &statement, NULL);
sqlite3_bind_text (statement, 1, g_strdup(folder), -1, g_free);