summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e9a7d2f)
raw | patch | inline | side by side (parent: e9a7d2f)
author | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 18:25:46 +0000 (20:25 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 18:25:46 +0000 (20:25 +0200) |
Don't export browser_lw_callback().
diff --git a/src/screen_artist.c b/src/screen_artist.c
index a135f9192bbef84357dccce66685ae4aa6e1e451..116f4b64cf8fd164f6f788e40948c1b77227576d 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
screen_artist_paint(void)
{
if (browser.filelist) {
- list_window_paint(browser.lw, browser_lw_callback,
- browser.filelist);
+ screen_browser_paint(&browser);
} else if (album_list != NULL)
list_window_paint(browser.lw, screen_artist_lw_callback,
album_list);
diff --git a/src/screen_browser.c b/src/screen_browser.c
index c795414ba916cf4b3187928d324581618cb0d5fd..994ea2dd5f61150ec95bcd758785897fc86d14e7 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
#endif
/* list_window callback */
-const char *
+static const char *
browser_lw_callback(unsigned idx, bool *highlight, G_GNUC_UNUSED char **second_column, void *data)
{
const struct filelist *fl = (const struct filelist *) data;
return false;
}
+
+void
+screen_browser_paint(const struct screen_browser *browser)
+{
+ list_window_paint(browser->lw, browser_lw_callback, browser->filelist);
+}
diff --git a/src/screen_browser.h b/src/screen_browser.h
index 2b02fbd8290eb9364be5a521052e6dfb18cb324b..c3a47de16b0a9c7ba0888556c6c0613c8ad20f9d 100644 (file)
--- a/src/screen_browser.h
+++ b/src/screen_browser.h
#endif
-const char *browser_lw_callback(unsigned index, bool *highlight, char** second_column, void *filelist);
+void
+screen_browser_paint(const struct screen_browser *browser);
struct filelist_entry *
browser_get_selected_entry(const struct screen_browser *browser);
diff --git a/src/screen_file.c b/src/screen_file.c
index f7b3b567e4110a750c6ffb123e7211cc079ff73c..c5688fe6263cd520a8005a298141dd1d0896fb8e 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
static void
screen_file_paint(void)
{
- list_window_paint(browser.lw, browser_lw_callback, browser.filelist);
+ screen_browser_paint(&browser);
}
static void
diff --git a/src/screen_search.c b/src/screen_search.c
index 7c35fd2fa44da1c86a0e60e460fadbac7a5956aa..7a8c01134582cf8a23044459ebc183699efd90b4 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
{
if (browser.filelist) {
browser.lw->hide_cursor = false;
- list_window_paint(browser.lw, browser_lw_callback, browser.filelist);
+ screen_browser_paint(&browser);
} else {
browser.lw->hide_cursor = true;
list_window_paint(browser.lw, lw_search_help_callback, NULL);