ocarina: Filter using the new index
This is why I made it...
This commit is contained in:
parent
83488dfa06
commit
5bf0a26584
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include <ocarina/header.h>
|
||||
#include <ocarina/shortcut.h>
|
||||
#include <libsaria/library.h>
|
||||
#include <libsaria/index.h>
|
||||
#include <libsaria/print.h>
|
||||
#include "header.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@ static GtkWidget *entry = NULL;
|
|||
static void do_filter(GtkWidget *entry)
|
||||
{
|
||||
string text = gtk_entry_get_text(GTK_ENTRY(entry));
|
||||
libsaria::library::filter(text);
|
||||
libsaria::index::filter(text);
|
||||
}
|
||||
|
||||
static void filter_focus()
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
#include <libsaria/library.h>
|
||||
#include <libsaria/index.h>
|
||||
#include <ocarina/songlist.h>
|
||||
|
||||
gboolean songlist_filter_func(GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
|
||||
{
|
||||
sid_t inode;
|
||||
gtk_tree_model_get(model, iter, 0, &inode, -1);
|
||||
return libsaria::library::is_visible(inode);
|
||||
return libsaria::index::is_visible(inode);
|
||||
}
|
||||
|
||||
void SongList::refilter()
|
||||
|
|
Loading…
Reference in New Issue