Fxed and simplified double-click handling in Listboxes (Skins window, Text window, Factory window). Double-clicking a font in Text window 'accepts' the rendering and closes the window.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1736 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-02-26 17:43:55 +00:00
parent 34cd4d11cd
commit cdd7f21265
3 changed files with 10 additions and 15 deletions

View File

@@ -1706,13 +1706,10 @@ void Button_Brush_Factory(void)
switch (clicked_button)
{
case 4:
if (last_selected_item == scriptlist->List_start + scriptlist->Cursor_position)
{
// Double click
clicked_button=5;
break;
}
case 2: // Double-click an entry in script list
clicked_button=5;
break;
case 4: // Select script
last_selected_item = scriptlist->List_start + scriptlist->Cursor_position;
Hide_cursor();
Draw_script_information(Get_item_by_index(&Scripts_selector,