hd 157 lib/widget/history.c history_create_item (history_descriptor_t *hd, void *data) hd 163 lib/widget/history.c hd->max_width = MAX (width, hd->max_width); hd 165 lib/widget/history.c listbox_add_item (hd->listbox, LISTBOX_APPEND_AT_END, 0, text, NULL, TRUE); hd 171 lib/widget/history.c history_release_item (history_descriptor_t *hd, WLEntry *le) hd 175 lib/widget/history.c (void) hd; hd 188 lib/widget/history.c history_descriptor_init (history_descriptor_t *hd, int y, int x, GList *history, int current) hd 190 lib/widget/history.c hd->list = history; hd 191 lib/widget/history.c hd->y = y; hd 192 lib/widget/history.c hd->x = x; hd 193 lib/widget/history.c hd->current = current; hd 194 lib/widget/history.c hd->action = CK_IgnoreKey; hd 195 lib/widget/history.c hd->text = NULL; hd 196 lib/widget/history.c hd->max_width = 0; hd 197 lib/widget/history.c hd->listbox = listbox_new (1, 1, 2, 2, TRUE, NULL); hd 199 lib/widget/history.c hd->create = history_create_item; hd 200 lib/widget/history.c hd->release = history_release_item; hd 201 lib/widget/history.c hd->free = g_free; hd 207 lib/widget/history.c history_show (history_descriptor_t *hd) hd 215 lib/widget/history.c if (hd == NULL || hd->list == NULL) hd 218 lib/widget/history.c hd->max_width = str_term_width1 (_("History")) + 2; hd 220 lib/widget/history.c for (z = hd->list; z != NULL; z = g_list_previous (z)) hd 221 lib/widget/history.c hd->create (hd, z->data); hd 224 lib/widget/history.c count = listbox_get_length (hd->listbox); hd 226 lib/widget/history.c hist_data.y = hd->y; hd 227 lib/widget/history.c hist_data.x = hd->x; hd 229 lib/widget/history.c hist_data.max_width = hd->max_width; hd 238 lib/widget/history.c group_add_widget_autopos (GROUP (query_dlg), hd->listbox, WPOS_KEEP_ALL, NULL); hd 247 lib/widget/history.c if (WIDGET (query_dlg)->rect.y < hd->y) hd 251 lib/widget/history.c g_queue_reverse (hd->listbox->list); hd 252 lib/widget/history.c if (hd->current < 0 || (size_t) hd->current >= count) hd 253 lib/widget/history.c listbox_select_last (hd->listbox); hd 255 lib/widget/history.c listbox_set_current (hd->listbox, count - 1 - (size_t) hd->current); hd 260 lib/widget/history.c if (hd->current > 0) hd 261 lib/widget/history.c listbox_set_current (hd->listbox, hd->current); hd 272 lib/widget/history.c hd->action = CK_Edit; hd 275 lib/widget/history.c hd->action = CK_View; hd 278 lib/widget/history.c hd->action = CK_Enter; hd 281 lib/widget/history.c listbox_get_current (hd->listbox, &q, NULL); hd 282 lib/widget/history.c hd->text = g_strdup (q); hd 287 lib/widget/history.c for (hi = listbox_get_first_link (hd->listbox); hi != NULL; hi = g_list_next (hi)) hd 289 lib/widget/history.c z = g_list_prepend (z, hd->release (hd, LENTRY (hi->data))); hd 292 lib/widget/history.c if (WIDGET (query_dlg)->rect.y < hd->y) hd 297 lib/widget/history.c hd->list = g_list_first (hd->list); hd 298 lib/widget/history.c g_list_free_full (hd->list, hd->free); hd 299 lib/widget/history.c hd->list = g_list_last (z); hd 16 lib/widget/history.h typedef void (*history_create_item_func) (struct history_descriptor_t * hd, void *data); hd 17 lib/widget/history.h typedef void *(*history_release_item_func) (struct history_descriptor_t * hd, struct WLEntry * le); hd 44 lib/widget/history.h void history_descriptor_init (history_descriptor_t * hd, int y, int x, GList * history, hd 47 lib/widget/history.h void history_show (history_descriptor_t * hd); hd 158 lib/widget/input.c history_descriptor_t hd; hd 162 lib/widget/input.c history_descriptor_init (&hd, WIDGET (in)->rect.y, WIDGET (in)->rect.x, in->history.list, hd 164 lib/widget/input.c history_show (&hd); hd 168 lib/widget/input.c in->history.list = hd.list; hd 170 lib/widget/input.c if (hd.text != NULL) hd 172 lib/widget/input.c input_assign_text (in, hd.text); hd 173 lib/widget/input.c g_free (hd.text); hd 152 src/file_history.c file_history_create_item (history_descriptor_t *hd, void *data) hd 158 src/file_history.c hd->max_width = MAX (width, hd->max_width); hd 160 src/file_history.c listbox_add_item (hd->listbox, LISTBOX_APPEND_AT_END, 0, fhd->file_name, fhd->file_pos, TRUE); hd 168 src/file_history.c file_history_release_item (history_descriptor_t *hd, WLEntry *le) hd 172 src/file_history.c (void) hd; hd 212 src/file_history.c history_descriptor_t hd; hd 222 src/file_history.c history_descriptor_init (&hd, w->rect.y, w->rect.x, file_list, 0); hd 224 src/file_history.c hd.create = file_history_create_item; hd 225 src/file_history.c hd.release = file_history_release_item; hd 226 src/file_history.c hd.free = file_history_free_item; hd 228 src/file_history.c history_show (&hd); hd 230 src/file_history.c hd.list = g_list_first (hd.list); hd 233 src/file_history.c if (len != g_list_length (hd.list)) hd 235 src/file_history.c hd.list = g_list_reverse (hd.list); hd 236 src/file_history.c file_history_list_write (hd.list); hd 239 src/file_history.c g_list_free_full (hd.list, (GDestroyNotify) file_history_free_item); hd 241 src/file_history.c *action = hd.action; hd 243 src/file_history.c return hd.text; hd 3575 src/filemanager/panel.c history_descriptor_t hd; hd 3581 src/filemanager/panel.c history_descriptor_init (&hd, WIDGET (panel)->rect.y, WIDGET (panel)->rect.x, hd 3583 src/filemanager/panel.c history_show (&hd); hd 3585 src/filemanager/panel.c panel->dir_history.list = hd.list; hd 3586 src/filemanager/panel.c if (hd.text != NULL) hd 3590 src/filemanager/panel.c s_vpath = vfs_path_from_str (hd.text); hd 3595 src/filemanager/panel.c cd_error_message (hd.text); hd 3597 src/filemanager/panel.c g_free (hd.text); hd 618 src/vfs/cpio/cpio.c struct new_cpio_header hd; hd 633 src/vfs/cpio/cpio.c (unsigned long *) &hd.c_dev, &hd.c_ino, &hd.c_mode, &hd.c_uid, &hd.c_gid, hd 634 src/vfs/cpio/cpio.c &hd.c_nlink, (unsigned long *) &hd.c_rdev, &hd.c_mtime, hd 635 src/vfs/cpio/cpio.c &hd.c_namesize, &hd.c_filesize) < 10) hd 641 src/vfs/cpio/cpio.c if (hd.c_namesize == 0 || hd.c_namesize > MC_MAXPATHLEN) hd 646 src/vfs/cpio/cpio.c name = g_malloc (hd.c_namesize); hd 647 src/vfs/cpio/cpio.c len = mc_read (arch->fd, name, hd.c_namesize); hd 648 src/vfs/cpio/cpio.c if ((len == -1) || ((unsigned long) len < hd.c_namesize)) hd 653 src/vfs/cpio/cpio.c name[hd.c_namesize - 1] = '\0'; hd 663 src/vfs/cpio/cpio.c u.st.st_dev = hd.c_dev; hd 664 src/vfs/cpio/cpio.c u.st.st_ino = hd.c_ino; hd 665 src/vfs/cpio/cpio.c u.st.st_mode = hd.c_mode; hd 666 src/vfs/cpio/cpio.c u.st.st_nlink = hd.c_nlink; hd 667 src/vfs/cpio/cpio.c u.st.st_uid = hd.c_uid; hd 668 src/vfs/cpio/cpio.c u.st.st_gid = hd.c_gid; hd 670 src/vfs/cpio/cpio.c u.st.st_rdev = hd.c_rdev; hd 672 src/vfs/cpio/cpio.c u.st.st_size = hd.c_filesize; hd 675 src/vfs/cpio/cpio.c u.st.st_atime = u.st.st_mtime = u.st.st_ctime = hd.c_mtime; hd 689 src/vfs/cpio/cpio.c struct new_cpio_header hd; hd 705 src/vfs/cpio/cpio.c &hd.c_magic, &hd.c_ino, &hd.c_mode, &hd.c_uid, &hd.c_gid, hd 706 src/vfs/cpio/cpio.c &hd.c_nlink, &hd.c_mtime, &hd.c_filesize, hd 707 src/vfs/cpio/cpio.c (unsigned long *) &hd.c_dev, (unsigned long *) &hd.c_devmin, hd 708 src/vfs/cpio/cpio.c (unsigned long *) &hd.c_rdev, (unsigned long *) &hd.c_rdevmin, hd 709 src/vfs/cpio/cpio.c &hd.c_namesize, &hd.c_chksum) < 14) hd 715 src/vfs/cpio/cpio.c if ((arch->type == CPIO_NEWC && hd.c_magic != 070701) || hd 716 src/vfs/cpio/cpio.c (arch->type == CPIO_CRC && hd.c_magic != 070702)) hd 719 src/vfs/cpio/cpio.c if (hd.c_namesize == 0 || hd.c_namesize > MC_MAXPATHLEN) hd 725 src/vfs/cpio/cpio.c name = g_malloc (hd.c_namesize); hd 726 src/vfs/cpio/cpio.c len = mc_read (arch->fd, name, hd.c_namesize); hd 728 src/vfs/cpio/cpio.c if ((len == -1) || ((unsigned long) len < hd.c_namesize)) hd 733 src/vfs/cpio/cpio.c name[hd.c_namesize - 1] = '\0'; hd 743 src/vfs/cpio/cpio.c u.st.st_dev = makedev (hd.c_dev, hd.c_devmin); hd 744 src/vfs/cpio/cpio.c u.st.st_ino = hd.c_ino; hd 745 src/vfs/cpio/cpio.c u.st.st_mode = hd.c_mode; hd 746 src/vfs/cpio/cpio.c u.st.st_nlink = hd.c_nlink; hd 747 src/vfs/cpio/cpio.c u.st.st_uid = hd.c_uid; hd 748 src/vfs/cpio/cpio.c u.st.st_gid = hd.c_gid; hd 750 src/vfs/cpio/cpio.c u.st.st_rdev = makedev (hd.c_rdev, hd.c_rdevmin); hd 752 src/vfs/cpio/cpio.c u.st.st_size = hd.c_filesize; hd 755 src/vfs/cpio/cpio.c u.st.st_atime = u.st.st_mtime = u.st.st_ctime = hd.c_mtime;