summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 434615a)
raw | patch | inline | side by side (parent: 434615a)
author | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 17:19:37 +0000 (19:19 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 17:19:37 +0000 (19:19 +0200) |
Since all screen updating is now on demand, we don't need this flag
anymore.
anymore.
diff --git a/src/filelist.c b/src/filelist.c
index 59fed47020d4524f1fbfc03b7423d8d5304b6d92..46137cd3b00ca6f15df939b6e4003eea0b2d18f5 100644 (file)
--- a/src/filelist.c
+++ b/src/filelist.c
struct filelist *filelist = g_malloc(sizeof(*filelist));
filelist->path = g_strdup(path);
- filelist->updated = FALSE;
filelist->entries = g_ptr_array_new();
return filelist;
diff --git a/src/filelist.h b/src/filelist.h
index d96a67c9d578e95798c26e6c4c407a1c9c64e811..85e551fc3619943461b2e59659ae2ffcf7ddd8d5 100644 (file)
--- a/src/filelist.h
+++ b/src/filelist.h
/* path */
gchar *path;
- /* true if the list is updated */
- gboolean updated;
-
/* the list */
GPtrArray *entries;
} mpdclient_filelist_t;
diff --git a/src/mpdclient.c b/src/mpdclient.c
index caa9fe3a951eafe0a3467d2a65798cec3557b297..5098226d4727ac51c20f6e6d278783002cf0571a 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
mpdclient_finish_command(c);
g_free(path_utf8);
- filelist->updated = TRUE;
// If there are only directory entities in the filelist, we sort it
if (has_dirs_only) {
return NULL;
}
- filelist->updated = TRUE;
return filelist;
}
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 7a28a78879c0f9367cfd459beda9e642f61f40c2..be7049b4d00db013d0498d614d6376517c5de92b 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
if (browser.filelist) {
list_window_paint(browser.lw, browser_lw_callback,
browser.filelist);
- browser.filelist->updated = FALSE;
} else if (metalist) {
list_window_paint(browser.lw, artist_lw_callback, metalist);
} else {
list_window_paint(browser.lw, browser_lw_callback,
browser.filelist);
wrefresh(browser.lw->w);
- browser.filelist->updated = FALSE;
return 1;
}
diff --git a/src/screen_search.c b/src/screen_search.c
index b2640ebd4b2bdb9420335b89b08d03deeb0159d2..5135b6cf027309fbea390791426d524655d01ad4 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
}
filelist_sort(list, compare_filelistentry_format);
- list->updated = TRUE;
} else {
list = mpdclient_filelist_search(c, FALSE, table, local_pattern);
if (list == NULL)
if (mpdclient_finish_command(c) && fl)
filelist_free(fl);
-
- fl->updated = TRUE;
}
i=0;
if (browser.filelist) {
browser.lw->flags = 0;
list_window_paint(browser.lw, browser_lw_callback, browser.filelist);
- browser.filelist->updated = FALSE;
} else {
browser.lw->flags = LW_HIDE_CURSOR;
list_window_paint(browser.lw, lw_search_help_callback, NULL);