[patch #6200] delete in history lists


                 Summary: delete in history lists
                 Project: GNU Midnight Commander
            Submitted by: me4mc
            Submitted on: Sunday 09/16/2007 at 15:50
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



adds a callback key handler and uses the
message-value B_USER + 1 on delete key

the show hist function now handles the keys in a loop. this checks for cancel
or the delete-key.
on delete the g_list 'history' is modified
the data of the lisbox_get_current and the g_list->entry->data are compared
and decide if the item gets dropped

when the g_list is in the new state the current is removed from the visible
listbox and the listbox decides to display the new current.
if there is no entry left the box closes.

i am used to std::vectors but like to know more about that g_lists. my
searches turned up very little information. any hints?

please report code indent problems


File Attachments:

Date: Sunday 09/16/2007 at 15:50  Name: mc-cvs-historydelete.patch  Size: 3kB
  By: me4mc



Reply to this item at:


  Message sent via/by Savannah

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]