]> git.deb.at Git - pkg/abook.git/commitdiff
Minor tweaks
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 16 Jan 2002 19:54:38 +0000 (19:54 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 16 Jan 2002 19:54:38 +0000 (19:54 +0000)
estr.c
list.c
ui.h

diff --git a/estr.c b/estr.c
index 2b3a1ef57b8b97d4a42d32a64860ed0c8d058de1..1939af0d81ddf4d723e8826f724ccf98471789d7 100644 (file)
--- a/estr.c
+++ b/estr.c
@@ -356,8 +356,12 @@ filesel_highlight_line(WINDOW *win, int line)
 static void
 filesel_print_list_line(int i, int line)
 {
-       if( lst[i].type == FLSL_TYPE_DIR )
+       if( lst[i].type == FLSL_TYPE_DIR ) {
+               mvwaddch(filesel_list, line, 3, 'd');
+#ifdef A_BOLD
                wattron(filesel_list, A_BOLD);
+#endif
+       }
        
        mvwaddnstr(filesel_list, line, 5, lst[i].filename, COLS - 5);
 }
diff --git a/list.c b/list.c
index faf3ae80f80a1cd7577e992b90e13518e8413aa4..67c7c3d55d449e423ac32ee846332ca442785284 100644 (file)
--- a/list.c
+++ b/list.c
@@ -155,13 +155,19 @@ print_list_line(int i, int line, int highlight)
 void
 list_headerline()
 {
+#ifdef A_BOLD
        attrset(A_BOLD);
+#else
+       /* hmm, maybe something here */
+#endif
        mvaddstr(2, NAMEPOS, abook_fields[NAME].name);
        mvaddstr(2, EMAILPOS, abook_fields[EMAIL].name);
        if(extra_column > 0)
                mvaddnstr(2, EXTRAPOS, abook_fields[extra_column].name,
                                COLS-EXTRAPOS);
+#ifdef A_BOLD
        attrset(A_NORMAL);
+#endif
 }
 
 void
diff --git a/ui.h b/ui.h
index e312abd1d294bf813c8aab76940e236c4aea0f4f..5c3cac187ce9e01eb0b57fa371e3245c635e997e 100644 (file)
--- a/ui.h
+++ b/ui.h
@@ -38,5 +38,4 @@ void          ui_open_datafile();
 #define UI_HLINE_CHAR          options_get_int("use_ascii_only") ? \
                                        '-' : ACS_HLINE
 
-
 #endif