More identification work

- Add a finger selected signal, so that when an "automatic" finger
  is selected for verification, we know which one to scan
- Fix the finger print numbers list to use GPOINTER_TO_INT /
  GINT_TO_POINTER
- Make sure the gallery is NULL when there's no prints available
- Don't use identification when a finger number is provided
- Add support for selecting the finger number in verify
- Add support for fatal warnings there as well
This commit is contained in:
Bastien Nocera
2008-10-30 22:35:34 +00:00
committed by Daniel Drake
parent ee874bb1d4
commit 15fbacd738
4 changed files with 80 additions and 26 deletions

View File

@ -237,7 +237,6 @@ static GSList *scan_dev_storedir(char *devpath, uint16_t driver_id,
while ((ent = g_dir_read_name(dir))) {
/* ent is an 1 hex character fp_finger code */
guint64 val;
int *list_item;
gchar *endptr;
if (*ent == 0 || strlen(ent) != 1)
@ -249,9 +248,7 @@ static GSList *scan_dev_storedir(char *devpath, uint16_t driver_id,
continue;
}
list_item = g_slice_new(int);
*list_item = val;
list = g_slist_prepend(list, list_item);
list = g_slist_prepend(list, GINT_TO_POINTER(val));
}
g_dir_close(dir);