diff --git a/src/hscroll.c b/src/hscroll.c
index 164f178fa3fdff826897e1234f60a88c3bc6f1fd..cc2aa9c430e4a37262441d363ec4c3b9216ce302 100644 (file)
--- a/src/hscroll.c
+++ b/src/hscroll.c
/* ncmpc (Ncurses MPD Client)
* (c) 2004-2010 The Music Player Daemon Project
* Project homepage: http://musicpd.org
-
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
-
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
+ */
#include "hscroll.h"
#include "charset.h"
-#include "glib_compat.h"
+#include "ncfix.h"
#include <assert.h>
#include <string.h>
/* obtain the ncurses attributes and the current color, store
them */
- wattr_get(hscroll->w, &hscroll->attrs, &hscroll->pair, NULL);
+ fix_wattr_get(hscroll->w, &hscroll->attrs, &hscroll->pair, NULL);
hscroll->text = g_strdup(text);
hscroll->offset = 0;
assert(hscroll->text != NULL);
/* set stored attributes and color */
- wattr_get(hscroll->w, &old_attrs, &old_pair, NULL);
+ fix_wattr_get(hscroll->w, &old_attrs, &old_pair, NULL);
wattr_set(hscroll->w, hscroll->attrs, hscroll->pair, NULL);
/* scroll the string, and draw it */