]> git.deb.at Git - pkg/abook.git/blobdiff - list.c
Merged first 0.4.13pre patch
[pkg/abook.git] / list.c
diff --git a/list.c b/list.c
index fd1c7069307a23f2b981b2094946fb6029709b9c..cf2befa13b2401ddee846eacbfcc0da57b2e7cb7 100644 (file)
--- a/list.c
+++ b/list.c
@@ -9,8 +9,8 @@
 
 #include <stdio.h>
 #include <string.h>
-#include "abook_curses.h"
 #include "abook.h"
+#include "ui.h"
 #include "database.h"
 #include "edit.h"
 #include "list.h"
@@ -48,7 +48,7 @@ refresh_list()
        
        werase(list);
 
-       print_number_of_items();
+       ui_print_number_of_items();
        
        if( items < 1 ) {
                refresh();
@@ -291,3 +291,16 @@ invert_selection()
                selected[i] = !selected[i];
 }
 
+inline int
+list_current_item()
+{
+       return curitem;
+}
+
+inline int
+list_is_empty()
+{
+       return items < 1 ? 1 : 0;
+}
+
+